agentleFS
JunMysteryJunMystery/Agent-Guidance-Python/skills/homelab-network-setup/SKILL.md

homelab-network-setup

Skill2 starsChanged 4 months agoMITArchived repositoryView on GitHub

Practical home and homelab network planning and readiness audits, covering gateways, switches, access points, IP plans, VLAN segmentation, local DNS filtering (Pi-hole), WireGuard VPN access, and change validation checklists.

8 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to design a home or small-lab network that can grow without needing a full rebuild, and to audit readiness before modifying …

    line 9
  2. Distinctive:

    Require out-of-band console access: before changing management VLANs, trunk ports, firewall default policies, or DHCP settings.

    line 23
  3. Distinctive:

    Keep a working path back to the internet: before pointing the network at a new DNS resolver or VPN route.

    line 24
  4. Very specific:

    Avoid the most common default, 192.168.1.0/24, when you expect to use VPNs.

    line 52
  5. Very specific:

    Use home.arpa for local names.

    line 68
  6. Distinctive:

    Before implementing VLAN changes, verify that the gateway supports inter-VLAN routing/firewalls, the switches support VLAN tagging, and the …

    line 79

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Homelab Network Setup and Readiness

Use this skill to design a home or small-lab network that can grow without needing a full rebuild, and to audit readiness before modifying router, VLAN, DNS, firewall, or VPN configuration.

When to Use

  • Planning a new home network or redesigning an ISP-router-only setup.
  • Splitting a flat network into trusted, IoT, guest, server, or management VLANs.
  • Moving DHCP clients to Pi-hole, AdGuard Home, Unbound, or another local DNS resolver.
  • Adding WireGuard, Tailscale, ZeroTier, or router-native VPN access.
  • Reviewing whether a network change can lock the operator out of the gateway.

Safety Rules

  • Keep the first step read-only: Audit inventory, risks, staged plan, validation, and rollback before issuing commands.
  • Never expose administration UIs directly to the public internet (gateway admin, DNS resolvers, SSH, NAS consoles, VPN management).
  • Require out-of-band console access before changing management VLANs, trunk ports, firewall default policies, or DHCP settings.
  • Keep a working path back to the internet before pointing the network at a new DNS resolver or VPN route.

Device Roles & Gateway Options

Internet
  |
Modem or ONT
  |
Gateway or router      NAT, firewall, DHCP, DNS, inter-VLAN routing
  |
Managed switch         wired clients, AP uplinks, optional VLAN trunks
  |
Access points          Wi-Fi only; ideally wired backhaul
Servers and NAS        stable addresses, DNS names, monitoring
Clients and IoT        DHCP pools, isolated later if VLANs are available
Gateway OptionBest fitNotes
ISP routerBasic internet onlyLimited control and often poor VLAN support
UniFi gatewayManaged home networkGood UI, ecosystem lock-in
OPNsense or pfSenseFlexible homelabStrong VLAN, firewall, VPN, and DNS control
MikroTikAdvanced network usersPowerful, but easy to misconfigure
Linux routerTinkerersDocument rollback before using as primary gateway

IP Addressing & DNS Naming Plan

Avoid the most common default, 192.168.1.0/24, when you expect to use VPNs. It often conflicts with hotels, offices, and ISP routers.

Example small homelab plan:

192.168.10.0/24  trusted clients
192.168.20.0/24  IoT and media devices
192.168.30.0/24  servers and NAS
192.168.40.0/24  guest Wi-Fi
192.168.99.0/24  network management

Gateway convention: .1
Infrastructure reservations: .2 through .49
Dynamic DHCP pool: .50 through .240

Use home.arpa for local names. It is reserved for home networks and avoids conflicts from names like home.lan (e.g. nas.home.arpa, pihole.home.arpa).

VLAN And Trust-Zone Setup

Define the trust zones and map them:

  • Trusted: Laptops, phones, admin workstations. Can reach shared services and management.
  • Servers: NAS, Home Assistant, DNS resolver. Accepts narrow inbound flows from trusted clients.
  • IoT: TVs, smart plugs, cameras. Internet access plus explicit exceptions only.
  • Guest: Visitor devices. Internet-only, no LAN reachability.
  • Management: Gateway, switches, APs. Reachable only from trusted admin devices.

Before implementing VLAN changes, verify that the gateway supports inter-VLAN routing/firewalls, the switches support VLAN tagging, and the APs can map SSIDs to VLANs.

DNS Filtering & VPN Readiness

  • Pi-hole / DNS filters: Give the resolver a reserved address before utilizing it in DHCP options. Point DHCP DNS options at it. Keep the gateway or a second resolver available as a temporary fallback.
  • WireGuard / VPNs: Decide what the VPN is allowed to reach before generating keys or opening ports (e.g. split tunnel to one subnet vs full tunnel). Verify dynamic DNS or CGNAT status before setting up port forwards.

Change Sequence (Staged Migration)

  1. Snapshot the current topology, IP plan, DHCP leases, DNS settings, and firewall rules.
  2. Reserve infrastructure addresses for gateway, DNS, controller, APs, and NAS.
  3. Create the new zone or VLAN without moving critical devices.
  4. Move one test client and validate DHCP, DNS, routing, internet, and block behavior.
  5. Add narrow firewall exceptions for required flows.
  6. Move one low-risk device group.
  7. Add VPN access with the narrowest route.
  8. Document final state and rollback instructions.

Verification Checklist

  • No management interface is reachable from guest, IoT, or the public internet
  • DNS failure does not take down local console recovery access
  • DHCP scope changes were tested on one client before broad rollout
  • Firewall rules are default-deny between zones, with named exceptions
  • Rollback steps are documented for the chosen platform

See Also

  • Skill: network-interface-health
  • Skill: network-config-validation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.