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

Version 1 (modified by Samuli Seppänen, 10 years ago) (diff)

--

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