[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M730J3AF4ZRNHGFKNH5NQK3F":3,"skill-same:01M730J3AF4ZRNHGFKNH5NQK3F":48},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M730J3AF4ZRNHGFKNH5NQK3F","homelab-vlan-segmentation",null,"Segmenting home networks into VLANs for IoT, guest, trusted, and server traffic using UniFi, pfSense\u002FOPNsense, and MikroTik — including switch trunk config, firewall rules, and wireless SSID mapping.","SriramGandhiS\u002FSkills","SriramGandhiS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211849986?v=4","01M72WQCW12BYX71C6WN584TTA","Sriram S","01M72WQCWTJ2RD0ET1X31AF1RC",1,"MIT","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fskills\u002Feverything-claude-code\u002Fskills\u002Fhomelab-vlan-segmentation\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: homelab-vlan-segmentation\ndescription: Segmenting home networks into VLANs for IoT, guest, trusted, and server traffic using UniFi, pfSense\u002FOPNsense, and MikroTik — including switch trunk config, firewall rules, and wireless SSID mapping.\norigin: community\n---\n\n# Homelab VLAN Segmentation\n\nHow to split a home network into isolated VLANs so IoT devices, guests, and your main\nPCs cannot talk to each other. The most impactful security upgrade for a home network.\n\nAll firewall rules shown here add isolation between segments — they do not remove\nexisting protections. Apply changes in a maintenance window and verify connectivity\nbetween segments after each step before moving on.\n\n## When to Use\n\n- Setting up VLANs on a home network for the first time\n- Isolating IoT devices (smart bulbs, cameras, TVs) from trusted devices\n- Creating a guest Wi-Fi network that cannot reach home devices\n- Explaining how VLANs work to someone unfamiliar with the concept\n- Configuring trunk ports, access ports, and SSID-to-VLAN mapping\n- Troubleshooting inter-VLAN routing or firewall rule issues on pfSense\u002FOPNsense\u002FUniFi\n\n## How It Works\n\n```\nWithout VLANs — flat network:\n  All devices on 192.168.1.0\u002F24\n  Smart TV (potential malware) → can reach your NAS, PCs, everything\n\nWith VLANs:\n  VLAN 10 — Trusted    192.168.10.0\u002F24  (PCs, phones, laptops)\n  VLAN 20 — IoT        192.168.20.0\u002F24  (smart TV, bulbs, cameras)\n  VLAN 30 — Servers    192.168.30.0\u002F24  (NAS, Pi, VMs)\n  VLAN 40 — Guest      192.168.40.0\u002F24  (visitor Wi-Fi)\n  VLAN 99 — Management 192.168.99.0\u002F24  (switch\u002FAP web UIs)\n\n  Smart TV → blocked from reaching 192.168.10.0\u002F24 and 192.168.30.0\u002F24\n  Guests → internet only, cannot see any home devices\n```\n\n## VLAN Design Template\n\n```\nVLAN  Name        Subnet              Gateway         Purpose\n10    trusted     192.168.10.0\u002F24     192.168.10.1    PCs, phones, laptops\n20    iot         192.168.20.0\u002F24     192.168.20.1    Smart home devices\n30    servers     192.168.30.0\u002F24     192.168.30.1    NAS, Pi, self-hosted\n40    guest       192.168.40.0\u002F24     192.168.40.1    Visitor Wi-Fi\n99    management  192.168.99.0\u002F24     192.168.99.1    Network gear web UIs\n```\n\n## Examples\n\n**Typical homelab with UniFi AP and managed switch:**\n\n```\nScenario: 3-bedroom house, UniFi Dream Machine + UniFi 8-port switch + 2 APs\n\nVLAN 10 — Trusted    192.168.10.0\u002F24   MacBook, iPhones, iPad\nVLAN 20 — IoT        192.168.20.0\u002F24   Nest thermostat, Philips Hue, Ring doorbell, smart TVs\nVLAN 30 — Servers    192.168.30.0\u002F24   Synology NAS (192.168.30.10), Pi-hole (192.168.30.2)\nVLAN 40 — Guest      192.168.40.0\u002F24   Visitor Wi-Fi — internet only\n\nSSID → VLAN mapping:\n  \"Home\"      → VLAN 10 (WPA2, strong password, trusted devices only)\n  \"IoT\"       → VLAN 20 (WPA2, separate password, printed on router for setup)\n  \"Guest\"     → VLAN 40 (WPA2, simple password you can share freely)\n\nSwitch port behavior:\n  Port 1  → trunk to router (tagged VLANs 10,20,30,40,99)\n  Port 2  → trunk to APs (tagged VLANs 10,20,40; AP handles per-SSID tagging)\n  Port 3  → access VLAN 30 (NAS — untagged, no VLAN awareness needed)\n  Port 4  → access VLAN 30 (Pi-hole — untagged)\n  Port 5–8 → access VLAN 10 (wired workstations)\n\nFirewall rules applied (all rules add isolation, none remove existing protections):\n  IoT → Trusted: BLOCK\n  IoT → Servers: BLOCK except 192.168.30.2:53 (Pi-hole DNS allowed)\n  IoT → Internet: ALLOW\n  Guest → Local networks: BLOCK\n  Guest → Internet: ALLOW\n  Trusted → everywhere: ALLOW\n```\n\n## UniFi Configuration\n\n### Create Networks in UniFi Controller\n\n```\nSettings → Networks → Create New Network\n\nFor each VLAN:\n  Name: IoT\n  Purpose: Corporate  (gives DHCP + routing)\n  VLAN ID: 20\n  Network: 192.168.20.0\u002F24\n  Gateway IP: 192.168.20.1\n  DHCP: Enable\n  DHCP Range: 192.168.20.100 – 192.168.20.254\n```\n\n### Map SSIDs to VLANs (UniFi)\n\n```\nSettings → WiFi → Create New WiFi\n\n  Name: IoT-Network\n  Password: \u003Cseparate password>\n  Network: IoT  ← select your VLAN here\n  # All devices connecting to this SSID land in VLAN 20\n\n  Name: Guest\n  Password: \u003Cguest password>\n  Network: Guest\n  Guest Policy: Enable  ← isolates guests from each other too\n```\n\n### UniFi Firewall Rules (Traffic Rules)\n\n```\nSettings → Traffic & Security → Traffic Rules\n\n# Block IoT from reaching Trusted VLAN\n  Action: Block\n  Category: Local Network\n  Source: IoT (192.168.20.0\u002F24)\n  Destination: Trusted (192.168.10.0\u002F24)\n\n# Allow IoT to reach internet only\n  Action: Allow\n  Source: IoT\n  Destination: Internet\n\n# Block Guest from all local networks\n  Action: Block\n  Source: Guest\n  Destination: Local Networks\n```\n\n## pfSense \u002F OPNsense Configuration\n\n### Create VLANs\n\n```\nInterfaces → Assignments → VLANs → Add\n\n  Parent Interface: em1  (your LAN NIC)\n  VLAN Tag: 20\n  Description: IoT\n\n# Repeat for each VLAN, then assign each VLAN to an interface:\nInterfaces → Assignments → Add\n  Select the VLAN you created → click Add\n  Enable the interface, set IP to gateway address (192.168.20.1\u002F24)\n```\n\n### DHCP for Each VLAN\n\n```\nServices → DHCP Server → Select your VLAN interface\n\n  Enable DHCP\n  Range: 192.168.20.100 to 192.168.20.254\n  DNS Servers: 192.168.30.2  ← Pi-hole IP if you have one\n```\n\n### Firewall Rules (pfSense\u002FOPNsense)\n\n```\n# Rules are processed top-to-bottom, first match wins.\n\n# On the IoT interface (VLAN 20):\n  Rule 1: Allow IoT → Pi-hole DNS  ← MUST come before the RFC1918 block rule\n    Protocol: UDP\u002FTCP\n    Source: IoT net\n    Destination: 192.168.30.2 port 53\n    Action: Allow\n\n  Rule 2: Block IoT → RFC1918 (all private IP ranges)\n    Protocol: any\n    Source: IoT net\n    Destination: RFC1918  (192.168.0.0\u002F16, 10.0.0.0\u002F8, 172.16.0.0\u002F12)\n    Action: Block\n\n  Rule 3: Allow IoT → internet\n    Protocol: any\n    Source: IoT net\n    Destination: any\n    Action: Allow\n\n# On the Trusted interface (VLAN 10):\n  Allow all (trusted devices can reach everything)\n    Source: Trusted net\n    Destination: any\n    Action: Allow\n\n# Additional exceptions for IoT devices that need specific local services:\n  Insert before Rule 2 (the RFC1918 block):\n    Protocol: TCP\n    Source: IoT net\n    Destination: 192.168.30.x port 8123  ← Home Assistant\n    Action: Allow\n```\n\n## MikroTik Configuration\n\n```\n# Step 1: Create a bridge with VLAN filtering enabled\n\u002Finterface bridge\nadd name=bridge vlan-filtering=yes\n\n# Step 2: Add physical ports to the bridge\n# Trunk port to router\u002Fuplink (tagged for all VLANs)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether1 frame-types=admit-only-vlan-tagged\n\n# Access port for trusted devices (untagged VLAN 10)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether2 pvid=10 frame-types=admit-only-untagged-and-priority-tagged\n\n# Access port for IoT devices (untagged VLAN 20)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether3 pvid=20 frame-types=admit-only-untagged-and-priority-tagged\n\n# Step 3: Define which VLANs are allowed on which ports\n\u002Finterface bridge vlan\nadd bridge=bridge tagged=ether1 untagged=ether2 vlan-ids=10\nadd bridge=bridge tagged=ether1 untagged=ether3 vlan-ids=20\n\n# Step 4: Create VLAN interfaces on the bridge (gateway IPs)\n\u002Finterface vlan\nadd interface=bridge name=vlan10 vlan-id=10\nadd interface=bridge name=vlan20 vlan-id=20\n\n# Step 5: Assign gateway IPs\n\u002Fip address\nadd interface=vlan10 address=192.168.10.1\u002F24\nadd interface=vlan20 address=192.168.20.1\u002F24\n\n# Step 6: DHCP pools and servers\n\u002Fip pool\nadd name=pool-trusted ranges=192.168.10.100-192.168.10.254\nadd name=pool-iot ranges=192.168.20.100-192.168.20.254\n\n\u002Fip dhcp-server\nadd interface=vlan10 address-pool=pool-trusted name=dhcp-trusted\nadd interface=vlan20 address-pool=pool-iot name=dhcp-iot\n\n\u002Fip dhcp-server network\nadd address=192.168.10.0\u002F24 gateway=192.168.10.1\nadd address=192.168.20.0\u002F24 gateway=192.168.20.1\n\n# Step 7: Firewall — block IoT from reaching trusted VLAN\n\u002Fip firewall filter\nadd chain=forward src-address=192.168.20.0\u002F24 dst-address=192.168.10.0\u002F24 \\\n    action=drop comment=\"Block IoT to Trusted\"\n```\n\n## Switch Trunk vs Access Ports\n\n```\n# Trunk port: carries multiple VLANs (tagged) — connects switch-to-switch, switch-to-router, switch-to-AP\n# Access port: carries one VLAN (untagged) — connects to end devices (PC, camera, NAS)\n\n# A managed switch port connected to your router should be a trunk:\n  Allowed VLANs: 10, 20, 30, 40, 99\n\n# A port connecting to a PC should be an access port:\n  VLAN: 10 (trusted)\n  No tagging — the PC does not know or care about VLANs\n\n# A port connecting to an AP must be a trunk:\n  The AP tags traffic from each SSID with the right VLAN ID\n  Allowed VLANs: 10, 20, 40  (whichever SSIDs the AP serves)\n```\n\n## Anti-Patterns\n\n```\n# BAD: Creating VLANs without adding firewall rules\n# VLANs without firewall rules do not provide security — inter-VLAN routing is open by default\n# GOOD: Add explicit block rules immediately after creating VLANs\n\n# BAD: Putting the Pi-hole in the IoT VLAN\n# IoT devices can reach it but trusted devices cannot (without extra rules)\n# GOOD: Pi-hole in the Servers VLAN with a rule allowing all VLANs to reach port 53\n\n# BAD: Native VLAN equals management VLAN\n# Untagged traffic landing in your management VLAN enables VLAN hopping attacks\n# GOOD: Use a dedicated unused VLAN as native (e.g. VLAN 999), keep management traffic tagged\n\n# BAD: Same Wi-Fi password for IoT SSID and trusted SSID\n# Anyone who learns the password can connect IoT devices to the wrong segment\n```\n\n## Best Practices\n\n- Start with 4 VLANs: Trusted, IoT, Servers, Guest — add more as needed\n- Put Pi-hole in the Servers VLAN (192.168.30.x)\n- Add a firewall rule allowing DNS (port 53) from all VLANs to the Pi-hole IP — before any RFC1918 block rule\n- Test isolation after every rule change: from the IoT VLAN, try to ping a trusted device — it should fail\n- Use a management VLAN for switch and AP web UIs and restrict access to the Trusted VLAN only\n- Document your VLAN design in a table (VLAN ID, name, subnet, purpose)\n\n## Related Skills\n\n- homelab-network-setup\n- homelab-pihole-dns\n- homelab-wireguard-vpn\n","# Homelab VLAN Segmentation\n\nHow to split a home network into isolated VLANs so IoT devices, guests, and your main\nPCs cannot talk to each other. The most impactful security upgrade for a home network.\n\nAll firewall rules shown here add isolation between segments — they do not remove\nexisting protections. Apply changes in a maintenance window and verify connectivity\nbetween segments after each step before moving on.\n\n## When to Use\n\n- Setting up VLANs on a home network for the first time\n- Isolating IoT devices (smart bulbs, cameras, TVs) from trusted devices\n- Creating a guest Wi-Fi network that cannot reach home devices\n- Explaining how VLANs work to someone unfamiliar with the concept\n- Configuring trunk ports, access ports, and SSID-to-VLAN mapping\n- Troubleshooting inter-VLAN routing or firewall rule issues on pfSense\u002FOPNsense\u002FUniFi\n\n## How It Works\n\n```\nWithout VLANs — flat network:\n  All devices on 192.168.1.0\u002F24\n  Smart TV (potential malware) → can reach your NAS, PCs, everything\n\nWith VLANs:\n  VLAN 10 — Trusted    192.168.10.0\u002F24  (PCs, phones, laptops)\n  VLAN 20 — IoT        192.168.20.0\u002F24  (smart TV, bulbs, cameras)\n  VLAN 30 — Servers    192.168.30.0\u002F24  (NAS, Pi, VMs)\n  VLAN 40 — Guest      192.168.40.0\u002F24  (visitor Wi-Fi)\n  VLAN 99 — Management 192.168.99.0\u002F24  (switch\u002FAP web UIs)\n\n  Smart TV → blocked from reaching 192.168.10.0\u002F24 and 192.168.30.0\u002F24\n  Guests → internet only, cannot see any home devices\n```\n\n## VLAN Design Template\n\n```\nVLAN  Name        Subnet              Gateway         Purpose\n10    trusted     192.168.10.0\u002F24     192.168.10.1    PCs, phones, laptops\n20    iot         192.168.20.0\u002F24     192.168.20.1    Smart home devices\n30    servers     192.168.30.0\u002F24     192.168.30.1    NAS, Pi, self-hosted\n40    guest       192.168.40.0\u002F24     192.168.40.1    Visitor Wi-Fi\n99    management  192.168.99.0\u002F24     192.168.99.1    Network gear web UIs\n```\n\n## Examples\n\n**Typical homelab with UniFi AP and managed switch:**\n\n```\nScenario: 3-bedroom house, UniFi Dream Machine + UniFi 8-port switch + 2 APs\n\nVLAN 10 — Trusted    192.168.10.0\u002F24   MacBook, iPhones, iPad\nVLAN 20 — IoT        192.168.20.0\u002F24   Nest thermostat, Philips Hue, Ring doorbell, smart TVs\nVLAN 30 — Servers    192.168.30.0\u002F24   Synology NAS (192.168.30.10), Pi-hole (192.168.30.2)\nVLAN 40 — Guest      192.168.40.0\u002F24   Visitor Wi-Fi — internet only\n\nSSID → VLAN mapping:\n  \"Home\"      → VLAN 10 (WPA2, strong password, trusted devices only)\n  \"IoT\"       → VLAN 20 (WPA2, separate password, printed on router for setup)\n  \"Guest\"     → VLAN 40 (WPA2, simple password you can share freely)\n\nSwitch port behavior:\n  Port 1  → trunk to router (tagged VLANs 10,20,30,40,99)\n  Port 2  → trunk to APs (tagged VLANs 10,20,40; AP handles per-SSID tagging)\n  Port 3  → access VLAN 30 (NAS — untagged, no VLAN awareness needed)\n  Port 4  → access VLAN 30 (Pi-hole — untagged)\n  Port 5–8 → access VLAN 10 (wired workstations)\n\nFirewall rules applied (all rules add isolation, none remove existing protections):\n  IoT → Trusted: BLOCK\n  IoT → Servers: BLOCK except 192.168.30.2:53 (Pi-hole DNS allowed)\n  IoT → Internet: ALLOW\n  Guest → Local networks: BLOCK\n  Guest → Internet: ALLOW\n  Trusted → everywhere: ALLOW\n```\n\n## UniFi Configuration\n\n### Create Networks in UniFi Controller\n\n```\nSettings → Networks → Create New Network\n\nFor each VLAN:\n  Name: IoT\n  Purpose: Corporate  (gives DHCP + routing)\n  VLAN ID: 20\n  Network: 192.168.20.0\u002F24\n  Gateway IP: 192.168.20.1\n  DHCP: Enable\n  DHCP Range: 192.168.20.100 – 192.168.20.254\n```\n\n### Map SSIDs to VLANs (UniFi)\n\n```\nSettings → WiFi → Create New WiFi\n\n  Name: IoT-Network\n  Password: \u003Cseparate password>\n  Network: IoT  ← select your VLAN here\n  # All devices connecting to this SSID land in VLAN 20\n\n  Name: Guest\n  Password: \u003Cguest password>\n  Network: Guest\n  Guest Policy: Enable  ← isolates guests from each other too\n```\n\n### UniFi Firewall Rules (Traffic Rules)\n\n```\nSettings → Traffic & Security → Traffic Rules\n\n# Block IoT from reaching Trusted VLAN\n  Action: Block\n  Category: Local Network\n  Source: IoT (192.168.20.0\u002F24)\n  Destination: Trusted (192.168.10.0\u002F24)\n\n# Allow IoT to reach internet only\n  Action: Allow\n  Source: IoT\n  Destination: Internet\n\n# Block Guest from all local networks\n  Action: Block\n  Source: Guest\n  Destination: Local Networks\n```\n\n## pfSense \u002F OPNsense Configuration\n\n### Create VLANs\n\n```\nInterfaces → Assignments → VLANs → Add\n\n  Parent Interface: em1  (your LAN NIC)\n  VLAN Tag: 20\n  Description: IoT\n\n# Repeat for each VLAN, then assign each VLAN to an interface:\nInterfaces → Assignments → Add\n  Select the VLAN you created → click Add\n  Enable the interface, set IP to gateway address (192.168.20.1\u002F24)\n```\n\n### DHCP for Each VLAN\n\n```\nServices → DHCP Server → Select your VLAN interface\n\n  Enable DHCP\n  Range: 192.168.20.100 to 192.168.20.254\n  DNS Servers: 192.168.30.2  ← Pi-hole IP if you have one\n```\n\n### Firewall Rules (pfSense\u002FOPNsense)\n\n```\n# Rules are processed top-to-bottom, first match wins.\n\n# On the IoT interface (VLAN 20):\n  Rule 1: Allow IoT → Pi-hole DNS  ← MUST come before the RFC1918 block rule\n    Protocol: UDP\u002FTCP\n    Source: IoT net\n    Destination: 192.168.30.2 port 53\n    Action: Allow\n\n  Rule 2: Block IoT → RFC1918 (all private IP ranges)\n    Protocol: any\n    Source: IoT net\n    Destination: RFC1918  (192.168.0.0\u002F16, 10.0.0.0\u002F8, 172.16.0.0\u002F12)\n    Action: Block\n\n  Rule 3: Allow IoT → internet\n    Protocol: any\n    Source: IoT net\n    Destination: any\n    Action: Allow\n\n# On the Trusted interface (VLAN 10):\n  Allow all (trusted devices can reach everything)\n    Source: Trusted net\n    Destination: any\n    Action: Allow\n\n# Additional exceptions for IoT devices that need specific local services:\n  Insert before Rule 2 (the RFC1918 block):\n    Protocol: TCP\n    Source: IoT net\n    Destination: 192.168.30.x port 8123  ← Home Assistant\n    Action: Allow\n```\n\n## MikroTik Configuration\n\n```\n# Step 1: Create a bridge with VLAN filtering enabled\n\u002Finterface bridge\nadd name=bridge vlan-filtering=yes\n\n# Step 2: Add physical ports to the bridge\n# Trunk port to router\u002Fuplink (tagged for all VLANs)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether1 frame-types=admit-only-vlan-tagged\n\n# Access port for trusted devices (untagged VLAN 10)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether2 pvid=10 frame-types=admit-only-untagged-and-priority-tagged\n\n# Access port for IoT devices (untagged VLAN 20)\n\u002Finterface bridge port\nadd bridge=bridge interface=ether3 pvid=20 frame-types=admit-only-untagged-and-priority-tagged\n\n# Step 3: Define which VLANs are allowed on which ports\n\u002Finterface bridge vlan\nadd bridge=bridge tagged=ether1 untagged=ether2 vlan-ids=10\nadd bridge=bridge tagged=ether1 untagged=ether3 vlan-ids=20\n\n# Step 4: Create VLAN interfaces on the bridge (gateway IPs)\n\u002Finterface vlan\nadd interface=bridge name=vlan10 vlan-id=10\nadd interface=bridge name=vlan20 vlan-id=20\n\n# Step 5: Assign gateway IPs\n\u002Fip address\nadd interface=vlan10 address=192.168.10.1\u002F24\nadd interface=vlan20 address=192.168.20.1\u002F24\n\n# Step 6: DHCP pools and servers\n\u002Fip pool\nadd name=pool-trusted ranges=192.168.10.100-192.168.10.254\nadd name=pool-iot ranges=192.168.20.100-192.168.20.254\n\n\u002Fip dhcp-server\nadd interface=vlan10 address-pool=pool-trusted name=dhcp-trusted\nadd interface=vlan20 address-pool=pool-iot name=dhcp-iot\n\n\u002Fip dhcp-server network\nadd address=192.168.10.0\u002F24 gateway=192.168.10.1\nadd address=192.168.20.0\u002F24 gateway=192.168.20.1\n\n# Step 7: Firewall — block IoT from reaching trusted VLAN\n\u002Fip firewall filter\nadd chain=forward src-address=192.168.20.0\u002F24 dst-address=192.168.10.0\u002F24 \\\n    action=drop comment=\"Block IoT to Trusted\"\n```\n\n## Switch Trunk vs Access Ports\n\n```\n# Trunk port: carries multiple VLANs (tagged) — connects switch-to-switch, switch-to-router, switch-to-AP\n# Access port: carries one VLAN (untagged) — connects to end devices (PC, camera, NAS)\n\n# A managed switch port connected to your router should be a trunk:\n  Allowed VLANs: 10, 20, 30, 40, 99\n\n# A port connecting to a PC should be an access port:\n  VLAN: 10 (trusted)\n  No tagging — the PC does not know or care about VLANs\n\n# A port connecting to an AP must be a trunk:\n  The AP tags traffic from each SSID with the right VLAN ID\n  Allowed VLANs: 10, 20, 40  (whichever SSIDs the AP serves)\n```\n\n## Anti-Patterns\n\n```\n# BAD: Creating VLANs without adding firewall rules\n# VLANs without firewall rules do not provide security — inter-VLAN routing is open by default\n# GOOD: Add explicit block rules immediately after creating VLANs\n\n# BAD: Putting the Pi-hole in the IoT VLAN\n# IoT devices can reach it but trusted devices cannot (without extra rules)\n# GOOD: Pi-hole in the Servers VLAN with a rule allowing all VLANs to reach port 53\n\n# BAD: Native VLAN equals management VLAN\n# Untagged traffic landing in your management VLAN enables VLAN hopping attacks\n# GOOD: Use a dedicated unused VLAN as native (e.g. VLAN 999), keep management traffic tagged\n\n# BAD: Same Wi-Fi password for IoT SSID and trusted SSID\n# Anyone who learns the password can connect IoT devices to the wrong segment\n```\n\n## Best Practices\n\n- Start with 4 VLANs: Trusted, IoT, Servers, Guest — add more as needed\n- Put Pi-hole in the Servers VLAN (192.168.30.x)\n- Add a firewall rule allowing DNS (port 53) from all VLANs to the Pi-hole IP — before any RFC1918 block rule\n- Test isolation after every rule change: from the IoT VLAN, try to ping a trusted device — it should fail\n- Use a management VLAN for switch and AP web UIs and restrict access to the Trusted VLAN only\n- Document your VLAN design in a table (VLAN ID, name, subnet, purpose)\n\n## Related Skills\n\n- homelab-network-setup\n- homelab-pihole-dns\n- homelab-wireguard-vpn\n",{"name":5,"origin":24,"description":7},"community","master","d6ca01da0f24a3b0e26e4a8b7b66cbd25d429f5d","skills\u002Feverything-claude-code\u002Fskills\u002Fhomelab-vlan-segmentation",0,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills","https:\u002F\u002Fgithub.com\u002FSriramGandhiS","https:\u002F\u002Fsriram.website\u002F","Curious guy who keeps tinkering until something works","2026-05-20 16:21:34",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add SriramGandhiS\u002FSkills --skill homelab-vlan-segmentation",{"tool":40,"command":41},"bunx","bunx skills add SriramGandhiS\u002FSkills --skill homelab-vlan-segmentation",{"tool":43,"command":44},"pnpm","pnpm dlx skills add SriramGandhiS\u002FSkills --skill homelab-vlan-segmentation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fskills\u002Feverything-claude-code\u002Fskills\u002Fhomelab-vlan-segmentation\u002FSKILL.md",true,[],[49,56,61,67,74,81],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":19},"01M732609EPJWV13PVTX3GT4TM","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[],{"skillNo":57,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7325XM47AGWB6K6C4VXKE6B","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7325WP6DES69JKC840VMFEP","verification-loop","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7325TFQF1DZTQ6J3WGQQ1VR","tdd-workflow","Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7325RGV9AY9PK92D2V8KKPW","strategic-compact","Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fstrategic-compact\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7325MZC28SE86E7NMCNEFS4","security-review","Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment\u002Fsensitive features. Provides comprehensive security checklist and patterns.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[]]