Hello everybody !!!
Please guide me regarding iptables, I am really confused about SNAT, DNAT, INPUT , OUTPUT and FORWARD.
For eg :
eth0 - is the external IP.
eth1 - is the internal IP.
I am understanding like this is this correct ....
SNAT - Means connection made from the internal IP. (eth1)
DNAT - Means connection going out to the internet from the eth0. (external outgoing)
(iptables -A forward -d www.google.com -p tcp -s 192.168.1.1 -j ACCEPT)
INPUT - Means connection coming in to the eth0
OUTPUT - Means connection going to the eth0
FORWARD - Means connection made from eth1 to the eth0.
Is this correct, please let me know the result, how to go with this..
Thank you.
MichaelMadan.