NAT fun! - do these two lines do the same thing?
Can someone tell me the difference between the next two lines?
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source <server-ip-here>
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
Im guessing that the first line only affects packets that come in on 10.8.0.x and makes the packet look like it originated from this server.
Im also guessing that the second line forwards all packets it recieves out through the eth0 device. Does the MASQUERADE bit make the packet appear as if it originated from this server just like in the first line?