Reply To: How to tell if VLAN is not NAT’d

Home Page Forums Network Management Networking How to tell if VLAN is not NAT’d Reply To: How to tell if VLAN is not NAT’d

#49659

wifiguy
Member

@ppalias wrote:

ok first clear any entries

iptables -t nat -F

then insert the rules followed by the rule

iptables -t nat -I POSTROUTING 1 -i lo -o ETH00 -j MASQUERADE 

Try to ping, browser, fetch mails and then paste here the output of

iptables -t nat -L -v
iptables -L -v
iptables -t mangle -L -v
traceroute www.yahoo.com

So, it would look something like this?
iptables -t nat -I POSTROUTING 1 –src 172.30.0.0/16 -o ETH00 -j MASQUERADE
iptables -t nat -I POSTROUTING 1 -i lo -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 2 -i lo -o ETH00 -j MASQUERADE
iptables -t nat -I POSTROUTING 3 –src 152.93.0.0/16 -o ETH00 -j MASQUERADE
iptables -t nat -I POSTROUTING 3 -i lo -o ETH00 -j MASQUERADE

Is that what you mean?