Overview

Write firewall rules between VLANs

VLANs only separate networks if the firewall limits what passes between them. This guide lets each VLAN reach what it needs and blocks the rest.

5 minute readFollows: Split the network into VLANsReviewed 15 November 2026
What improves

Each network reaches only what it needs.

Why it matters

VLANs alone separate nothing. The firewall rules decide what crosses between them.

How you do it

Write allow rules for clients, servers, domain controllers and management, block the rest, then test.

Every name, address and value in this guide is an example. Replace them with your own.

How pfSense reads rules

  • Rules sit on the interface where traffic enters the firewall.
  • pfSense reads them from the top and uses the first one that matches.
  • Anything that matches no rule is blocked.

What each VLAN may do

VLANMay reachBlocked
10 ManagementEverything, including the admin pageNothing
20 Domain controllersDNS on the firewall, internet time, web for updatesOther VLANs, the admin page
30 ServersThe domain controllers on AD ports, web on 80 and 443Clients, other VLANs, the admin page
40 MonitoringNothing yetEverything
50 ClientsThe domain controllers on AD ports, the internetServers, other VLANs, the admin page

The two domain controllers talk to each other inside VLAN 20, so the firewall never sees that traffic.

The route

  1. Create firewall aliases

    Named lists of addresses and ports.

  2. Rules for clients and servers
  3. Rules for domain controllers and management
  4. Test what passes and what does not
  5. Isolate a test network

    Optional, for security testing machines.

Rule names

Describe every rule as CON-FW-<Purpose>-<Direction>, such as CON-FW-Clients-AD-TCP. The description shows in the logs, so a blocked connection tells you which rule stopped it.

Your progress is kept in this browser only.