wiki:321-remap-local-addresses-to-connect-two-networks-with-an-overlap-in-the-private-address-range

Remap local addresses, to connect two networks with an overlap in the private address range?

Using iptables 1.2.7a+ and the NETMAP target:
iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24
or
iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -j NETMAP --to 192.168.0.0/24

Return to FAQ

Last modified 3 years ago Last modified on 01/30/14 16:18:18