This commit is contained in:
bjdgyc
2021-08-04 17:33:02 +08:00
parent 0a35ee18f4
commit 1bb76e5d60
2 changed files with 9 additions and 4 deletions

View File

@@ -122,6 +122,9 @@ sudo ./anylink
2. 设置nat转发规则
```shell
systemctl stop firewalld.service
systemctl disable firewalld.service
# 请根据服务器内网网卡替换 eth0
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
# 如果执行第一个命令不生效,可以继续执行下面的命令