› Forums › Network Management › Networking › How to tell if VLAN is not NAT’d › Reply To: How to tell if VLAN is not NAT’d
February 16, 2010 at 3:03 pm
#49650
Member
Okay remove the ETH00 from the “NAT Enabled Interfaces”. Then add a specific iptables command.
iptables -t nat -I POSTROUTING 1 --src 172.30.0.0/16 -o ETH00 -j MASQUERADE
iptables -t nat -I POSTROUTING 2 --src 192.168.1.0/24 -o ETH00 -j MASQUERADE
iptables -t nat -I POSTROUTING 3 --src 152.93.0.0/16 -o ETH00 -j MASQUERADE