Blame

37ae0a Samuli Seppänen 2025-02-11 11:48:16 1
# Remap Local Addresses, to Connect Two Networks with an Overlap in the Private Address Range
2
3
Using iptables 1.2.7a+ and the NETMAP target:
4
5
```bash
6
iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24
7
```
8
9
or
10
11
```bash
12
iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -j NETMAP --to 192.168.0.0/24
13
```