<?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[Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface]]></title><description><![CDATA[<p dir="auto">We have a pair of High Availability devices running 23.05.1-RELEASE (amd64).</p>
<p dir="auto">We run multiple OpenVPN servers that all listen on localhost interface.</p>
<p dir="auto">We also have multiple WAN connections including a shared CARP WAN connection.</p>
<p dir="auto">We can connect to the OpenVPN servers using the non-carp WAN connections (Wans 1-3) but cannot connect through the CARP WAN connection (Wan4)</p>
<p dir="auto">I suspect this may have something to do with the Outbound NAT, but I cannot figure out what the solution is. We currently have Hybrid Outbound NAT, and I did not include the Automatic rules, only the Manual Mappings below.</p>
<p dir="auto"><img src="/assets/uploads/files/1697050841418-openvpn-ha-configuration.jpg" alt="OpenVPN HA Configuration.jpg" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/uploads/files/1697051102439-2023-10-11-14_04_15-window.png" alt="2023-10-11 14_04_15-Window.png" class="img-markdown  img-fluid" /></p>
<p dir="auto"><img src="/assets/uploads/files/1697050949146-2023-10-11-14_01_01-window.png" alt="2023-10-11 14_01_01-Window.png" class="img-markdown  img-fluid" /></p>
<p dir="auto">I could use some guidance for how to make it work. Thank you!</p>
]]></description><link>https://forum.netgate.com/topic/183357/multiple-openvpn-servers-listen-on-localhost-cannot-connect-from-carp-interface</link><generator>RSS for Node</generator><lastBuildDate>Wed, 18 Nov 2026 21:14:27 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/183357.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Oct 2023 19:07:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Mon, 16 Oct 2023 17:43:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann" aria-label="Profile: viragomann">@<bdi>viragomann</bdi></a></p>
<p dir="auto">Ok I see now.</p>
<p dir="auto">Thank you, I did find a NAT rule that took over almost the whole UDP port range and was obviously interfering with other inbound traffic.</p>
<p dir="auto">After re-configuring the service in question and reducing the Inbound UDP port range to something more reasonable, I was able to resolve the OpenVPN connection issue.</p>
]]></description><link>https://forum.netgate.com/post/1130367</link><guid isPermaLink="true">https://forum.netgate.com/post/1130367</guid><dc:creator><![CDATA[mrnb]]></dc:creator><pubDate>Mon, 16 Oct 2023 17:43:26 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Mon, 16 Oct 2023 17:12:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrnb" aria-label="Profile: mrnb">@<bdi>mrnb</bdi></a><br />
As mentioned above, the outbound NAT has not any impact on inbound traffic.</p>
<p dir="auto">However, as for any Multi-WAN set up, you have to ensure that the inbound traffic is passed by a rule on the respective interface tab.<br />
There must no floating pass rule and no one on an interface group match this traffic!</p>
]]></description><link>https://forum.netgate.com/post/1130354</link><guid isPermaLink="true">https://forum.netgate.com/post/1130354</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Mon, 16 Oct 2023 17:12:52 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Mon, 16 Oct 2023 16:56:14 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrnb" aria-label="Profile: mrnb">@<bdi>mrnb</bdi></a><br />
After some more investigation I noticed that I cannot do the following:</p>
<p dir="auto">Port forward to an internal IP using the CARP VIP, but I can do it through a non-CARP WAN address.</p>
<p dir="auto">So there is some sort of issue that is unrelated to OpenVPN, but I cannot figure out how to fix it.</p>
<p dir="auto">I made sure to add the following outbound NAT rule using Hybrid NAT:</p>
<p dir="auto"><img src="/assets/uploads/files/1697475369212-screenshot-from-2023-10-16-11-52-03.png" alt="Screenshot from 2023-10-16 11-52-03.png" class="img-markdown  img-fluid" /></p>
]]></description><link>https://forum.netgate.com/post/1130344</link><guid isPermaLink="true">https://forum.netgate.com/post/1130344</guid><dc:creator><![CDATA[mrnb]]></dc:creator><pubDate>Mon, 16 Oct 2023 16:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Fri, 13 Oct 2023 18:46:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann" aria-label="Profile: viragomann">@<bdi>viragomann</bdi></a><br />
I changed the name of the user in the logs to post on the forum.  It is not a duplicate connection, as I confirmed only a single client was connected to this server.</p>
]]></description><link>https://forum.netgate.com/post/1129814</link><guid isPermaLink="true">https://forum.netgate.com/post/1129814</guid><dc:creator><![CDATA[mrnb]]></dc:creator><pubDate>Fri, 13 Oct 2023 18:46:41 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Fri, 13 Oct 2023 16:56:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrnb" aria-label="Profile: mrnb">@<bdi>mrnb</bdi></a><br />
Looks like a normal connection. The use connects and disconnects later, probably self-initiated.</p>
<p dir="auto">However, as the user 'openvpnuser' looks very common, I'm wondering if the same user (not client) connects multiple times concurrently to a single server, possible to different WANs.<br />
This would require that you check "Duplicate Connection" in the server settings.</p>
]]></description><link>https://forum.netgate.com/post/1129797</link><guid isPermaLink="true">https://forum.netgate.com/post/1129797</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Fri, 13 Oct 2023 16:56:57 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Thu, 12 Oct 2023 21:39:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/viragomann" aria-label="Profile: viragomann">@<bdi>viragomann</bdi></a></p>
<p dir="auto">I can confirm that the packets are being received by the WAN CARP IP (note that I replaced WAN IP and Source IP manually:</p>
<pre><code>15:22:03.222156 08:ec:f5:22:9a:0a &gt; 00:00:5e:00:01:13, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 61, id 50065, offset 0, flags [DF], proto UDP (17), length 114)
    &lt;SOURCE IP&gt;.10534 &gt; &lt;WAN CARP IP&gt;.49153: [udp sum ok] UDP, length 86
15:22:05.345351 08:ec:f5:22:9a:0a &gt; 00:00:5e:00:01:13, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 61, id 50309, offset 0, flags [DF], proto UDP (17), length 114)
    &lt;SOURCE IP&gt;.10534 &gt; &lt;WAN CARP IP&gt;.49153: [udp sum ok] UDP, length 86
15:22:09.588182 08:ec:f5:22:9a:0a &gt; 00:00:5e:00:01:13, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 61, id 50943, offset 0, flags [DF], proto UDP (17), length 114)
    &lt;SOURCE IP&gt;.10534 &gt; &lt;WAN CARP IP&gt;.49153: [udp sum ok] UDP, length 86
15:22:17.219149 08:ec:f5:22:9a:0a &gt; 00:00:5e:00:01:13, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 61, id 51867, offset 0, flags [DF], proto UDP (17), length 114)
    &lt;SOURCE IP&gt;.10534 &gt; &lt;WAN CARP IP&gt;.49153: [udp sum ok] UDP, length 86
15:22:34.106623 08:ec:f5:22:9a:0a &gt; 00:00:5e:00:01:13, ethertype IPv4 (0x0800), length 128: (tos 0x0, ttl 61, id 53979, offset 0, flags [DF], proto UDP (17), length 114)
    &lt;SOURCE IP&gt;.10534 &gt; &lt;WAN CARP IP&gt;.49153: [udp sum ok] UDP, length 86
</code></pre>
<p dir="auto">Here's the openvpn log showing that a connection is attempted but fails:</p>
<pre><code>Oct 7 17:47:12	openvpn	37877	openvpn server 'ovpns1' user 'openvpnuser' address '&lt;SOURCE IP&gt;:21587' - disconnected
Oct 7 17:47:12	openvpn	32630	openvpnuser/&lt;SOURCE IP&gt;:21587 [openvpnuser] Inactivity timeout (--ping-restart), restarting
Oct 7 17:14:20	openvpn	10773	openvpn server 'ovpns1' user 'openvpnuser' address '&lt;SOURCE IP&gt;:21587' - connected
Oct 7 17:14:20	openvpn	8305	openvpn server 'ovpns1' user 'openvpnuser' address '&lt;SOURCE IP&gt;:21587' - connecting
Oct 7 17:14:20	openvpn	32630	openvpnuser/&lt;SOURCE IP&gt;:21587 MULTI_sva: pool returned IPv4=10.100.0.2, IPv6=(Not enabled)
Oct 7 17:14:20	openvpn	94819	user 'openvpnuser' authenticated
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 [openvpnuser] Peer Connection Initiated with [AF_INET]&lt;SOURCE IP&gt;:21587
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_TCPNL=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_COMP_STUBv2=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_COMP_STUB=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_LZO=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_LZ4v2=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_LZ4=1
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_CIPHERS=AES-256-GCM:AES-128-GCM
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_NCP=2
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_PROTO=6
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_PLAT=linux
Oct 7 17:14:19	openvpn	32630	&lt;SOURCE IP&gt;:21587 peer info: IV_VER=2.5.5
</code></pre>
]]></description><link>https://forum.netgate.com/post/1129681</link><guid isPermaLink="true">https://forum.netgate.com/post/1129681</guid><dc:creator><![CDATA[mrnb]]></dc:creator><pubDate>Thu, 12 Oct 2023 21:39:42 GMT</pubDate></item><item><title><![CDATA[Reply to Multiple OpenVPN Servers Listen on Localhost - Cannot Connect from CARP Interface on Wed, 11 Oct 2023 20:34:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mrnb" aria-label="Profile: mrnb">@<bdi>mrnb</bdi></a><br />
No, the outbound NAT only comes in play for outbound traffic. It hasn't any effect on inbound.</p>
<p dir="auto">You can forward traffic destined to the WAN CARP VIP like any other WAN address. So there is nothing different generally.</p>
<p dir="auto">Since you use the same port alias on all WAN addresses, I assume, all go to the same VPN servers. Hence the server should be well.</p>
<p dir="auto">To investigate run a packet capture on the CARP interface and check if the OpenVPN packets even arrive there.</p>
]]></description><link>https://forum.netgate.com/post/1129497</link><guid isPermaLink="true">https://forum.netgate.com/post/1129497</guid><dc:creator><![CDATA[viragomann]]></dc:creator><pubDate>Wed, 11 Oct 2023 20:34:20 GMT</pubDate></item></channel></rss>