<?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, NAT redirect WAN site how ?]]></title><description><![CDATA[<p dir="auto">Hi all,<br />
ist this possible on pfsense ?</p>
<p dir="auto">example on linux:<br />
iptables -t nat -A PREROUTING -p udp –dport 53 -j REDIRECT --to-ports 1194<br />
iptables -t nat -A PREROUTING -p udp --dport 21 -j REDIRECT --to-ports 1194</p>
<p dir="auto">incoming WAN udp ports redirect to the internal openvpn Server, should this work on pfsense (with pf rules) ?</p>
<p dir="auto">thx for any help here.</p>
]]></description><link>https://forum.netgate.com/topic/109912/openvpn-nat-redirect-wan-site-how</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 01:29:42 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/109912.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Jan 2017 13:58:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenVPN, NAT redirect WAN site how ? on Thu, 09 Feb 2017 03:18:32 GMT]]></title><description><![CDATA[<p dir="auto">Yes, can be done with NAT, and does work.</p>
<p dir="auto">Setup regular openvpn connection, in your choice of flavour.</p>
<p dir="auto">Additional changes…<br />
client - change port to alternate chosen 53, 21 etc, ie not 1194</p>
<p dir="auto">server - if 53, set DNS Resolver/Forwarder to not listen on WAN, by selecting only LAN, OPT, localhost etc</p>
<p dir="auto">server - firewall / NAT / Port forward<br />
  interface WAN, protocol UDP, destination WAN address, destination port 53 (or 21 etc), redirect target IP x.x.x.x (WAN actual address, or an alias of it,  but not localhost), target port 1194</p>
<p dir="auto">vpn then connects., or at least in my lab it does. YMMV.</p>
<p dir="auto">Not sure how it would work with dynamic public IP on server side.</p>
<p dir="auto">Now you can vpn from places that block most outbound ports, but allow common ports like 53 , 80 etc, or to make it less obvious you are using vpn.</p>
]]></description><link>https://forum.netgate.com/post/678822</link><guid isPermaLink="true">https://forum.netgate.com/post/678822</guid><dc:creator><![CDATA[mcdiesel]]></dc:creator><pubDate>Thu, 09 Feb 2017 03:18:32 GMT</pubDate></item></channel></rss>