Re: IPsec gateway - Shorewall - 1to1 NAT

Justin Pryzby <[email protected]> Mon, 14 Apr 2025 14:47:27 -0500
Newsgroups gmane.comp.security.shorewall
Message-ID <Z_1mT383QreIXm_Q@pryzbyj2023>
You want to read about netmap.
https://shorewall.org/manpages/shorewall-netmap.html

On Mon, Apr 14, 2025 at 12:37:34PM -0500, Rich Goodwin via Shorewall-users =
wrote:
> HELP! -- I just can't seem to figure out how to configure this.
> I have a Shorewall/IPSEC VPN gateway configuration that is working great =
to
> my remote sites.
> Doing gateway to gateway and gateway to client tunnels where I have no
> network overlap issues.
> Where I am stuck at is I need to NAT my network to a different private
> network as the remote site already is using my private network range.
> =

> I am using Debian 11 with v5.2.3.4 Shorewall.
> But I have a site where there is an address conflict so I need to remap my
> 192.168.10.0/24 network to 172.17.87.0/24
> to avoid issues.=A0 They already have a 192.168.10.0/24 network in their
> systems.
> =

> I need to do the following:
> =

> 192.168.10.0/24 <-> 172.17.87.0/24 <- IPsec tunnel -> 172.28.0.80/29 <->
> 172.28.0.82
> =

> Traffic from my 192.168.10.0/24 network needs to have it's addresses mapp=
ed
> to 172.17.87.0/24 network.
> Then sent to the 172.17.87.0/24 to 172.28.0.80/29 tunnel and on to the
> 172.28.0.82 server on their end.
> Then their replies need to come back across the tunnel and be converted b=
ack
> from the 172.17.87.0/24 network to my 192.168.10.0/24 network.
> =

> I have the tunnel up and functional.
> My issue is how to configure Shorewall to do the 1 to 1 translation and p=
ass
> on to the tunnel.
> =

> Does anyone have an example of this that I could follow?