<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=Training%3A_NAT_and_Virtual_IPs</id>
	<title>Training: NAT and Virtual IPs - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.comfac.net/index.php?action=history&amp;feed=atom&amp;title=Training%3A_NAT_and_Virtual_IPs"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_NAT_and_Virtual_IPs&amp;action=history"/>
	<updated>2026-06-05T11:02:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mediawiki.comfac.net/index.php?title=Training:_NAT_and_Virtual_IPs&amp;diff=229&amp;oldid=prev</id>
		<title>Justinaquino: Created from Netgate pfSense training PDF</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_NAT_and_Virtual_IPs&amp;diff=229&amp;oldid=prev"/>
		<updated>2026-04-23T06:58:55Z</updated>

		<summary type="html">&lt;p&gt;Created from Netgate pfSense training PDF&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #e7f3ff; border-left: 6px solid #2196F3; padding: 16px; margin-bottom: 20px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;strong&amp;gt;Module Overview:&amp;lt;/strong&amp;gt; This module covers Network Address Translation (NAT) and Virtual IPs (VIPs) in pfSense Plus. You will learn the different types of NAT, how NAT interacts with firewall rules, and best practices for configuring translation in production networks.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Learning Objectives ==&lt;br /&gt;
&lt;br /&gt;
By the end of this module, you will be able to:&lt;br /&gt;
&lt;br /&gt;
* Explain what NAT is and how it modifies IP packet headers&lt;br /&gt;
* Identify common uses for NAT (Internet access, conflicting networks, routing issues)&lt;br /&gt;
* Distinguish between NAT rules and firewall rules&lt;br /&gt;
* Describe Port Forwards, 1:1 NAT, and Outbound NAT&lt;br /&gt;
* Understand NAT Reflection and why it should be avoided&lt;br /&gt;
* Troubleshoot common NAT problems&lt;br /&gt;
&lt;br /&gt;
== What is NAT? ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Network Address Translation (NAT)&amp;#039;&amp;#039;&amp;#039; is the modification of IP packet headers. It involves the replacement of:&lt;br /&gt;
&lt;br /&gt;
* Source and/or destination IP addresses&lt;br /&gt;
* Source and/or destination ports for TCP and UDP&lt;br /&gt;
&lt;br /&gt;
=== Common Uses of NAT ===&lt;br /&gt;
&lt;br /&gt;
* Internet access for private networks&lt;br /&gt;
* Connection of conflicting networks (overlapping IP ranges)&lt;br /&gt;
* Working around routing issues&lt;br /&gt;
&lt;br /&gt;
== NAT and Firewall Rules ==&lt;br /&gt;
&lt;br /&gt;
NAT rules are &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; firewall rules. NAT rules only define translation. You still need firewall rules to allow traffic to pass.&lt;br /&gt;
&lt;br /&gt;
=== Key Points ===&lt;br /&gt;
&lt;br /&gt;
* NAT rules and firewall rules are matched in a top-down fashion&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;LAN rules&amp;#039;&amp;#039;&amp;#039; are evaluated &amp;#039;&amp;#039;&amp;#039;pre-NAT&amp;#039;&amp;#039;&amp;#039; (using private source IPs)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;WAN rules&amp;#039;&amp;#039;&amp;#039; are evaluated &amp;#039;&amp;#039;&amp;#039;post-NAT&amp;#039;&amp;#039;&amp;#039; (using private destination IPs)&lt;br /&gt;
* Port forwards — pfSense Plus can automatically add corresponding firewall rules&lt;br /&gt;
&lt;br /&gt;
== Types of NAT ==&lt;br /&gt;
&lt;br /&gt;
=== Port Forwards ===&lt;br /&gt;
&lt;br /&gt;
Port forwards provide traffic redirection. Common use cases include:&lt;br /&gt;
&lt;br /&gt;
* Traditional port forward (e.g., external port to internal server)&lt;br /&gt;
* Transparent HTTP proxy&lt;br /&gt;
* Redirection of SMTP, DNS&lt;br /&gt;
&lt;br /&gt;
=== 1:1 NAT ===&lt;br /&gt;
&lt;br /&gt;
1:1 NAT is a mapping of one internal IP to one external IP. Key characteristics:&lt;br /&gt;
&lt;br /&gt;
* Can also map one internal network to one external network&lt;br /&gt;
* Configured on a per-interface basis&lt;br /&gt;
* Can optionally be limited to specific destinations&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ 1:1 NAT Example&lt;br /&gt;
|-&lt;br /&gt;
! Type !! External IP !! Internal IP&lt;br /&gt;
|-&lt;br /&gt;
| Host || 200.100.1.12 || 192.168.1.99&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Outbound NAT ===&lt;br /&gt;
&lt;br /&gt;
Outbound NAT controls how traffic leaving the firewall is translated.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Automatic outbound&amp;#039;&amp;#039;&amp;#039; — Default behavior; pfSense Plus automatically creates rules&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Manual outbound&amp;#039;&amp;#039;&amp;#039; — Administrator defines all rules explicitly&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Hybrid mode&amp;#039;&amp;#039;&amp;#039; — Combines automatic and manual rules&lt;br /&gt;
&lt;br /&gt;
Outbound NAT rule options include:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Static port&amp;#039;&amp;#039;&amp;#039; — Preserve the original source port&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Pool options&amp;#039;&amp;#039;&amp;#039; — Distribute translation across multiple IPs&lt;br /&gt;
&lt;br /&gt;
== NAT Reflection ==&lt;br /&gt;
&lt;br /&gt;
NAT Reflection allows accessing services via their public IP from inside the network.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Best Practice:&amp;#039;&amp;#039;&amp;#039; NAT Reflection should be avoided whenever possible because it:&lt;br /&gt;
&lt;br /&gt;
* Adds unnecessary overhead&lt;br /&gt;
* Loses the original source IP information&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Alternative:&amp;#039;&amp;#039;&amp;#039; Use Split DNS (internal DNS server resolving to private IPs) instead.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting NAT ==&lt;br /&gt;
&lt;br /&gt;
Remember these key troubleshooting steps:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;First match wins&amp;#039;&amp;#039;&amp;#039; — Rules are evaluated top-down&lt;br /&gt;
* Ensure the correct interface is selected&lt;br /&gt;
* Review firewall states (Diagnostics → States)&lt;br /&gt;
* Verify Virtual IP configuration if applicable&lt;br /&gt;
* Use Packet Capture for detailed inspection&lt;br /&gt;
* See the troubleshooting section in the NAT chapter of the pfSense book&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
&lt;br /&gt;
* NAT rules are &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; firewall rules&lt;br /&gt;
* Both are still matched in a top-down fashion&lt;br /&gt;
* You still need firewall rules to allow traffic to pass&lt;br /&gt;
* NAT Reflection is suboptimal — use an internal DNS server instead&lt;br /&gt;
* 1:1 NAT can be host-to-host or network-to-network&lt;br /&gt;
* NAT is interface-specific&lt;br /&gt;
&lt;br /&gt;
== Next Module ==&lt;br /&gt;
&lt;br /&gt;
Continue to &amp;#039;&amp;#039;&amp;#039;[[Training_Lab_3:_NAT_and_Virtual_IPs|Lab 3: NAT and Virtual IPs]]&amp;#039;&amp;#039;&amp;#039; for hands-on exercises configuring Virtual IPs, Port Forwards, 1:1 NAT, and Outbound NAT.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Source: Netgate FUND001-LIVE-SLIDE-SEG3-NATVIP.pdf / FUND001-LIVE-Lab3-NATandVIPs.pdf&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Justinaquino</name></author>
	</entry>
</feed>