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

NAT using iptables

Expand Messages
  • manyam
    let us say that there are three computers host1:172.16.1.1 own pc:172.16.1.2 victim pc:172.16.1.3 In own pc ,execute command given below #iptables -t nat -A
    Message 1 of 1 , Sep 7, 2011
      let us say that there are three computers
      host1:172.16.1.1
      own pc:172.16.1.2
      victim pc:172.16.1.3

      In own pc ,execute command given below
      #iptables -t nat -A POSTROUTING -s 172.16.1.2 -i eth0 -j SNAT --to-source 172.16.1.3
      this will fake the IP address of own pc as 172.16.1.3

      if ping 172.16.1.1
      this ping command will ping to 172.16.1.2 with source IP as 172.16.1.3
      and reply will be sent accordingly
    Your message has been successfully submitted and would be delivered to recipients shortly.