mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 01:58:53 +08:00
Update build_nat_network.sh
This commit is contained in:
parent
6957127783
commit
fdbaf4f137
1 changed files with 2 additions and 1 deletions
|
@ -343,6 +343,7 @@ EOF
|
|||
update_sysctl "net.ipv6.conf.default.proxy_ndp=1"
|
||||
update_sysctl "net.ipv6.conf.vmbr0.proxy_ndp=1"
|
||||
update_sysctl "net.ipv6.conf.vmbr1.proxy_ndp=1"
|
||||
update_sysctl "net.ipv6.conf.vmbr2.proxy_ndp=1"
|
||||
fi
|
||||
fi
|
||||
chattr +i /etc/network/interfaces
|
||||
|
@ -351,7 +352,7 @@ rm -rf /usr/local/bin/iface_auto.txt
|
|||
# 加载iptables并设置回源且允许NAT端口转发
|
||||
apt-get install -y iptables iptables-persistent
|
||||
iptables -t nat -A POSTROUTING -j MASQUERADE
|
||||
update_sysctl "net.ipv4.ip_forward=1"
|
||||
"net.ipv4.ip_forward=1"
|
||||
${sysctl_path} -p
|
||||
|
||||
# 重启配置
|
||||
|
|
Loading…
Reference in a new issue