<?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[Communication between clients from different OpenVPN networks]]></title><description><![CDATA[<p dir="auto">I have the following scenario</p>
<ul>
<li>There are 2 sites, one uses a Mikrotik, the other is a pfSense</li>
<li>The pfSense box has 2 OpenVPN servers on it</li>
<li>One OpenVPN server is used as a "site to site" connection, to allow hosts between <code>siteA</code> and <code>siteB</code> interact with each other. That is, the Mikrotik acts as a VPN client with the respect to the server running on pfSense, the address the Mikrotik OpenVPN client gets in the pfSense OpenVPN network is <code>10.0.14.2</code></li>
<li>The other one ( <code>OpenVPN2</code> on the diagram) is used for allowing remote workers to connect to <code>siteB</code>. Once they connect, they can talk to <code>Host1</code> and <code>Host2</code>.</li>
</ul>
<pre><code> ┌────────────────────┐                  ┌──────────────────┐
 │    192.168.1.0/24  │                  │  192.168.13.0/24 │
 │    Site A          │                  │  Site B          │
 │                    │                  │          ┌─────┐ │
 │                    │      10.0.14.x   │          │Host1│ │
 │               ┌────┴──────┐openVPN┌───┴────────┐ └─────┘ │
 │ ┌───────────┐ │ Mikrotik  ├──────►│ pfSense    │         │
 │ │ Server    │ │192.168.1.1│       │192.168.13.1│ ┌─────┐ │
 │ │192.168.1.6│ └────┬──────┘       └───┬────────┘ │Host2│ │
 │ └───────────┘      │                ▲ │          └─────┘ │
 │                    │                │ │                  │
 │                    │                │ │                  │
 └────────────────────┘                │ └──────────────────┘
                                    openVPN2
                                       │ 10.0.13.x
                                  ┌────┴───┐
                                  │ user   │
                                  └────────┘
</code></pre>
<p dir="auto">With this setup:</p>
<ul>
<li><code>Host1</code> and <code>Host2</code> can reach <code>Server</code> and vice-versa</li>
<li><code>user</code> can reach <code>Host1</code> and <code>Host2</code></li>
</ul>
<p dir="auto">However, <code>user</code> cannot access <code>Server</code> - and therein lies the problem. <strong>How can this be accomplished?</strong></p>
<ul>
<li>In the tunnel settings for OpenVPN2 I set <code>IPv4 local networks</code> to <code>192.168.13.0/24, 192.168.1.0/24</code>.</li>
<li>When <code>user</code> connects to OpenVPN2 its routing table is updated as follows:</li>
</ul>
<pre><code>Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     10.0.13.5       255.255.255.0   UG    0      0        0 tun0
192.168.3.0     0.0.0.0         255.255.255.0   U     600    0        0 wlp2s0
192.168.13.0    10.0.13.5       255.255.255.0   UG    0      0        0 tun0
</code></pre>
<p dir="auto">Nevertheless, I cannot ping any host in the <code>192.168.1.x</code> network, while traceroute tells me that it doesn't even attempt to reach the gateway, i.e.</p>
<pre><code>traceroute 192.168.1.6
traceroute to 192.168.1.6 (192.168.1.6), 30 hops max, 60 byte packets
 1  * * *
 2  * * *
 3  * * *
...
</code></pre>
<p dir="auto">Is such a setup supposed to work, in principle? What troubleshooting methods can I use to understand the root cause of the problem?</p>
]]></description><link>https://forum.netgate.com/topic/166753/communication-between-clients-from-different-openvpn-networks</link><generator>RSS for Node</generator><lastBuildDate>Fri, 12 Jun 2026 18:08:31 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/166753.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Sep 2021 12:33:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 01 Oct 2021 15:25:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralienpp">@<bdi>ralienpp</bdi></a> said in <a href="/post/1002979">Communication between clients from different OpenVPN networks</a>:</p>
<blockquote>
<p dir="auto">Is such a setup supposed to work, in principle? What troubleshooting methods can I use to understand the root cause of the problem?</p>
</blockquote>
<p dir="auto">Your issue is strictly routing.  The fact that VPNs are used is relevant, as when up, they simply provide an IP connection.</p>
<p dir="auto">So, check your routes and make sure the various devices can find a route, either via default route or specific routes.</p>
]]></description><link>https://forum.netgate.com/post/1003997</link><guid isPermaLink="true">https://forum.netgate.com/post/1003997</guid><dc:creator><![CDATA[JKnott]]></dc:creator><pubDate>Fri, 01 Oct 2021 15:25:26 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 01 Oct 2021 12:59:22 GMT]]></title><description><![CDATA[<p dir="auto">In a related experiment I configured the "Torch" tool to look for packets going in the other direction, so I set a filter for <code>src=192.168.1.6</code> and <code>dst=&lt;IP address of 'user'&gt;</code> and observed that such traffic exists.</p>
<p dir="auto">Thus I conclude that Mikrotik is actually trying to reply, which brings the problem back to pfSense's side <img src="https://forum.netgate.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f937.png?v=717669fab53" class="not-responsive emoji emoji-android emoji--shrug" style="height:23px;width:auto;vertical-align:middle" title=":shrug:" alt="🤷" /></p>
]]></description><link>https://forum.netgate.com/post/1003968</link><guid isPermaLink="true">https://forum.netgate.com/post/1003968</guid><dc:creator><![CDATA[ralienpp]]></dc:creator><pubDate>Fri, 01 Oct 2021 12:59:22 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 01 Oct 2021 10:32:48 GMT]]></title><description><![CDATA[<p dir="auto">I ran a series of experiments and so far I've reached the point where I can confirm that the packets are indeed able to reach the Mikrotik side of the equation. Although I haven't solved the problem yet, I document what I did so others can follow:</p>
<ol>
<li>open a listening port on <code>server</code> with <code>netcat -l -p 4200</code> (choose a port number less likely to be used by others)</li>
<li>prepare the command <code>telnet 192.168.1.6 4200</code> in the terminal of <code>user</code>, but do not yet execute it</li>
<li>in the Mikrotik UI go to Tools/Torch and set up a rule for <code>dst=192.168.1.6/32</code> and <code>port=4200</code> for <code>interface=&lt;name of openVPN interface&gt;</code></li>
</ol>
<p dir="auto">Once the capture in the "Torch" tool is started, execute the command on <code>user</code> and observe Mikrotik's output, you'll see some new entries on the screen that confirm that "the bullet really came out of pfSense and reached the Mikrotik".</p>
<p dir="auto">Now that the problem has been narrowed down, I'll investigate further and post another message when I've made progress. Until then, if anyone knows exactly which strings to pull and which buttons to click - I'd appreciate your help.</p>
<p dir="auto">p.s. My attempts to use the packet sniffer tool in Mikrotik were not fruitful, and there's no <code>tcpdump</code> on it, so the Torch tool is what I managed to get by with in the end; perhaps this is not the best way.</p>
]]></description><link>https://forum.netgate.com/post/1003944</link><guid isPermaLink="true">https://forum.netgate.com/post/1003944</guid><dc:creator><![CDATA[ralienpp]]></dc:creator><pubDate>Fri, 01 Oct 2021 10:32:48 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 24 Sep 2021 15:13:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralienpp">@<bdi>ralienpp</bdi></a><br />
Since the gateway is an OpenVPN endpoint, this route should be managed by OpenVPN. But I assume, that won't make a different.<br />
I have seen certain threads here people fighting to achieve similar set up with a Mikrotik OpenVPN endpoint. I'm also not experienced with it.</p>
<p dir="auto">But I assume, the connection sticks on the Mikrotik. You can verify by doing a packet capture. Yes, I think the request go over the site2site VPN, but no responds coming back.</p>
<p dir="auto">However, as a workaround you could configure a masquerading rule on pfSense.</p>
]]></description><link>https://forum.netgate.com/post/1003005</link><guid isPermaLink="true">https://forum.netgate.com/post/1003005</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 24 Sep 2021 15:13:16 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 24 Sep 2021 14:58:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann">@<bdi>viragomann</bdi></a>, thank you for the follow-up. As I am not experienced with Mikrotik and I've inherited this system from someone else, I'd like to check one thing on a conceptual level.</p>
<p dir="auto">If I go to its "Routes" UI it allows me to add entries of the form <code>dst-&gt;gateway</code>. My understanding is that it is relative to the Mikrotik itself, so if I add <code>dst=10.0.13.0/24, gateway=ovpn</code> it means "packets going to 10.0.13.x should be sent via the <code>ovpn</code> interface.</p>
<p dir="auto">I presumed you could mean that the pings from <code>user</code> to <code>server</code> arrive, but the Mikrotik doesn't know how to send the response back - so I added a rule like the one above, and the problem persists.</p>
<p dir="auto">Just in case, I added a firewall rule on the Mikrotik saying that I allow traffic where <code>src=10.0.13.0/24 and dst=192.168.1.0/24</code>, but the issue remains.</p>
]]></description><link>https://forum.netgate.com/post/1003000</link><guid isPermaLink="true">https://forum.netgate.com/post/1003000</guid><dc:creator><![CDATA[ralienpp]]></dc:creator><pubDate>Fri, 24 Sep 2021 14:58:01 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 24 Sep 2021 13:12:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralienpp">@<bdi>ralienpp</bdi></a><br />
That depends on who the traceroute tool works.<br />
The client has the correct route, so 10.0.13.5 should be the first hop anyway.</p>
<p dir="auto">Go on the Mikrotik and simply check the routing table to get further.</p>
]]></description><link>https://forum.netgate.com/post/1002985</link><guid isPermaLink="true">https://forum.netgate.com/post/1002985</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 24 Sep 2021 13:12:29 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 24 Sep 2021 12:56:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann">@<bdi>viragomann</bdi></a>, if that were the case, wouldn't I at least see that the first step of the traceroute is an attempt to reach <code>10.0.13.5</code> (the gateway for the <code>OpenVPN2</code> network)?</p>
]]></description><link>https://forum.netgate.com/post/1002981</link><guid isPermaLink="true">https://forum.netgate.com/post/1002981</guid><dc:creator><![CDATA[ralienpp]]></dc:creator><pubDate>Fri, 24 Sep 2021 12:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to Communication between clients from different OpenVPN networks on Fri, 24 Sep 2021 12:43:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ralienpp">@<bdi>ralienpp</bdi></a> said in <a href="/post/1002979">Communication between clients from different OpenVPN networks</a>:</p>
<blockquote>
<p dir="auto">However, user cannot access Server - and therein lies the problem. How can this be accomplished?</p>
</blockquote>
<p dir="auto">Possibly you're missing the route for 10.0.13.x on the Mikrotik?</p>
]]></description><link>https://forum.netgate.com/post/1002980</link><guid isPermaLink="true">https://forum.netgate.com/post/1002980</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 24 Sep 2021 12:43:12 GMT</pubDate></item></channel></rss>