From fdbaf4f1376f94a40f5ccef461d5684633b644e4 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:08:51 +0800 Subject: [PATCH] Update build_nat_network.sh --- scripts/build_nat_network.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_nat_network.sh b/scripts/build_nat_network.sh index 670cd98..b8d020a 100644 --- a/scripts/build_nat_network.sh +++ b/scripts/build_nat_network.sh @@ -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 # 重启配置