Update build_nat_network.sh

This commit is contained in:
spiritLHLS 2023-04-10 14:28:03 +08:00 committed by GitHub
parent 768ad8360a
commit 8cabbf223d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,6 @@ if ! command -v iptables &> /dev/null; then
green "iptables 未安装,正在安装..."
apt-get install -y iptables
fi
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to ${IPV4}
# 重启配置
service networking restart