Commit 37ae0a
2025-02-11 11:48:16 Samuli Seppänen: -/-| /dev/null .. FAQ/321-remap-local-addresses-to-connect-two-networks-with-an-overlap-in-the-private-address-range.md | |
| @@ 0,0 1,13 @@ | |
| + | # Remap Local Addresses, to Connect Two Networks with an Overlap in the Private Address Range |
| + | |
| + | Using iptables 1.2.7a+ and the NETMAP target: |
| + | |
| + | ```bash |
| + | iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24 |
| + | ``` |
| + | |
| + | or |
| + | |
| + | ```bash |
| + | iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -j NETMAP --to 192.168.0.0/24 |
| + | ``` |
