internal > external > internal NAT

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

 



I have a requirement where I need to NAT some internal connections to
make sure everything to the destination appears to be coming from the same
source.

The network layout is like this:

client [ internal net eth3 ] 192.168.32.100
  \/
  \/ client has a statuic host rouute for 172.17.4.200 via 192.168.32.200
  \/
iptables box [internal net eth1] 192.168.32.200
  \/
  \/
iptables box [external net eth2] 172.17.4.200
  \/
  \/
linux lvs box [interal net] 192.168.32.18
  \/
  \/
web servers on the 192.168.32.0 net

What I need to do is this:

If the destination IP = 172.17.4.200 then redirect it to 192.168.32.18 but
first NAT the source IP to 192.168.32.200

Anyone know a simple way to do this ?




[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