Overview
My home network started out as your typical consumer setup with a Modem/Router gateway supplied by our ISP (Xfinity) directly providing internet to all of our devices, with all network configuration being done through the Xfinity hardware. Eventually I wanted more control over routing, firewall rules, and which devices could talk to each other, so I moved those jobs to OPNsense.
This is an overview of what I use and why.
Hardware and layout
My Xfinity gateway connects to an OPNsense firewall appliance, which connects to a NETGEAR JGS524Ev2 managed switch. OPNsense is responsible for routing, DHCP, and firewall policy. The switch distributes wired connectivity and supports the VLAN configuration.
Some time before homelabbing, I had an ASUS “gaming” router attached to the Xfinity gateway to give me a little more control. Now, it’s still there but runs in a built-in Access-Point mode to provide better Wi-Fi coverage instead of acting as a second router.
At a high level, the flow is:
internet / Xfinity gateway
|
OPNsense
|
managed switch
/ \
wired devices wireless access point
How I organize devices
Instead of putting everything on one network, I separate devices by purpose: trusted computers, servers, IoT equipment, cameras, and guests. OPNsense controls traffic between those groups.
I don’t assume that every device needs access to every other device. For example, guest devices only need internet access, and IoT equipment generally only needs specific services.
Things I learned
- Putting a consumer router in AP mode is different from using it as a router. It lets me keep wireless coverage without introducing another routing layer.
- A managed switch is useful only if its VLAN configuration agrees with the firewall and connected equipment.
- Separating traffic makes troubleshooting more deliberate: I need to think about the route, the VLAN, and the firewall rule instead of assuming everything is on one flat network.
The network is still something I actively change as I learn, this page only describes the broad design.