跳到正文
Skillpedia
部署与云(DevOps)280k · #331

homelab-network-readiness

它能做什么

这个代理可以帮你规划并审查家庭网络的改动。它会检查你是否准备好了:把网络划分为不同的“区域”(比如一个给访客用,另一个给智能设备用)、部署本地广告拦截器(比如 Pi-hole),或者在外出时安全地远程访问家里的网络。

适用场景

  • ✓在把当前网络拆分为多个小型网络(VLAN)之前。
  • ✓计划让所有设备都使用广告拦截器(Pi-hole)时。
  • ✓想要在外面安全地访问家庭网络时。

技能链接

https://github.com/affaan-m/ECC/blob/main/skills/homelab-network-readiness/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/homelab-network-readiness/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我想把网络分成访客网络和智能家居设备网络。开始之前我需要检查哪些内容?”

每周 5 个新技能,1 分钟读完。

工作原理

它会先询问你当前网络的情况(路由器、Wi-Fi 等)以及你的计划。根据你的回答,它会指出潜在风险,并给出一份分步计划,帮你安全地完成改动,确保你不会失去对自己网络的访问权限。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Homelab Network Readiness

Use this skill before changing a home or small-lab network that mixes VLANs, Pi-hole or another local DNS resolver, firewall rules, and remote VPN access.

This is a planning and review skill. Do not turn it into copy-paste router, firewall, or VPN configuration unless the target platform, current topology, rollback path, console access, and maintenance window are all known.

When to Use

  • Preparing to split 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, OpenVPN, or router-native VPN access.
  • Reviewing whether a homelab change can lock the operator out of the gateway, switch, access point, DNS server, or VPN server.
  • Turning an informal home-network idea into a staged migration plan with validation evidence.

Safety Rules

  • Keep the first answer read-only: inventory, risks, staged plan, validation, and rollback.
  • Do not expose gateway admin panels, DNS resolvers, SSH, NAS consoles, or VPN management UIs directly to the public internet.
  • Do not provide firewall, NAT, VLAN, DHCP, or VPN commands without a confirmed platform and a rollback procedure.
  • Require out-of-band or same-room console access before changing management VLANs, trunk ports, firewall default policies, or DHCP/DNS settings.
  • Keep a working path back to the internet before pointing the whole network at a new DNS resolver or VPN route.
  • Treat IoT, guest, camera, and lab-server networks as different trust zones until the operator explicitly chooses otherwise.

Required Inventory

Collect this before giving implementation steps:

Area Questions
Internet edge What is the modem or ONT? Is the ISP router bridged or still routing?
Gateway What routes, firewalls, handles DHCP, and terminates VPNs?
Switching Which switch ports are uplinks, access ports, trunks, or unmanaged?
Wi-Fi Which SSIDs map to which networks, and are APs wired or mesh?
Addressing What subnets exist today, and which ranges conflict with VPN sites?
DNS/DHCP Which service currently hands out leases and resolver addresses?
Management How will the operator reach the gateway, switch, and AP after changes?
Recovery What can be reverted locally if DNS, DHCP, VLANs, or VPN routes break?

VLAN And Trust-Zone Plan

Start with intent rather than vendor syntax.

Zone Typical contents Default policy
Trusted Laptops, phones, admin workstations Can reach shared services and management only when needed
Servers NAS, Home Assistant, lab hosts, DNS resolver Accepts narrow inbound flows from trusted clients
IoT TVs, smart plugs, cameras, speakers Internet access plus explicit exceptions only
Guest Visitor devices Internet-only, no LAN reachability
Management Gateway, switches, APs, controllers Reachable only from trusted admin devices
VPN Remote clients Same or narrower access than trusted clients

Before recommending VLAN IDs or subnets, confirm:

  1. The gateway supports inter-VLAN routing and firewall rules.
  2. The switch supports the required tagged and untagged port behavior.
  3. The APs can map SSIDs to VLANs.
  4. The operator knows which port they are connected through during the change.
  5. The management network remains reachable after trunk and SSID changes.

DNS Filtering Readiness

Pi-hole or another local resolver should be introduced as a dependency, not as a single point of failure.

  1. Give the resolver a reserved address before using it in DHCP options.
  2. Confirm it can resolve public DNS and local home.arpa names.
  3. Keep the gateway or a second resolver available as a temporary fallback.
  4. Test one client or one VLAN before changing every DHCP scope.
  5. Document which networks may bypass filtering and why.
  6. Check that blocking rules do not break captive portals, work VPNs, firmware updates, or medical/security devices.

Useful validation evidence:

Client gets expected DHCP lease
Client receives expected DNS resolver
Public DNS lookup succeeds
Local home.arpa lookup succeeds
Blocked test domain is blocked only where intended
Gateway and DNS admin interfaces are not reachable from guest or IoT networks

Remote Access Readiness

For WireGuard-style access, decide what the VPN is allowed to reach before

…

常见问题

为什么不应该把管理界面直接暴露在互联网上?

把路由器或 Pi-hole 等管理界面直接暴露在互联网上,会让它们很容易成为黑客的目标。黑客可能借此窃取你的信息,或控制你的网络。

什么是“带外访问”(out-of-band access)?

这是一种不依赖于网络本身的访问方式。比如,改动之后如果 Wi-Fi 断开,你可以用一根直接连接电脑和路由器的网线来访问路由器。

什么是“信任区域”(trust zone)?

这是网络中安全级别相近的一组设备。比如,你的电脑和手机可能处于“受信任”区域,而物联网设备(如摄像头和智能灯)则放在“较低信任”区域,以便在它们被入侵时减少损失。

详情

作者的原始描述

Readiness checklist for homelab VLAN segmentation, local DNS filtering (Pi-hole, AdGuard Home), and WireGuard-style remote access. Use when planning or reviewing home network changes — splitting a flat network into trusted, IoT, guest, or management VLANs, moving DHCP to a local resolver, or adding VPN access — before changing router, firewall, DHCP, or VPN configuration.

repo: affaan-m/ECC

热度

GitHub 星标
280k
排名
#331
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能