<?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_Interfaces_and_Firewall_Rules</id>
	<title>Training: Interfaces and Firewall Rules - 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_Interfaces_and_Firewall_Rules"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_Interfaces_and_Firewall_Rules&amp;action=history"/>
	<updated>2026-06-05T11:00:51Z</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:_Interfaces_and_Firewall_Rules&amp;diff=227&amp;oldid=prev</id>
		<title>Justinaquino: Created page with &quot;__NOTOC__  &lt;div style=&quot;background-color:#e6f3ff; border:1px solid #0066cc; padding:10px; margin-bottom:15px;&quot;&gt; &#039;&#039;&#039;Module: FUND001-LIVE Section 2 — Interfaces, VIPs, and Firewall Rules&#039;&#039;&#039;&lt;br&gt; This training module covers pfSense interface configuration, Virtual IP types, firewall rules, aliases, and best practices for rule management. &lt;/div&gt;  == Learning Objectives ==  By the end of this module, you will be able to:  * Understand OS interface names versus pfSense interfa...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.comfac.net/index.php?title=Training:_Interfaces_and_Firewall_Rules&amp;diff=227&amp;oldid=prev"/>
		<updated>2026-04-23T06:58:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  &amp;lt;div style=&amp;quot;background-color:#e6f3ff; border:1px solid #0066cc; padding:10px; margin-bottom:15px;&amp;quot;&amp;gt; &amp;#039;&amp;#039;&amp;#039;Module: FUND001-LIVE Section 2 — Interfaces, VIPs, and Firewall Rules&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt; This training module covers pfSense interface configuration, Virtual IP types, firewall rules, aliases, and best practices for rule management. &amp;lt;/div&amp;gt;  == Learning Objectives ==  By the end of this module, you will be able to:  * Understand OS interface names versus pfSense interfa...&amp;quot;&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:#e6f3ff; border:1px solid #0066cc; padding:10px; margin-bottom:15px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Module: FUND001-LIVE Section 2 — Interfaces, VIPs, and Firewall Rules&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
This training module covers pfSense interface configuration, Virtual IP types, firewall rules, aliases, and best practices for rule management.&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;
* Understand OS interface names versus pfSense interface identifiers&lt;br /&gt;
* Configure and manage interfaces in pfSense&lt;br /&gt;
* Identify and apply appropriate Virtual IP (VIP) types&lt;br /&gt;
* Create and manage firewall rules with proper ordering&lt;br /&gt;
* Use aliases to simplify and streamline rulesets&lt;br /&gt;
* Apply firewall best practices and troubleshooting techniques&lt;br /&gt;
&lt;br /&gt;
== Interfaces ==&lt;br /&gt;
&lt;br /&gt;
=== OS Interface Names vs. Interface Identifiers ===&lt;br /&gt;
&lt;br /&gt;
In pfSense, network interfaces have two naming conventions:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;OS Interface Names&amp;#039;&amp;#039;&amp;#039; — Physical or virtual NIC names assigned by the operating system (e.g., &amp;lt;code&amp;gt;igb0&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;re1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ixl2&amp;lt;/code&amp;gt;)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Interface Identifiers&amp;#039;&amp;#039;&amp;#039; — User-friendly labels assigned within pfSense (e.g., &amp;lt;code&amp;gt;LAN&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;WAN&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;OPT1&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
Key tasks:&lt;br /&gt;
* Interface Assignments — mapping OS names to pfSense identifiers&lt;br /&gt;
* Configuring Interfaces — setting IP addresses, enabling/disabling, and renaming&lt;br /&gt;
&lt;br /&gt;
== Virtual IPs (VIPs) ==&lt;br /&gt;
&lt;br /&gt;
Virtual IPs allow multiple IP addresses to be assigned to a single interface.&lt;br /&gt;
&lt;br /&gt;
=== VIP Types ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! VIP Type&lt;br /&gt;
! MAC Address Binding&lt;br /&gt;
! NAT Service&lt;br /&gt;
! ARP&lt;br /&gt;
! HA&lt;br /&gt;
! Ping&lt;br /&gt;
! Single/Range&lt;br /&gt;
|-&lt;br /&gt;
| IP Alias&lt;br /&gt;
| Parent NIC&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Single&lt;br /&gt;
|-&lt;br /&gt;
| CARP&lt;br /&gt;
| Shared vMAC&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Yes&lt;br /&gt;
| Single&lt;br /&gt;
|-&lt;br /&gt;
| Proxy ARP&lt;br /&gt;
| Parent NIC&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Either&lt;br /&gt;
|-&lt;br /&gt;
| Other&lt;br /&gt;
| N/A&lt;br /&gt;
| No&lt;br /&gt;
| No&lt;br /&gt;
| Yes&lt;br /&gt;
| No&lt;br /&gt;
| Either&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;IP Alias&amp;#039;&amp;#039;&amp;#039; — Most common type; binds additional IPs to the parent NIC&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;CARP&amp;#039;&amp;#039;&amp;#039; — Used for high availability; shares a virtual MAC address between redundant firewalls&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Proxy ARP&amp;#039;&amp;#039;&amp;#039; — Responds to ARP requests on behalf of another IP; no service binding&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Other&amp;#039;&amp;#039;&amp;#039; — For miscellaneous purposes such as 1:1 NAT without ARP&lt;br /&gt;
&lt;br /&gt;
== Firewall Rules ==&lt;br /&gt;
&lt;br /&gt;
=== Core Concepts ===&lt;br /&gt;
&lt;br /&gt;
* Rules apply &amp;#039;&amp;#039;&amp;#039;inbound&amp;#039;&amp;#039;&amp;#039; on the interface where traffic is sourced&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;First match wins&amp;#039;&amp;#039;&amp;#039; — all subsequent rules are ignored for matching traffic&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Stateful filtering&amp;#039;&amp;#039;&amp;#039; — pfSense tracks connection states automatically&lt;br /&gt;
* Actions: &amp;#039;&amp;#039;&amp;#039;Pass&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Block&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;Reject&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
=== Default Rules ===&lt;br /&gt;
&lt;br /&gt;
The following default rules are present on a new installation:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Block private networks&amp;#039;&amp;#039;&amp;#039; — Blocks RFC 1918 traffic on WAN&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Block bogon networks&amp;#039;&amp;#039;&amp;#039; — Blocks unassigned/reserved IP space&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Anti-lockout rule&amp;#039;&amp;#039;&amp;#039; — Prevents administrators from locking themselves out&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Default LAN Allow rule&amp;#039;&amp;#039;&amp;#039; — Permits all outbound traffic from LAN&lt;br /&gt;
&lt;br /&gt;
=== Rule Evaluation Order ===&lt;br /&gt;
&lt;br /&gt;
# Floating Rules&lt;br /&gt;
# Interface Group Rules&lt;br /&gt;
# Single Interface Rules&lt;br /&gt;
&lt;br /&gt;
=== Floating Rules ===&lt;br /&gt;
&lt;br /&gt;
* Can apply to &amp;#039;&amp;#039;&amp;#039;all interfaces&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Checked &amp;#039;&amp;#039;&amp;#039;first&amp;#039;&amp;#039;&amp;#039; in evaluation order&lt;br /&gt;
* Extra &amp;#039;&amp;#039;&amp;#039;&amp;quot;match&amp;quot;&amp;#039;&amp;#039;&amp;#039; action available&lt;br /&gt;
* Can set traffic attributes (limiters, queues, etc.)&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Not meant for regular access rules&amp;#039;&amp;#039;&amp;#039; — primarily for traffic-shaping and advanced filtering&lt;br /&gt;
&lt;br /&gt;
=== Interface Groups ===&lt;br /&gt;
&lt;br /&gt;
* Association of multiple interfaces&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Shared firewall ruleset&amp;#039;&amp;#039;&amp;#039; across grouped interfaces&lt;br /&gt;
* Eliminates need to duplicate rules between interfaces&lt;br /&gt;
&lt;br /&gt;
=== Advanced Settings ===&lt;br /&gt;
&lt;br /&gt;
Firewall rules support numerous advanced options:&lt;br /&gt;
&lt;br /&gt;
* Source OS (TCP only)&lt;br /&gt;
* Diffserv Code Point (DSCP)&lt;br /&gt;
* State type&lt;br /&gt;
* TCP flags&lt;br /&gt;
* No XMLRPC Sync&lt;br /&gt;
* 802.1p&lt;br /&gt;
* Schedule&lt;br /&gt;
* Gateway&lt;br /&gt;
* Limiters (In/Out)&lt;br /&gt;
* ACK queue / Queue&lt;br /&gt;
&lt;br /&gt;
== Aliases ==&lt;br /&gt;
&lt;br /&gt;
Aliases simplify firewall rule management by grouping IPs, networks, hostnames, or ports under a single name.&lt;br /&gt;
&lt;br /&gt;
=== Benefits ===&lt;br /&gt;
&lt;br /&gt;
* Ease management&lt;br /&gt;
* Faster, less error-prone updates&lt;br /&gt;
* Shorter, more manageable rulesets&lt;br /&gt;
&lt;br /&gt;
=== Configuration Options ===&lt;br /&gt;
&lt;br /&gt;
* Statically configured&lt;br /&gt;
* URL — one-time import, suitable for small lists&lt;br /&gt;
* URL table — configurable update frequency, supports large and small lists&lt;br /&gt;
* Nesting of aliases (aliases within aliases)&lt;br /&gt;
* Bulk import&lt;br /&gt;
&lt;br /&gt;
== Best Practices ==&lt;br /&gt;
&lt;br /&gt;
* Follow &amp;#039;&amp;#039;&amp;#039;default deny philosophy&amp;#039;&amp;#039;&amp;#039; — allow only what is required, block all else&lt;br /&gt;
* Keep rulesets &amp;#039;&amp;#039;&amp;#039;short and clean&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Periodic review&amp;#039;&amp;#039;&amp;#039; of rules (recommended: quarterly)&lt;br /&gt;
* Remember rules apply on the &amp;#039;&amp;#039;&amp;#039;interface where traffic is sourced&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Use &amp;#039;&amp;#039;&amp;#039;aliases&amp;#039;&amp;#039;&amp;#039; extensively in your rules&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
When diagnosing firewall issues:&lt;br /&gt;
&lt;br /&gt;
* Remember: &amp;#039;&amp;#039;&amp;#039;first match wins&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Verify rules apply on the correct interface&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Enable logging&amp;#039;&amp;#039;&amp;#039; on suspect rules&lt;br /&gt;
* Check &amp;#039;&amp;#039;&amp;#039;states&amp;#039;&amp;#039;&amp;#039; (Diagnostics &amp;gt; States)&lt;br /&gt;
* Review &amp;#039;&amp;#039;&amp;#039;System Logs &amp;gt; Firewall&amp;#039;&amp;#039;&amp;#039; for blocked traffic&lt;br /&gt;
&lt;br /&gt;
== Summary ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key Takeaway&lt;br /&gt;
! Details&lt;br /&gt;
|-&lt;br /&gt;
| VIP Selection&lt;br /&gt;
| Use appropriate VIP types (IP Alias, CARP, Proxy ARP) based on needs&lt;br /&gt;
|-&lt;br /&gt;
| Rule Ordering&lt;br /&gt;
| Evaluation order: Floating → Interface Group → Single Interface&lt;br /&gt;
|-&lt;br /&gt;
| Aliases&lt;br /&gt;
| Use aliases to keep rulesets manageable and reduce errors&lt;br /&gt;
|-&lt;br /&gt;
| Review Schedule&lt;br /&gt;
| Check rules quarterly for accuracy and relevance&lt;br /&gt;
|-&lt;br /&gt;
| Interface Awareness&lt;br /&gt;
| Rules apply on the interface where traffic is sourced&lt;br /&gt;
|-&lt;br /&gt;
| Floating Rules&lt;br /&gt;
| Primarily for traffic-shaping, not regular access control&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This concludes Section 2.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Next Module:&amp;#039;&amp;#039;&amp;#039; [[Training_Lab_2:_Firewall_Rules_and_Aliases|Lab 2 — Firewall Rules and Aliases]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Source: Netgate FUND001-LIVE-SLIDE-SEG2-RULES.pdf&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Justinaquino</name></author>
	</entry>
</feed>