= Remap local addresses, to connect two networks with an overlap in the private address range? = {{{ #!html
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
}}} [wiki:FAQ Return to FAQ]