<?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[Redirect to specific host according to port]]></title><description><![CDATA[<p dir="auto">Good morning pfSense community,</p>
<p dir="auto">It's my first post here, I'm a pfSense novice so sorry I couldn't find a post that matches what I was looking for. Maybe I was looking for with wrong terms in Search field.</p>
<p dir="auto">I did install pfSense and my virtual machines are succesfully passing through it to have internet access. The portal works perfectly and I could also create rules to test on my lab environment.</p>
<p dir="auto">What I'm trying to achieve is:</p>
<ul>
<li>Whenever someone outside my network wants to access my machines via RDP, it must specify the hostname and port. Ex: SERVER01:3389</li>
<li>If a different port is specified, it goes to the respective host. Ex: SERVER01:3390 points to SERVER02:3389</li>
</ul>
<p dir="auto">How do I achieve this? Via DNS Resolver? I tried HAProxy, but couldn't accomplish it.</p>
<p dir="auto">THank you very much!</p>
]]></description><link>https://forum.netgate.com/topic/124015/redirect-to-specific-host-according-to-port</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 10:35:04 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/124015.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 Dec 2017 13:10:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Redirect to specific host according to port on Tue, 12 Dec 2017 11:23:07 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much Stewart! This topic is now solved! :)</p>
]]></description><link>https://forum.netgate.com/post/740664</link><guid isPermaLink="true">https://forum.netgate.com/post/740664</guid><dc:creator><![CDATA[ink_theory]]></dc:creator><pubDate>Tue, 12 Dec 2017 11:23:07 GMT</pubDate></item><item><title><![CDATA[Reply to Redirect to specific host according to port on Tue, 05 Dec 2017 19:27:52 GMT]]></title><description><![CDATA[<p dir="auto">Try creating a NAT that states<br />
From anywhere (really you should limit this if you can and not leave it open to the world)<br />
From any port<br />
Destined for your WAN IP<br />
Destined at the port you want people to use (ie 5443)<br />
Redirect Target IP is the IP of the internal server<br />
Redirect Target port is the port to access on the internal server.</p>
<p dir="auto">If you leave the ports as default on your servers inside the network and just let NAT do the translation things are easier.<br />
Make sure to access similar to https://wan.ip.addr:5443 from outside the network.  Inside the network it would be https://lan.ip.addr</p>
]]></description><link>https://forum.netgate.com/post/740173</link><guid isPermaLink="true">https://forum.netgate.com/post/740173</guid><dc:creator><![CDATA[Stewart]]></dc:creator><pubDate>Tue, 05 Dec 2017 19:27:52 GMT</pubDate></item><item><title><![CDATA[Reply to Redirect to specific host according to port on Tue, 05 Dec 2017 17:56:18 GMT]]></title><description><![CDATA[<p dir="auto">Hi NogBadTheBad,</p>
<p dir="auto">Thanks for the answer, I could accomplish this RDP solution for both servers using different ports and it went smoothly.<br />
Both servers do deliver a website using ports 80 and 443 but only one of them are serving.</p>
<p dir="auto">What I did try:</p>
<ul>
<li>A new forwarding port rule from 5443 to 5443 that uses https to serve the site from SERVER01.</li>
<li>A new forwarding port rule from 443 to  443 that uses https to serve the site from SERVER02</li>
</ul>
<p dir="auto">Each one has their own specific rule to forward the same way I did to RDP tests. But only SERVER02 works properly.<br />
Is there something else I must do?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.netgate.com/post/740145</link><guid isPermaLink="true">https://forum.netgate.com/post/740145</guid><dc:creator><![CDATA[ink_theory]]></dc:creator><pubDate>Tue, 05 Dec 2017 17:56:18 GMT</pubDate></item><item><title><![CDATA[Reply to Redirect to specific host according to port on Tue, 05 Dec 2017 13:58:15 GMT]]></title><description><![CDATA[<p dir="auto">NAT / port forwarding is your answer.</p>
<p dir="auto">https://doc.pfsense.org/index.php/How_can_I_forward_ports_with_pfSense</p>
<p dir="auto">You would need to port forward port X to SERVER01:3389, port Y to SERVER02:3389</p>
<p dir="auto">In their RDP connection they'd need to put your WAN-IP:X or Y in the computer logon details.</p>
<p dir="auto">NAT makes the decision on dst IP and port, hence two different ports hitting the WAN interface.</p>
<p dir="auto">TBH you'd be better setting up a VPN server on your WAN router, so they could connect via VPN then just connect to the server.</p>
<p dir="auto">https://doc.pfsense.org/index.php/IKEv2_with_EAP-MSCHAPv2</p>
]]></description><link>https://forum.netgate.com/post/740083</link><guid isPermaLink="true">https://forum.netgate.com/post/740083</guid><dc:creator><![CDATA[NogBadTheBad]]></dc:creator><pubDate>Tue, 05 Dec 2017 13:58:15 GMT</pubDate></item></channel></rss>