<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[NAT WG clients throught IPSec site-to-site]]></title><description><![CDATA[<p dir="auto">I am trying to make use of pfSense as a VPN server at home using PVE. The pfSense server only has 1 NIC and is running at the same network in site 1.<br />
I have already setup a IPSec site-to-site VPN<br />
access 192.168.203.0/24                                     INTERNET                                 access 192.168.202.0/24<br />
192.168.202.0/24   &lt;-----------------------------&gt;  192.168.202.2  &lt;~~~~~~~&gt;  192.168.203.2  &lt;----------------------------&gt; 192.168.203.0/24<br />
Site 1                                                       pfSense VPN server                       Linux Strongswan                                                 site 2</p>
<ul>
<li>All traffics from WAN NET is allowed to access site 2 network</li>
<li>WAN address is allowed to access site 2 network (It should be duplicated)<br />
It works well and all clients in site 1 can access any servers in site 2 without any problem.<br />
*** The IKEv2 pharse 2 tunnel is NOT allowed to changed. Site 2 only accept clients access from 192.168.202.0/24 networks</li>
</ul>
<p dir="auto">Then I setup a Wireguard VPN server (172.22.202.2/24) for roaming clients. Firewalls are set as follows:</p>
<ul>
<li>All WG clients can access all (0.0.0.0/0)</li>
<li>A NAT rule is set to nat all WG clients to WAN address (192.168.202.2)<br />
It works as expected. WG clients access site 1 using WAN address by checking server logs in site 1.</li>
</ul>
<p dir="auto">Here comes the problem. WG clients are unable to access any servers in site 2.</p>
<p dir="auto">I carried the following test case:<br />
Assumption:<br />
WG client: 172.22.202.103<br />
SSH Server in site 2: 192.168.203.2</p>
<p dir="auto">I checked with Packet Capture from pfSense on tun_wg0. It captured packets from WG client to SSH server.<br />
17:59:33.344469 IP 10.133.202.103.50456 &gt; 192.168.203.2.22: tcp 0<br />
17:59:34.374829 IP 10.133.202.103.50456 &gt; 192.168.203.2.22: tcp 0<br />
17:59:36.384212 IP 10.133.202.103.50456 &gt; 192.168.203.2.22: tcp 0<br />
17:59:40.454297 IP 10.133.202.103.50456 &gt; 192.168.203.2.22: tcp 0</p>
<p dir="auto">Then I checked again on vtnet0 (WAN), it showed related entries:<br />
18:01:07.183200 IP 192.168.202.2.36505 &gt; 192.168.203.2.22: tcp 0<br />
18:01:07.183614 IP 192.168.202.2.36505 &gt; 192.168.203.2.22: tcp 0<br />
18:01:08.185028 IP 192.168.202.2.36505 &gt; 192.168.203.2.22: tcp 0<br />
18:01:08.185427 IP 192.168.202.2.36505 &gt; 192.168.203.2.22: tcp 0</p>
<p dir="auto">It looks like 172.22.202.103 was translated to 192.168.202.2 already.</p>
<p dir="auto">Then I checked again with enc0 (IPSec), it showed related entries:<br />
18:04:19.911403 (authentic,confidential): SPI 0xc1e46fea: IP 192.168.202.2.52296 &gt; 192.168.203.2.22: tcp 0<br />
18:04:20.269368 (authentic,confidential): SPI 0xc1e46fea: IP 192.168.202.2.18488 &gt; 192.168.203.2.22: tcp 0<br />
18:04:20.496886 (authentic,confidential): SPI 0xc1e46fea: IP 192.168.202.2.52296 &gt; 192.168.203.2.22: tcp 0</p>
<p dir="auto">I suppose it should works as it's going to the SPI table already.<br />
However, I capture nothing on the peer side (192.168.202.2) using tcpdump.<br />
Traffics from all clients in site 1 can be captured.<br />
I also tried to use the SHELL in pfSense to ssh to the peer side and it works, which means 192.168.202.2 is allowed to access 192.168.203.2.</p>
<p dir="auto">I tried the same setup using Linux (strongswan + Wireguard) and it works well.<br />
I tried many firewall rules and NAT and still unable to achieve my purpose.</p>
<p dir="auto">Hope any expert can help on my situation. Thanks in advance!</p>
]]></description><link>https://forum.netgate.com/topic/183459/nat-wg-clients-throught-ipsec-site-to-site</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 12:25:30 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/183459.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Oct 2023 10:11:20 GMT</pubDate><ttl>60</ttl></channel></rss>