nat with postrouting
- iptables -t nat -A POSTROUTING -s 192.168.1.2 -o eth0 -j SNAT --to-source 192.168.1.3.
i executed sucessfully changing from 192.168.1.2 to 192.168.1.3 but when i am pinging from my system meant that ping 192.168.1.4(some other host) it also working but there are no icmp packets replay from 192.168.1.4 to 192.168.1.3 so how do i know ip address foregd or faking so i want more details
my idea is like this :
host1 (original) host2(victim) host3
192.168.1.2 192.168.1.3 192.168.1.4
now i am execute command on host1 :iptables -t nat -A POSTROUTING -s 192.168.1.2 -o eth0 -j SNAT --to-source 192.168.1.3.
now here changing my ip 192.168.1.2 to 192.168.1.3 so when ping 192.168.1.4 now i want at the same time replay to get original host1 and victim host2
so pls clear problem