Changes between Initial Version and Version 1 of 321-remap-local-addresses-to-connect-two-networks-with-an-overlap-in-the-private-address-range


Ignore:
Timestamp:
01/30/14 16:18:18 (10 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 321-remap-local-addresses-to-connect-two-networks-with-an-overlap-in-the-private-address-range

    v1 v1  
     1= Remap local addresses, to connect two networks with an overlap in the private address range? =
     2
     3{{{
     4#!html
     5<div>Using iptables 1.2.7a+ and the NETMAP target:</div>
     6<div></div>
     7<div>iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24</div>
     8<div></div>
     9<div></div>
     10<div></div>
     11<div>or</div>
     12<div></div>
     13<div>iptables -t nat -A POSTROUTING -d 192.168.1.0/24 -j NETMAP --to 192.168.0.0/24</div>
     14<div></div>
     15}}}
     16
     17[wiki:FAQ Return to FAQ]