Skip to content
affaan-m avatar

Homelab Vlan Segmentation

Step-by-step VLAN segmentation for home networks covering UniFi, pfSense/OPNsense, and MikroTik configurations.

CCM score
75 of 100
skills.sh installs
8.6K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers splitting a flat home network into trusted, IoT, servers, guest, and management VLANs with isolation rules
  • Includes switch trunk and access port layouts, SSID-to-VLAN mapping, and DHCP setup for each segment
  • Enforces blocks from IoT and guest segments into local RFC1918 ranges while allowing internet access and specific exceptions like Pi-hole DNS
  • Designed for homelab owners configuring UniFi, pfSense/OPNsense, or MikroTik gear in a maintenance window

Install

$ npx -y skills add affaan-m/ecc --skill homelab-vlan-segmentation -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Homelab VLAN Segmentation

How to split a home network into isolated VLANs so IoT devices, guests, and your main PCs cannot talk to each other. The most impactful security upgrade for a home network.

All firewall rules shown here add isolation between segments — they do not remove existing protections. Apply changes in a maintenance window and verify connectivity between segments after each step before moving on.

When to Use

  • Setting up VLANs on a home network for the first time
  • Isolating IoT devices (smart bulbs, cameras, TVs) from trusted devices
  • Creating a guest Wi-Fi network that cannot reach home devices
  • Explaining how VLANs work to someone unfamiliar with the concept
  • Configuring trunk ports, access ports, and SSID-to-VLAN mapping
  • Troubleshooting inter-VLAN routing or firewall rule issues on pfSense/OPNsense/UniFi

How It Works

Without VLANs — flat network:
  All devices on 192.168.1.0/24
  Smart TV (potential malware) → can reach your NAS, PCs, everything

Details

Repository
github.com/affaan-m/ecc
Category
DevOps & Cloud
First seen
Jul 14, 2026

Questions

What does the homelab-vlan-segmentation skill help with?

It helps split a home network into isolated VLANs for IoT, guest, trusted, and server traffic, so IoT devices and guests cannot reach your main PCs. It covers switch trunk configuration, firewall rules, and wireless SSID mapping on UniFi, pfSense/OPNsense, and MikroTik.

Who is this skill for?

It is aimed at people setting up VLANs on a home network or homelab for the first time. It also suits anyone isolating smart home devices or creating a guest Wi-Fi that cannot see home devices.

How do I install the homelab-vlan-segmentation skill?

Run npx -y skills add affaan-m/ecc --skill homelab-vlan-segmentation -y in your project. Once installed, the agent can walk you through VLAN design, SSID-to-VLAN mapping, and firewall rules for your router platform.

Which network platforms does this skill cover?

The skill covers UniFi, pfSense/OPNsense, and MikroTik, with configuration steps for each. It gives example VLAN layouts, DHCP setup, and firewall rules for these platforms.

More from affaan-m/ecc

All 257

Similar to Homelab Vlan Segmentation

More DevOps & Cloud