Loading ...
Sorry, an error occurred while loading the content.

nat with postrouting

Expand Messages
  • manyam
    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
    Message 1 of 1 , Sep 3, 2011
    • 0 Attachment
      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
      thank u
    Your message has been successfully submitted and would be delivered to recipients shortly.