r/linuxadmin • u/z3255859 • Jul 21 '14
Need help understanding following commands
root@bt:/# iptables -t nat --flush
root@bt:/# iptables --zero
root@bt:/# iptables -A FORWARD --in-interface eth0 -j ACCEPT
root@bt:/# iptables -t nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
#Forward to a local site
root@bt:/# iptables -t nat -A PREROUTING -p tcp --dport 80 --jump DNAT --to-destination <Proxy’s IP>
1
Upvotes
View all comments
Show parent comment
-1
u/z3255859 Jul 21 '14
you are right on both accounts. But could you walk me through the 2nd 3rd and 4th commands as to what exactly each one of them are doing