mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update build_nat_network.sh
This commit is contained in:
parent
8ba5fa87ae
commit
d554aec120
1 changed files with 2 additions and 0 deletions
|
@ -55,10 +55,12 @@ iface vmbr1 inet static
|
|||
EOF
|
||||
fi
|
||||
|
||||
# 加载iptables并设置回源
|
||||
if ! command -v iptables &> /dev/null; then
|
||||
green "iptables 未安装,正在安装..."
|
||||
apt-get install -y iptables
|
||||
fi
|
||||
iptables -t nat -A POSTROUTING -j MASQUERADE
|
||||
|
||||
# 重启配置
|
||||
service networking restart
|
||||
|
|
Loading…
Reference in a new issue