Many to many NAT

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

 



I've looked online and can't seem to find a HOW-TO on this. I've
configured iptables to do a many to many NAT, but traffic is not
accepted because the IP address does not exist on the outside interface.

iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j SNAT --to 1.2.3.0/25

I'm thinking that I need to add a route for this to work, but I'm not
terribly sure. Would something like this work?

route add -net 1.2.3.0/25 gw 192.168.1.1
Or
route add -net 1.2.3.0/25 gw 1.2.2.1
Or
route add -net 1.2.3.0/25 dev eth0
Where eth0 is the external interface.

Thanks,
Robert




[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