Objective
Isolate management, servers, clients, home automation devices, and guests, limiting the flows between segments to those that are strictly necessary and documented.
Architecture
A perimeter firewall connects the network to the Internet and, through an 802.1Q trunk, to a managed switch and an access point. Five separate segments host management, servers, clients, home automation devices, and guests. Routing between segments goes through the firewall, with a restrictive default policy and documented allowed flows.
- Internet is connected to Firewall (WAN)
- Firewall is connected to Managed switch (802.1Q trunk)
- Managed switch is connected to Access point (trunk)
- Managed switch is connected to Management VLAN
- Managed switch is connected to Server VLAN
- Managed switch is connected to Client VLAN
- Access point is connected to Home automation VLAN, logical link
- Access point is connected to Guest VLAN, logical link
Details
Design principles
- Segmentation: management, servers, clients, home automation devices, and guests sit in separate VLANs, so a compromised device cannot see the other segments.
- A single control point: traffic between segments goes through the firewall, where it can be filtered and logged.
- Restrictive policy: whatever is not explicitly allowed is blocked; exceptions are few, justified, and documented.
- Isolated management: administrative interfaces are reachable only from the dedicated segment.
- Guests and home automation: isolated from the work network and from the servers, with access limited to what is needed.
- Basic services per segment: dedicated DHCP and DNS, with up-to-date documentation of the flows.
The underlying reasoning is illustrated in Segmenting the network with VLANs: a reference design for a homelab.
Change management
Every change to VLANs or rules follows the same cycle: request, change, verification of allowed and denied flows, saving the configuration, and updating the documentation.
Current setup
The firewall is a Nethesis Security Box S20 appliance running NethSecurity. The managed switch is an HP 1910-24G (JE006A), 24 10/100/1000 ports plus 4 SFP.
A segment that only exits through the VPN
In addition, one segment is dedicated to testing: throwaway virtual machines, software under evaluation, devices I do not fully trust. Its Internet traffic does not use the ISP connection but only a WireGuard tunnel to a commercial VPN, handled directly by the firewall: the devices have no client installed.
- Policy routing: only traffic originating from that segment uses a separate routing table that exits through the tunnel; the rest of the network behaves as before.
- Kill switch: if the tunnel goes down the segment loses Internet access, and its firewall zone has no direct forwarding to the WAN anyway.
- One-way isolation: the segment cannot reach the main network, while the main network can reach it to manage it.
- DNS: devices use the VPN provider's resolvers, so requests do not leave in clear.
The full configuration, with commands and checks, is in the guide A VLAN that only exits through the VPN.
What is not published
By choice, this page does not list VLAN IDs, address ranges, the make or model of the access point, or firewall rules: a detailed description would help an attacker. The diagram uses only generic names.