<?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 access OpenVPN remote LAN when local LAN has the same network address]]></title><description><![CDATA[<p dir="auto">It took me a little while to figure this out, so I hope to save someone else the aggravation.</p>
<p dir="auto"><strong>Problem</strong><br />
I have two separate LAN segments that have the same network address (192.168.1.0/24).  One LAN has a pfSense OpenVPN server to connect remote clients to a local FTP server (for this example).</p>
<p dir="auto">Network A<br />
  - pfSense OpenVPN Server<br />
          LAN:                      192.168.1.1<br />
          OpenVPN:              192.168.2.1</p>
<p dir="auto">- FTP Server<br />
          LAN:                      192.168.1.100</p>
<p dir="auto">Network B<br />
  - Third-party Gateway<br />
          LAN:                      192.168.1.1</p>
<p dir="auto">- Host 1 (OpenVPN client)<br />
          LAN:                      192.168.1.20<br />
          OpenVPN:              192.168.2.2</p>
<p dir="auto">In my scenario, Host 1 (on Network B) needs to access the FTP server on Network A.  Ideally, traffic should be routed from the Network B gateway to the pfSense OpenVPN server, then to the Network A LAN.</p>
<p dir="auto">Since both networks share the same network address, a connection attempt from Network B to 192.168.1.100 fails because that address is considered part of the local LAN and does not get routed through the tunnel.</p>
<p dir="auto"><strong>Solution</strong><br />
To get around this problem, I created a "virtual" IP address for the FTP server using port forwarding.</p>
<p dir="auto">Under Firewall-&gt;NAT-&gt;Port Forward, create a new rule.<br />
  - Set the interface to OpenVPN.<br />
  - Set the protocol, as necessary.<br />
  - Set the destination to your "virtual" IP address.  I used 192.168.2.100.<br />
  - Set the destination port range (21 in this example).<br />
  - Set the redirect target IP to the real IP address of the FTP server (192.168.1.100).<br />
  - Set the redirect target port range (21 in this example).<br />
  - Set the filter rule association to Pass.</p>
<p dir="auto">Now the FTP server on Network A essentially looks like this:<br />
  - FTP Server<br />
          LAN:                      192.168.1.100<br />
          OpenVPN:              192.168.2.100</p>
<p dir="auto">Clients on Network B can access the FTP server over the tunnel by referring to it using its "virtual" IP address.</p>
<p dir="auto">Aaron</p>
]]></description><link>https://forum.netgate.com/topic/92187/how-to-access-openvpn-remote-lan-when-local-lan-has-the-same-network-address</link><generator>RSS for Node</generator><lastBuildDate>Tue, 16 Jun 2026 22:24:04 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/92187.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 25 Nov 2015 13:22:14 GMT</pubDate><ttl>60</ttl></channel></rss>