Running a security research lab on your home network without segmentation is the kind of thing that seems fine until it is not. You spin up a vulnerable VM, run a service misconfiguration scan, or test a payload — and the blast radius of anything that goes wrong extends to your personal devices, your partner’s laptop, your smart home infrastructure, and anything that depends on your home internet connection.
Network segmentation is the architectural solution. Here is a practical approach to implementing it without enterprise hardware.
The Problem in Concrete Terms
An unsegmented home network means everything is on the same broadcast domain — typically a flat 192.168.1.0/24 where your router’s DHCP hands out addresses to everything that connects. Your work laptop, your phone, your NAS, your lab VMs, and anything you are intentionally misconfiguring or attacking are all layer-2 adjacent.
The risks this creates for a security researcher:
Lateral movement from lab to personal devices. A VM you have intentionally compromised to study post-exploitation behavior is on the same network as your bank-connected laptop. If the malware you are analyzing is network-aware, you have created an exposure.
Contamination of personal credentials. Running credential-harvesting tools against lab targets in an environment where your personal devices are also responding creates obvious risks — particularly with broadcast-based protocols like NetBIOS, LLMNR, and mDNS.
Accidental scope expansion. Running a port scan or vulnerability scan intended for your lab subnet against your home network hits real devices. Running a tool that sends broadcast traffic reaches everything on the segment.
IoT device exposure. Smart home devices, cameras, and appliances often have poor security and run outdated firmware. Keeping them segmented from both your lab and your personal devices is good practice regardless of your research activities.
The Architecture
The target architecture separates your network into distinct zones with controlled inter-zone traffic:
Personal/Trusted zone: devices you care about — laptops, phones, tablets, NAS, printers
Lab/Research zone: VMs, vulnerable targets, research infrastructure
IoT zone: smart home devices, cameras, appliances
DMZ (optional): servers you expose to the internet
Each zone communicates with others only through explicit firewall rules. By default, the lab zone has no access to the personal zone. The IoT zone has internet access but no access to personal or lab zones.
Implementation Options
Option 1: pfSense/OPNsense on a multi-NIC machine (best)
A dedicated machine running pfSense or OPNsense as your router/firewall is the most flexible and powerful solution. A repurposed small PC (Protectli Vault, an old Intel NUC, or any x86 machine with two or more NICs) running pfSense provides enterprise-grade firewall, VLAN capability, and IDS integration.
With pfSense:
- Create VLANs on a managed switch (or on pfSense’s trunk port)
- Assign each VLAN to a zone
- Create firewall rules per zone interface
- Use pfSense’s traffic shaper to prevent lab traffic from saturating your internet connection
This approach scales to any complexity and gives you full visibility into inter-zone traffic.
Option 2: Managed switch + router VLAN support (mid-tier)
If you have a consumer router that supports VLANs (ASUS routers with Merlin firmware, some Netgear and TP-Link models), you can configure VLANs at the router level with a managed switch downstream. This is less flexible than pfSense but achievable without dedicated hardware.
The limitation is that consumer router firewall rule sets are less capable than pfSense, and some routers do not support inter-VLAN routing policies beyond basic allow/deny.
Option 3: Separate physical networks (simplest)
If you have a spare router, putting your lab on a completely separate physical network with its own SSID and IP range is the blunt-force version. Less elegant than VLANs but effective. Your lab devices connect to one router (which might be double-NAT behind your main router), your personal devices to another.
This approach provides real isolation at the cost of flexibility — getting data between lab and personal environments requires deliberate action, which is actually a security benefit.
The Firewall Rules That Matter
In any segmented setup, the inter-zone rules are the critical piece:
Lab → Personal: deny all by default. Nothing in your lab zone should be able to initiate connections to your personal zone. This prevents lateral movement in either direction.
Personal → Lab: deny all by default, allow specific management traffic. You may want to SSH into lab machines from your personal zone for management, but this should be explicit, not implicit.
Lab → Internet: allow with monitoring. Lab VMs generally need internet access for tool downloads and research. Log this traffic. Consider routing lab internet traffic through a VPN exit to separate it from your personal browsing.
IoT → Internet only. IoT devices get internet access for their cloud services. They do not need to reach your personal devices or your lab.
Logging everything. Inter-zone traffic should be logged. On pfSense, this is a checkbox per rule. Anomalous lab traffic — a VM beaconing to an unexpected destination, a device reaching across zone boundaries — should be visible.
The Lab VLAN Setup in Practice
On pfSense with a managed switch (Netgear GS308E or similar):
- Create VLAN IDs in pfSense: VLAN 10 (personal), VLAN 20 (lab), VLAN 30 (IoT)
- Assign each VLAN to a pfSense interface with a /24 subnet (10.10.10.0/24, 10.20.20.0/24, etc.)
- Enable DHCP on each interface
- Configure your managed switch: uplink port to pfSense as trunk (carries all VLANs), access ports for each device segment
- Default deny inter-VLAN, explicit allow for management traffic
Time to implement: 2-3 hours if you are familiar with pfSense. A weekend if you are new to it. The documentation at docs.netgate.com is thorough.
When You Already Have Sensitive Tools Running
If you have been running research tools on a flat network and want to migrate to a segmented setup, do the segmentation before your next active research session — not after. The cost of the configuration work is low compared to the cost of dealing with an incident caused by flat network exposure.
Hardware mentioned in this article: The Netgear GS308E managed switch (~) is the most commonly recommended entry-level managed switch for home VLAN setups. For a dedicated pfSense/OPNsense firewall appliance, the Protectli Vault FW4B (quad-core, 4 NICs, AES-NI) is the reference platform used by most home lab practitioners.
Sources:
- pfSense documentation — https://docs.netgate.com/pfsense/en/latest/
- SANS Institute, “Securing the Home Network” — https://www.sans.org/
- Cisco VLAN best practices white paper — https://www.cisco.com/c/en/us/support/docs/lan-switching/vlan/10023-3.html
- OPNsense documentation — https://docs.opnsense.org/