PREROUTING:To update Source and destination IP field (plz reply)]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear friends,
  I am new to iptables and libipq. Please somebody reply to this query

  Is it possible to change both source and destination field in an IP
header in PREROUTING. If not, plz somebody suggest me a way to do that.

 Let me explain in detail

 Suppose there are 3 machines A B C. When a packet comes from machine A to
machine B. I would like to capture these packets AT MACHINE B BEFORE it
goes through routing decision. I would like change the source and the
destinatio IP address(modified SOURCE IP = MACHINE B IP, modified
DESTINATION IP= MACHINE C IP)  including the payload, and then pass it to
the routing decision unit.

 Is it possible to implement this using iptables ? if yes,plz let me know.
If not, then plz suggest some ways to do this.


 Thanx in advance




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux