Homelab Networking Basics with pfSense and VLANs Explained

Think your VLANs are isolated? A single misplaced "pass any" rule in pfSense can silently flatten your entire segmented network. Here's how rule order, trunked interfaces, and real testing actually keep your homelab separated.

Homelab Networking Basics with pfSense and VLANs Explained

Homelab networking basics with pfSense and VLANs: what actually isolates your network

You've got four subnets configured, a firewall rule for every VLAN, and you're feeling pretty good about your segmentation. Then you run a quick ping from your IoT VLAN to the NAS. Reply from 192.168.20.10. That's the moment most homelabbers discover their four subnets were never isolated at all — they just had four address ranges on one flat network, with a firewall politely looking the other way.

I made exactly that mistake on my own first pfSense build. VLANs tagged, interfaces up, DHCP handing out addresses like clockwork. And the whole time, every device could reach every other device because of a single "pass any" rule sitting at the top of one tab. If you're setting up homelab networking basics with pfSense and VLANs, that rule order matters more than anything else you'll configure.

Key Takeaways

  • pfSense evaluates firewall rules per interface, first match wins — a pass-any rule at the top of a tab silently overrides every block rule below it.
  • One trunked interface with VLAN sub-interfaces scales better than one physical NIC per network.
  • Isolation is only real if you test it. Ping, port scans, and traceroutes from each VLAN prove or disprove your design.
  • Start with a working WAN/LAN before touching VLANs — debugging both at once is miserable.

Before you tag anything: the prerequisites nobody mentions

Most guides jump straight to Interfaces > Assignments > VLANs. Skip that step until you have a functional pfSense box with a working WAN and at least one LAN you can reach from your laptop. I once burned an entire Saturday chasing a VLAN problem that turned out to be a broken WAN DHCP lease — the VLAN was fine, the router had no internet, and I'd wrongly assumed the new VLAN interface was to blame.

Before you tag anything: the prerequisites nobody mentions

What you actually need

  • A managed switch (or a hypervisor with a virtual switch) that understands 802.1Q tagging
  • pfSense installed and reachable at its LAN address
  • A clear plan of which VLAN tag corresponds to which subnet — write it down, you will forget
  • A device on each VLAN you're willing to break while testing

Here's the thing: the tag number is arbitrary 1–4094, but the subnet behind it is not. Pick a scheme and stick to it. Mine is 10 for management, 20 for trusted devices, 30 for IoT, 40 for guests. When something's misbehaving at 3am, having a mental map you never have to look up saves real time.

Trunked interface or one NIC per network?

On a hypervisor, the temptation is to spin up a separate virtual NIC for each subnet. Don't. Create one vNIC, set it to a trunk (with VLAN ID 4095 on most virtual switches, which means "pass all tags"), and let pfSense create sub-interfaces on top of it. Fewer moving parts, cleaner firewall layout, and it mirrors what you'd do on real hardware with a single cable to a trunk port.

Building the VLAN interfaces in pfSense

Yes, the menu path is boring. Interfaces > Assignments > VLANs, add your tag, associate it with the parent interface. Then Interfaces > Assignments to map the new VLAN to an interface, then configure static IPv4 and enable DHCP if you want it. The part that trips people up isn't the click-through — it's forgetting to enable the interface, or assigning the same subnet to two VLANs by accident.

Static IPv4 and DHCP in the right order

Set the interface to static IPv4 with your gateway address (10.0.30.1 for IoT, for example). Save. Apply changes. Then go to Services > DHCP Server for that interface and enable the pool. If you enable DHCP before the interface is up, pfSense will refuse it or hand out nothing, and you'll spend twenty minutes wondering why your test device won't get a lease.

Confirming the interface is really up

Status > Interfaces. If your VLAN line says "down," the trunk isn't passing tags. Verify the switch port is set to trunk mode with the correct allowed VLANs. On a hypervisor, check the virtual switch's VLAN policy — some default to "VLAN ID 0," which drops every tag. This is one of the most common reasons a freshly built VLAN stays dark.

Firewall rules and the pass-any trap that breaks isolation

This is the section that matters. pfSense processes firewall rules per interface, in top-to-bottom order, and stops at the first match. That single sentence explains why so many "isolated" homelabs aren't isolated at all.

How rule evaluation actually works

When a packet arrives on the IoT interface, pfSense looks at the rules on the IoT tab only, starting at the top. The first rule that matches the traffic is applied — pass or block — and evaluation stops there. Any rule below it is never consulted, even if it's more specific or more restrictive.

So if your IoT tab looks like this:

  1. Pass any protocol from IoT net to any (added "just to get things working")
  2. Block IoT to LAN net
  3. Block IoT to management VLAN

…the second and third rules are decoration. Rule 1 matches everything and passes it. Your IoT thermostat can reach your NAS, your admin workstation, and your router's web GUI. This is what the SERP-friendly guides gloss over: they show you how to create rules but rarely how the engine chooses between them.

The rule order I actually use

Put block rules first, specific allows after, and an explicit block-all last. On my IoT tab:

  • Block IoT → management VLAN (10.0.10.0/24)
  • Block IoT → trusted VLAN (10.0.20.0/24)
  • Allow IoT → internet (any)
  • Allow IoT → local DNS/Pi-hole
  • Block all (default deny, explicit, so the intent is visible)

That gives you a network where the smart speaker can stream music but can't phone home to your Synology. The final explicit block is technically redundant — pfSense's implicit deny handles it — but I keep it so a future me reading the rules can see the design intent without guessing. First match wins, and the first match should be the one you actually meant.

Inter-VLAN routing: allow specific, not broad

If you want one device to cross VLANs (a Plex server, say, reachable from IoT), write a narrow rule: pass from IoT subnet to 10.0.20.x port 32400. Not "IoT to trusted net." The narrower the rule, the less you have to reason about later. I learned this after a printer on the guest VLAN somehow ended up with access to my whole trusted subnet because of a broad pass rule I'd forgotten existed.

Proving your segmentation actually works

Configuration is a hypothesis. Testing is the proof. If you never run the tests, you don't have isolation — you have hope.

The tests worth running

  • Ping from each VLAN to each other VLAN's gateway. Expect failure across blocked pairs.
  • Ping from each VLAN to a known host on another VLAN (your NAS, a workstation). Expect failure.
  • Traceroute from IoT to an internet address — confirm it leaves via WAN, not via an inter-VLAN route.
  • A quick port scan (nmap on a laptop is fine) from IoT at your trusted subnet to see what's actually reachable.
  • Disable the test device's firewall, retry — if it suddenly works, your host firewall was hiding a routing problem.

When I first tested my setup, two VLANs reported complete isolation while a third leaked to the NAS. Cause: one stray pass rule I'd added weeks earlier and forgotten. The test took four minutes. The debugging without the test would have taken hours.

The leaks people don't test for

IPv6. If you've left IPv6 enabled with an allow-all rule on a VLAN, devices with IPv6 addresses can route around your IPv4 rules. Disable IPv6 on VLANs that don't need it, or write matching IPv6 rules. I disabled it on IoT and guests immediately — no regrets.

Also check DHCP — if a VLAN has DHCP enabled and a test device grabs an address, but you've also got a static route pointing a subnet somewhere unexpected, traffic can behave oddly. Clear the obvious stuff first, then look for the strange.

Putting it together: a reference layout

Here's the scheme that's held up on my lab for the past couple of years, in a table you can copy:

VLANPurposeSubnetInternetCan reach
10Management10.0.10.0/24LimitedAll VLANs (admin)
20Trusted devices10.0.20.0/24YesManagement, internet
30IoT10.0.30.0/24YesInternet only
40Guests10.0.40.0/24YesInternet only

Isolation is by design: management can reach everything (you need admin access), trusted devices reach management and the internet, IoT and guests reach nothing but the internet. Every block rule sits above its allow equivalents. Every VLAN has an explicit block-all at the bottom so a future editor can't add a stray pass without noticing.

Is this overkill for a home network?

Depends what you're protecting. If you have one laptop and a phone, no. If you have a few dozen always-on devices — smart bulbs, a media server, a printer, a NAS full of family photos — segmentation is worth the weekend. It's the difference between one compromised device causing a nuisance and one compromised device having the run of the house.

What if you're migrating a working flat network?

Do it one VLAN at a time. Start with guests, which break nothing. Then IoT. Then trusted. Leave management last and only move it once everything else is proven. I tried to move all four at once on my first attempt; I ended up with no working admin access and had to reset pfSense from a laptop plugged into a physical port. Don't be me.

The most useful thing I've learned from running a segmented lab: the configuration is the easy part. The discipline of putting block rules first, allowing narrowly, and testing what you built — that's the skill. The first time a ping from your IoT VLAN gets no reply, and you know exactly why, you've crossed from hoping your network is segmented to knowing it is.

Daniel Lockhart

Daniel Lockhart

Daniel Lockhart is an author and policy analyst whose work focuses on open source licensing, digital sovereignty policy, data privacy regulation, and public sector procurement. He helps organizations navigate the legal and strategic complexities of technology governance, with a particular emphasis on how public institutions can maintain control over their digital infrastructure. His writing translates dense regulatory and technical topics into practical guidance for decision-makers.

See all articles →

Related articles