默认开启 设置nat转发

This commit is contained in:
bjdgyc
2022-11-28 15:22:07 +08:00
parent d3f51a5af3
commit d51bc63419
5 changed files with 13 additions and 12 deletions

View File

@@ -15,8 +15,8 @@ case $var1 in
*)
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -s "${IPV4_CIDR}" -o eth0+ -j MASQUERADE
iptables -nL -t nat
#iptables -t nat -A POSTROUTING -s "${IPV4_CIDR}" -o eth0+ -j MASQUERADE
#iptables -nL -t nat
exec /app/anylink "$@"
;;