<?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[How to properly do a 1:1 - public to private?]]></title><description><![CDATA[<p dir="auto">WAN interface - 216.201.100.110<br />
Useable IP's for distribution 216.201.100.111-120 from ISP</p>
<p dir="auto">Internal - 192.168.200.0/24</p>
<p dir="auto">Server 1 - 192.168.200.19   service needed SMTP,HTTP,HTTPS, RDP<br />
Server 2 - 192.168.200.6    service needed FTP,RDP<br />
Server 3 - 192.168.200.11   service needed PPTP, RDP<br />
Server 4 - 192.168.200.8    service needed HTTP,HTTPS, RDP</p>
<p dir="auto"><em>A</em>  I created a 1:1 in NAT firewall</p>
<p dir="auto">216.201.100.111 –&gt; 192.168.200.19<br />
216.201.100.112 --&gt; 192.168.200.6<br />
216.201.100.113 --&gt; 192.168.200.11<br />
216.201.100.114 --&gt; 192.168.200.8</p>
<p dir="auto"><em>B</em>  then I created a FIREWALL rules from source ANY to each specific private/ports - for example:</p>
<p dir="auto"><strong>Server 1 Example of rules:</strong><br />
INTERFACE:PORT–&gt;DESTINATION:PORT<br />
ANY:HTTP--&gt;192.168.200.19:HTTP<br />
ANY:HTTPS--&gt;192.168.200.19:HTTPS<br />
ANY:SMTP--&gt;192.168.200.19:SMTP<br />
ANY:RDP--&gt;192.168.200.19:RDP</p>
<p dir="auto"><strong>Server 2 Example of rules:</strong><br />
INTERFACE:PORT–&gt;DESTINATION:PORT<br />
ANY:HTTP--&gt;192.168.200.6:FTP<br />
ANY:RDP--&gt;192.168.200.6:RDP</p>
<p dir="auto"><strong>Server 3 Example of rules:</strong><br />
INTERFACE:PORT–&gt;DESTINATION:PORT<br />
ANY:PPTP--&gt;192.168.200.11:PPTP<br />
ANY:RDP--&gt;192.168.200.11:RDP</p>
<p dir="auto"><strong>Server 4 Example of rules:</strong><br />
INTERFACE:PORT–&gt;DESTINATION:PORT<br />
ANY:HTTP--&gt;192.168.200.8:HTTP<br />
ANY:HTTPS--&gt;192.168.200.8:HTTPS<br />
ANY:RDP--&gt;192.168.200.8:RDP</p>
<p dir="auto"><strong>(1)  So I manually create the NAT 1:1 then I create a rule for the specific port/service - is this proper order?</strong></p>
<p dir="auto"><strong>(2)  Is this correct or is there a better way to do this?</strong></p>
<p dir="auto"><strong>(3)  Is there any other items I need to do to make sure this works?</strong></p>
<p dir="auto">NOTE:  I disabled DHCP, as we use AD 2003, and DNS on the pfsense uses OpenDNS IP addresses.</p>
]]></description><link>https://forum.netgate.com/topic/6551/how-to-properly-do-a-1-1-public-to-private</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 19:02:02 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/6551.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Nov 2007 09:09:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to properly do a 1:1 - public to private? on Tue, 27 Nov 2007 18:35:19 GMT]]></title><description><![CDATA[<p dir="auto">The order is correct. Setting up a Virtual IP is basically telling the firewall to accept the traffic coming in on that IP. For example, if the firewall's WAN address was 1.1.1.6 and you had a server behind the firewall that you wanted to get traffic sent to 1.1.1.1, you would have to tell the firewall that it is also using that IP address. Otherwise, the traffic comes in from your ISP's router and the firewall ignores it.<br />
See<br />
http://en.wikipedia.org/wiki/Address_Resolution_Protocol<br />
and http://en.wikipedia.org/wiki/Proxy_ARP</p>
]]></description><link>https://forum.netgate.com/post/162449</link><guid isPermaLink="true">https://forum.netgate.com/post/162449</guid><dc:creator><![CDATA[dotdash]]></dc:creator><pubDate>Tue, 27 Nov 2007 18:35:19 GMT</pubDate></item><item><title><![CDATA[Reply to How to properly do a 1:1 - public to private? on Tue, 27 Nov 2007 18:38:31 GMT]]></title><description><![CDATA[<p dir="auto">thank you sir…your rule explanation makes the muky water clearer  :D</p>
<p dir="auto">as for the Virtual IP / Proxy ARP, I'm still looking into it, but from my brief understanding it means...<br />
if you are translating any ip addresses between two different subnets, then add it into Virtual IP / Proxy ARP section/part</p>
<p dir="auto">for example, outside address 1.1.1.1 to internal 192.168.1.1, i would create - HERE is the PROCESS in order (from my understanding)<br />
1.  CREATE Virtual IP for 1.1.1.1 - proxy arp (mapping from or source address)<br />
2.  CREATE 1:1 NAT under Firewall (map my external 1.1.1.1 to internal 192.168.1.1)<br />
3.  Lastly, create the rules for the specific services your server will use (SMTP, FTP, HTTP, etc)</p>
<p dir="auto">Thank you for your feedback and explanation...more reading/learning</p>
<p dir="auto">SAMPLE SMTP RULE:</p>
<p dir="auto"><img src="/public/_imported_attachments_/1/sampleSMTP.jpg" alt="sampleSMTP.jpg" class=" img-fluid img-markdown" /><br />
<img src="/public/_imported_attachments_/1/sampleSMTP.jpg_thumb" alt="sampleSMTP.jpg_thumb" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.netgate.com/post/162447</link><guid isPermaLink="true">https://forum.netgate.com/post/162447</guid><dc:creator><![CDATA[pinoyboy]]></dc:creator><pubDate>Tue, 27 Nov 2007 18:38:31 GMT</pubDate></item><item><title><![CDATA[Reply to How to properly do a 1:1 - public to private? on Tue, 27 Nov 2007 17:49:12 GMT]]></title><description><![CDATA[<p dir="auto">I'm using * for ANY because that's what you see when you view the rules page.<br />
A quick and dirty breakdown of the example rule:<br />
TCP * * 192.168.200.19 25(SMTP) *<br />
Pass TCP traffic from any host with any source port with the destination of 192.168.200.19 port 25<br />
gateway and schedule are left at defaults.<br />
Most services are pure TCP, so you would select TCP from protocol. http://en.wikipedia.org/wiki/Internet_protocol_suite<br />
The source should be left as ANY unless you want to restrict access to the service (eg- you might allow ssh only from the source IP of your home connection)<br />
There are few reasons to restrict the source port, so leave it at default…<br />
The destination is the private IP of the machine running the service.<br />
The destination port is the port the service is listening on<br />
http://en.wikipedia.org/wiki/TCP_and_UDP_port<br />
You can safely leave the rest of the settings at default.<br />
The tricky ones in your list are FTP, which is such a mess that it has it's own troubleshooting FAQ, and PPTP, which uses GRE in addition to the TCP port. Try using the redirection under VPN, PPTP, or look through the PPTP section of the forum.</p>
<p dir="auto">1-1's are more of a manual setup, port-forwards are bit more friendly to a new user, as they will auto-create the correct firewall rule for you by default.</p>
]]></description><link>https://forum.netgate.com/post/162446</link><guid isPermaLink="true">https://forum.netgate.com/post/162446</guid><dc:creator><![CDATA[dotdash]]></dc:creator><pubDate>Tue, 27 Nov 2007 17:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to How to properly do a 1:1 - public to private? on Tue, 27 Nov 2007 17:17:53 GMT]]></title><description><![CDATA[<p dir="auto">1.  I tried the reading all the items on 1:1 for my scenario (m0n0wall samples, google, boards here), and really did not get far (sorry quite new to fw thinking) - I only chose pfsense due to its stellar reviews on the Net and 1:1 options</p>
<p dir="auto">2.  from the tasks that i performed, the only item I did not perform based on your feedback was not adding Virtual IPs - I need to understand that more…and more on rules (I thought my rules were far more defined - all or nothing thought).</p>
<p dir="auto">3.  when you use * in your sample, I suppose that means ANY; sorry newbie</p>
<p dir="auto">4.  you said - **TCP * * 192.168.200.19 25(SMTP) ***   - I interpret this as source ANY, source port ANY, destination to host 192.168.200.19, destination port from SMTP, destination port to as ANY - is this correct to what you are saying?</p>
<p dir="auto">I truly understand ports and what needs to go through, my problem is how to actually order it and details (the application setup) - such as reaons for Virtual IPs, etc…  If you look at what I did, it makes COMPLETE/LOGICAL sense to newbs - I need to learn illogical fws</p>
<p dir="auto">Is there a doc (I have been googling and perusing this board) that would better explain to me what I am trying to accomplish?</p>
<p dir="auto">BTW, I only have LAN and WAN interface - no DMZ -if it makes any difference</p>
<p dir="auto">Thanky you.</p>
]]></description><link>https://forum.netgate.com/post/162444</link><guid isPermaLink="true">https://forum.netgate.com/post/162444</guid><dc:creator><![CDATA[pinoyboy]]></dc:creator><pubDate>Tue, 27 Nov 2007 17:17:53 GMT</pubDate></item><item><title><![CDATA[Reply to How to properly do a 1:1 - public to private? on Tue, 27 Nov 2007 15:23:48 GMT]]></title><description><![CDATA[<p dir="auto">I'll skip the 'search before posting' bit for. But you're doing it wrong.<br />
Just to be clear, you would first go to firewall, virtual ip's, and add the public IPs.<br />
Then firewall, NAT, 1-1.<br />
Then firewall rules, wan.<br />
example for SMTP-<br />
TCP * * 192.168.200.19 25(SMTP) *<br />
Protocol is TCP, source ports are random, destination port is the port the service listens on. You do have the private ip as the destination, which is correct.</p>
]]></description><link>https://forum.netgate.com/post/162441</link><guid isPermaLink="true">https://forum.netgate.com/post/162441</guid><dc:creator><![CDATA[dotdash]]></dc:creator><pubDate>Tue, 27 Nov 2007 15:23:48 GMT</pubDate></item></channel></rss>