ecc-homelab-vlan-segmentation

Plans and configures home network VLAN segmentation on UniFi, pfSense/OPNsense, and MikroTik.

Updated Apr 18, 2025
One-click install
npx skills add https://github.com/adriancodes/dotfiles --skill ecc-homelab-vlan-segmentation-adriancodes
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ecc-homelab-vlan-segmentation
Source: https://github.com/adriancodes/dotfiles/tree/main/dot_agents/skills/ecc-homelab-vlan-segmentation
Command: npx skills add https://github.com/adriancodes/dotfiles --skill ecc-homelab-vlan-segmentation-adriancodes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Flat home networks let compromised IoT devices, smart TVs, and guests reach trusted PCs, NAS devices, and servers. This Skill provides a concrete design and configuration reference for splitting a home network into isolated VLANs with firewall rules that enforce the separation. ## Core Features & Use Cases - VLAN Design Template: A ready-made five-VLAN layout (Trusted, IoT, Servers, Guest, Management) with subnets, gateways, and SSID-to-VLAN mapping. - Platform-Specific Configuration: Step-by-step network, DHCP, and firewall rule setup for UniFi Controller, pfSense/OPNsense, and MikroTik RouterOS, including trunk vs access port guidance. - Anti-Patterns and Best Practices: Covers common mistakes such as VLANs without firewall rules, Pi-hole placement, and native VLAN security risks. - Use Case: A homelab owner with a UniFi Dream Machine wants to isolate smart home devices from their NAS and workstations; this Skill provides the exact VLAN plan, SSID mapping, and firewall rules to apply. ## Quick Start Ask the assistant to design a VLAN segmentation plan for your home network with separate IoT, guest, and trusted segments on your specific router platform.

Frequently Asked Questions about ecc-homelab-vlan-segmentation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up VLANs on a home network to isolate IoT devices?▼

Create separate VLANs for trusted, IoT, servers, and guest devices, each with its own subnet and DHCP scope. Then add firewall rules blocking IoT and guest VLANs from reaching private address ranges while allowing internet access.

How do I configure VLANs on UniFi with SSID mapping?▼

In the UniFi Controller, create a network per VLAN with its VLAN ID and subnet, then create WiFi networks and assign each SSID to the corresponding VLAN network. Add traffic rules to block IoT and guest networks from reaching local networks.

Do VLANs alone provide network security without firewall rules?▼

No. VLANs without firewall rules do not provide isolation because inter-VLAN routing is open by default. You must add explicit block rules immediately after creating VLANs and test that devices in one VLAN cannot reach another.

What is the difference between trunk and access ports on a switch?▼

A trunk port carries multiple tagged VLANs and connects switches, routers, and access points. An access port carries a single untagged VLAN for end devices like PCs or NAS units that have no VLAN awareness.

Where should Pi-hole be placed in a segmented VLAN network?▼

Place Pi-hole in the Servers VLAN rather than the IoT VLAN. Add a firewall rule allowing DNS on port 53 from all VLANs to the Pi-hole IP, positioned before any rule blocking private address ranges.

Why is using the management VLAN as the native VLAN a risk?▼

Using the management VLAN as the native VLAN lets untagged traffic land in your management segment, enabling VLAN hopping attacks. Use a dedicated unused VLAN as native and keep management traffic tagged.