<?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[How to portforward over ipsec vpn]]></title><description><![CDATA[<p dir="auto">I successfully setup a IPsec vpn using this guide https://www.youtube.com/watch?v=-GrWSnKnwgU with:</p>
<p dir="auto">SiteA<br />
LAN 10.0.0.1<br />
Lan 2<br />
Lan 3</p>
<p dir="auto">SiteB<br />
Lan1<br />
Lan 2 192.168.2.1<br />
Lan 3</p>
<p dir="auto">I want incoming connections on siteA:766<br />
to be port forwarded to 192.168.2.100:766 over the ipsec tunnel</p>
<p dir="auto">preferably i also want Lan 3 and lan 1 also be able to access<br />
10.0.0.1 without adding extra ipsec configuration but using<br />
outbound NAT</p>
<hr />
<p dir="auto">it's been very hard to set this up and and im stuck, i tried so many things<br />
any help will be highly appricate it</p>
]]></description><link>https://forum.netgate.com/topic/190712/how-to-portforward-over-ipsec-vpn</link><generator>RSS for Node</generator><lastBuildDate>Wed, 13 May 2026 13:12:43 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/190712.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 30 Oct 2024 02:11:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to portforward over ipsec vpn on Wed, 30 Oct 2024 13:15:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/arrcy">@<bdi>arrcy</bdi></a> said in <a href="/post/1189544">How to portforward over ipsec vpn</a>:</p>
<blockquote>
<p dir="auto">I want incoming connections on siteA:766<br />
to be port forwarded to 192.168.2.100:766 over the ipsec tunnel</p>
</blockquote>
<p dir="auto">Across a policy-based IPSec, this is only gonna to work if you either do masquerading on site B LAN2 with an outbound NAT rule or if you route the whole upstream traffic from B over A. The latter might not be desirable, I guess, the former has the drawback that you loose the information about the origin source IP.</p>
<p dir="auto">It would work without this limitations with any other kind of VPN: routed IPSec, OpenVPN, Wireguard</p>
<blockquote>
<p dir="auto">preferably i also want Lan 3 and lan 1 also be able to access<br />
10.0.0.1 without adding extra ipsec configuration but using<br />
outbound NAT</p>
</blockquote>
<p dir="auto">Just add a phase 2 for each subnet pair, you want to connect.<br />
LAN1 &lt;&gt; 10.0.0.0/24<br />
LAN3 &lt;&gt; 10.0.0.0/24<br />
Remember, that you have to add these p2 with exchanged local - remote networks.</p>
]]></description><link>https://forum.netgate.com/post/1189576</link><guid isPermaLink="true">https://forum.netgate.com/post/1189576</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Wed, 30 Oct 2024 13:15:47 GMT</pubDate></item></channel></rss>