This commit is contained in:
iFargle 2023-12-06 20:56:23 +09:00
parent 320f405f81
commit 827170eb19

View file

@ -23,7 +23,7 @@
networking.firewall.extraCommands = ''
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -s 110.100.0.2/32 ! -d 110.100.0.2/32 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth0 -s 10.100.0.2/32 ! -d 10.100.0.2/32 -j MASQUERADE
iptables -A FORWARD -s 10.100.0.2/32 -j ACCEPT
iptables -A FORWARD -d 10.100.0.2/32 -j ACCEPT
iptables -A FORWARD -s ! 10.100.0.2/32 -j DROP