<?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[OpenVPN tunnel not connecting over NAT]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have a situation where I have an office with a UVerse dynamic IP that needs to be connected to me with a VPN tunnel.</p>
<p dir="auto">The UVerse router does not allow bridging, only 1:1 NAT.  I have set up an OpenVPN tunnel, but it is not connecting.  I'm not sure if the NAT is the problem or not because I've never set up an OpenVPN tunnel before.</p>
<pre><code>
Oct 21 08:49:17	openvpn[31070]: UDPv4 link remote: xxx.xx.xx.xx:ppppp
Oct 21 08:49:17	openvpn[31070]: UDPv4 link local (bound): 192.168.1.1
Oct 21 08:49:17	openvpn[31070]: Preserving previous TUN/TAP instance: ovpnc1
Oct 21 08:49:17	openvpn[31070]: LZO compression initialized
Oct 21 08:49:17	openvpn[31070]: Re-using pre-shared static key
Oct 21 08:49:17	openvpn[31070]: NOTE: the current –script-security setting may allow this configuration to call user-defined scripts
Oct 21 08:49:15	openvpn[31070]: SIGUSR1[soft,ping-restart] received, process restarting
Oct 21 08:49:15	openvpn[31070]: Inactivity timeout (–ping-restart), restarting
Oct 21 08:48:15	openvpn[31070]: UDPv4 link remote: xxx.xx.xx.xx:ppppp
Oct 21 08:48:15	openvpn[31070]: UDPv4 link local (bound): 192.168.1.1
Oct 21 08:48:15	openvpn[31070]: Preserving previous TUN/TAP instance: ovpnc1
Oct 21 08:48:15	openvpn[31070]: LZO compression initialized
Oct 21 08:48:15	openvpn[31070]: Re-using pre-shared static key
Oct 21 08:48:15	openvpn[31070]: NOTE: the current –script-security setting may allow this configuration to call user-defined scripts

</code></pre>
<p dir="auto">I'm also assuming that an IPSec VPN with an IP alias wouldn't work also (the WAN address of this router holds a private IP address).</p>
]]></description><link>https://forum.netgate.com/topic/61933/openvpn-tunnel-not-connecting-over-nat</link><generator>RSS for Node</generator><lastBuildDate>Wed, 11 Mar 2026 01:43:50 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/61933.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 21 Oct 2013 12:59:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Mon, 06 Jan 2014 21:47:37 GMT]]></title><description><![CDATA[<p dir="auto">Switched to using TCP instead of UDP and the tunnel came up OK.</p>
]]></description><link>https://forum.netgate.com/post/437568</link><guid isPermaLink="true">https://forum.netgate.com/post/437568</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Mon, 06 Jan 2014 21:47:37 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Thu, 24 Oct 2013 17:24:14 GMT]]></title><description><![CDATA[<p dir="auto">I'm noticing on the server side that Manual outbound NAT is already enabled, do I need to do anything with this?</p>
<p dir="auto">Here is my outbound nat config:</p>
<pre><code>
        &lt;nat&gt;&lt;ipsecpassthru&gt;&lt;enable&gt;&lt;/enable&gt;&lt;/ipsecpassthru&gt; 
                &lt;advancedoutbound&gt;&lt;rule&gt;&lt;source&gt;
                                        &lt;network&gt;yyy.yyy.yyy.y/24&lt;/network&gt;

                                &lt;sourceport&gt;&lt;target&gt;xxx.xx.xx.xx&lt;/target&gt;
                                &lt;targetip&gt;&lt;targetip_subnet&gt;0&lt;/targetip_subnet&gt;
                                &lt;interface&gt;wan&lt;/interface&gt;
                                &lt;poolopts&gt;&lt;destination&gt;&lt;any&gt;&lt;/any&gt;&lt;/destination&gt; 
                                &lt;dstport&gt;500&lt;/dstport&gt;&lt;/poolopts&gt;&lt;/targetip&gt;&lt;/sourceport&gt;&lt;/rule&gt; 
                        &lt;rule&gt;&lt;source&gt;
                                        &lt;network&gt;yyy.yyy.yyy.y/24&lt;/network&gt;

                                &lt;sourceport&gt;&lt;target&gt;xxx.xx.xx.xx&lt;/target&gt;
                                &lt;targetip&gt;&lt;targetip_subnet&gt;0&lt;/targetip_subnet&gt;
                                &lt;interface&gt;wan&lt;/interface&gt;
                                &lt;poolopts&gt;&lt;destination&gt;&lt;any&gt;&lt;/any&gt;&lt;/destination&gt;&lt;/poolopts&gt;&lt;/targetip&gt;&lt;/sourceport&gt;&lt;/rule&gt; 
                        &lt;rule&gt;&lt;source&gt;
                                        &lt;network&gt;127.0.0.0/8&lt;/network&gt;

                                &lt;sourceport&gt;&lt;target&gt;xxx.xx.xx.xx&lt;/target&gt;
                                &lt;targetip&gt;&lt;targetip_subnet&gt;0&lt;/targetip_subnet&gt;
                                &lt;interface&gt;wan&lt;/interface&gt;
                                &lt;poolopts&gt;&lt;destination&gt;&lt;any&gt;&lt;/any&gt;&lt;/destination&gt;&lt;/poolopts&gt;&lt;/targetip&gt;&lt;/sourceport&gt;&lt;/rule&gt; 
                        &lt;rule&gt;&lt;source&gt;
                                        &lt;network&gt;127.0.0.0/8&lt;/network&gt;

                                &lt;sourceport&gt;&lt;target&gt;xxx.xx.xx.xx&lt;/target&gt;
                                &lt;targetip&gt;&lt;targetip_subnet&gt;0&lt;/targetip_subnet&gt;
                                &lt;interface&gt;wan&lt;/interface&gt;
                                &lt;poolopts&gt;&lt;destination&gt;&lt;any&gt;&lt;/any&gt;&lt;/destination&gt; 
                                &lt;natport&gt;1024:65535&lt;/natport&gt;&lt;/poolopts&gt;&lt;/targetip&gt;&lt;/sourceport&gt;&lt;/rule&gt; 
                        &lt;enable&gt;&lt;/enable&gt;&lt;/advancedoutbound&gt;&lt;/nat&gt; 

</code></pre>
]]></description><link>https://forum.netgate.com/post/426568</link><guid isPermaLink="true">https://forum.netgate.com/post/426568</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Thu, 24 Oct 2013 17:24:14 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Wed, 23 Oct 2013 13:34:06 GMT]]></title><description><![CDATA[<p dir="auto">I changed firewall rules on the OpenVPN interface on both sides to any/any, and now I am able to ping across to  172.19.11.1 and 172.19.11.2 from both sides, but still not to the LAN networks from either side.</p>
]]></description><link>https://forum.netgate.com/post/426355</link><guid isPermaLink="true">https://forum.netgate.com/post/426355</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Wed, 23 Oct 2013 13:34:06 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Tue, 22 Oct 2013 14:46:39 GMT]]></title><description><![CDATA[<p dir="auto">Forgive me, here is the config for the remote side:</p>
<pre><code>
	 &lt;openvpn&gt;&lt;openvpn-client&gt;&lt;vpnid&gt;1&lt;/vpnid&gt;
			&lt;protocol&gt;UDP&lt;/protocol&gt;
			&lt;dev_mode&gt;tun&lt;/dev_mode&gt;
			 &lt;ipaddr&gt;&lt;interface&gt;wan&lt;/interface&gt;
			 &lt;local_port&gt;&lt;server_addr&gt;xxx.xx.xx.xx&lt;/server_addr&gt;
			&lt;server_port&gt;ppppp&lt;/server_port&gt;
			 &lt;resolve_retry&gt;&lt;proxy_addr&gt;&lt;proxy_port&gt;&lt;proxy_authtype&gt;none&lt;/proxy_authtype&gt;
			&lt;proxy_user&gt;myusername&lt;/proxy_user&gt;
			&lt;proxy_passwd&gt;mypassword&lt;/proxy_passwd&gt;

			&lt;mode&gt;p2p_shared_key&lt;/mode&gt;
			 &lt;custom_options&gt;&lt;shared_key&gt;mysharedkey &lt;shared_key&gt;&lt;crypto&gt;AES-128-CBC&lt;/crypto&gt;
			&lt;engine&gt;none&lt;/engine&gt;
			&lt;tunnel_network&gt;172.19.11.0/24&lt;/tunnel_network&gt;
			&lt;remote_network&gt;yyy.yyy.yyy.y/24&lt;/remote_network&gt;
			 &lt;use_shaper&gt;&lt;compression&gt;yes&lt;/compression&gt;
			 &lt;passtos&gt;&lt;/passtos&gt;&lt;/use_shaper&gt;&lt;/shared_key&gt;&lt;/shared_key&gt;&lt;/custom_options&gt;&lt;/proxy_port&gt;&lt;/proxy_addr&gt;&lt;/resolve_retry&gt;&lt;/local_port&gt;&lt;/ipaddr&gt;&lt;/openvpn-client&gt;&lt;/openvpn&gt; 

</code></pre>
<p dir="auto">And here is the config for the server:</p>
<pre><code>
		 &lt;openvpn-server&gt;&lt;vpnid&gt;3&lt;/vpnid&gt;
			&lt;mode&gt;p2p_shared_key&lt;/mode&gt;
			&lt;protocol&gt;UDP&lt;/protocol&gt;
			&lt;dev_mode&gt;tun&lt;/dev_mode&gt;
			&lt;ipaddr&gt;xxx.xx.xx.xx&lt;/ipaddr&gt;
			&lt;interface&gt;vip1&lt;/interface&gt;
			&lt;local_port&gt;ppppp&lt;/local_port&gt;

			 &lt;custom_options&gt;&lt;shared_key&gt;mysharedkey &lt;shared_key&gt;&lt;crypto&gt;AES-128-CBC&lt;/crypto&gt;
			&lt;engine&gt;none&lt;/engine&gt;
			&lt;tunnel_network&gt;172.19.11.0/24&lt;/tunnel_network&gt;
			&lt;remote_network&gt;yyy.yyy.yyy.y/24&lt;/remote_network&gt;

			&lt;local_network&gt;zzz.zzz.zzz.z/24&lt;/local_network&gt;
			 &lt;maxclients&gt;&lt;compression&gt;yes&lt;/compression&gt;
			&lt;passtos&gt;&lt;/passtos&gt;

			&lt;dynamic_ip&gt;&lt;/dynamic_ip&gt;
			&lt;pool_enable&gt;yes&lt;/pool_enable&gt;
			&lt;netbios_enable&gt;&lt;/netbios_enable&gt;
			&lt;netbios_ntype&gt;0&lt;/netbios_ntype&gt;&lt;/maxclients&gt;&lt;/shared_key&gt;&lt;/shared_key&gt;&lt;/custom_options&gt;&lt;/openvpn-server&gt; 

</code></pre>
<p dir="auto">I am not able to ping 172.19.11.2, and not able to ping 172.19.11.1 from the remote side.</p>
]]></description><link>https://forum.netgate.com/post/426147</link><guid isPermaLink="true">https://forum.netgate.com/post/426147</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Tue, 22 Oct 2013 14:46:39 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Tue, 22 Oct 2013 09:50:31 GMT]]></title><description><![CDATA[<p dir="auto">If you're expecting someone to help you, can you please post your openVPN config of both sided? thank you.</p>
]]></description><link>https://forum.netgate.com/post/426081</link><guid isPermaLink="true">https://forum.netgate.com/post/426081</guid><dc:creator><![CDATA[redflag237]]></dc:creator><pubDate>Tue, 22 Oct 2013 09:50:31 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Mon, 21 Oct 2013 15:18:36 GMT]]></title><description><![CDATA[<p dir="auto">Ok, so figured out that I had the OpenVPN server on my side listening on the WAN interface, not the CARP WAN interface.</p>
<p dir="auto">So it connects now, but no traffic flows over the tunnel.  Again I'm not seeing that the traffic is blocked.</p>
]]></description><link>https://forum.netgate.com/post/425955</link><guid isPermaLink="true">https://forum.netgate.com/post/425955</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Mon, 21 Oct 2013 15:18:36 GMT</pubDate></item><item><title><![CDATA[Reply to OpenVPN tunnel not connecting over NAT on Mon, 21 Oct 2013 13:28:15 GMT]]></title><description><![CDATA[<p dir="auto">The states on the remote side show:</p>
<pre><code>
udp	192.168.1.1:10790 -&gt; xxx.xx.xx.xx:ppppp	SINGLE:NO_TRAFFIC	
udp	192.168.1.1:62215 -&gt; xxx.xx.xx.xx:ppppp	SINGLE:NO_TRAFFIC

</code></pre>
<p dir="auto">and on my side:</p>
<pre><code>
udp	xxx.xx.xx.xx:ppppp &lt;- yyy.yyy.yy.yy:11810	NO_TRAFFIC:SINGLE	
udp	xxx.xx.xx.xx:ppppp &lt;- yyy.yyy.yy.yy:10790	NO_TRAFFIC:SINGLE	

</code></pre>
<p dir="auto">I don't show the traffic being blocked by either firewall.  OpenVPN software clients connect just fine from behind this router.</p>
]]></description><link>https://forum.netgate.com/post/425925</link><guid isPermaLink="true">https://forum.netgate.com/post/425925</guid><dc:creator><![CDATA[ttblum]]></dc:creator><pubDate>Mon, 21 Oct 2013 13:28:15 GMT</pubDate></item></channel></rss>