THE SHAFERWARE LAB
A production-grade home network built entirely on zero-trust principles. Six isolated segments, hardened DNS, a single encrypted admin VPN, IoT containment, and a fully self-hosted service layer — all verified and documented.
CAPABILITIES
Each capability below represents a fully implemented and verified component of the network.
Zero-Trust Firewall Architecture
Six isolated network segments with a DEFAULT DROP inter-zone policy. Every permitted traffic flow is explicitly defined. Nothing moves between segments without a matching rule.
- Explicit permit-only inter-zone policies
- Kernel-level rule verification after every change
- Documented inter-zone trust matrix
- Silent drop on unmatched flows — no logging noise
Network Microsegmentation
Devices are grouped by trust level, not by physical location. Management infrastructure, trusted workstations, media devices, general users, IoT devices, and guests each live in their own isolated segment.
- 6 segments across distinct trust tiers
- No cross-segment visibility by default
- IoT devices cannot see any LAN resources
- Guest network fully air-gapped from internal subnets
Hardened DNS Infrastructure
All DNS resolvers on the network — regardless of device configuration — are silently redirected to a self-hosted recursive resolver. DNS-over-HTTPS upstream to Quad9 and Cloudflare prevents query interception.
- Network-wide DNS redirect — no resolver bypass possible
- Encrypted upstream queries via DNS-over-HTTPS
- Split-horizon internal zones for LAN hostname resolution
- Hagezi + OISD blocklists — ads, trackers, threat intel, scams
IoT & Camera Isolation
IoT devices and cameras operate in a fully isolated segment. Packet capture analysis identified the exact ports each device requires. Rules permit only what is proven necessary — everything else is blocked.
- Traffic captured and analyzed per device before rules written
- Minimum-permission allow rules only
- No mDNS or SSDP discovery between IoT and LAN
- Only approved cameras join — MAC filtering, fixed addresses
WireGuard VPN
A split-tunnel WireGuard VPN on the gateway is the only way into the network from outside. It reaches the administration segments only, and nothing is port-forwarded.
- Single remote-access path — no port forwards
- Split-tunnel keeps internet traffic direct (low latency)
- Zone firewall policy scoped to admin segments
- No third-party mesh VPN in the path
GeoIP Region Blocking
UniFi's built-in GeoIP Country Restriction silently drops both inbound and outbound traffic from eleven high-risk countries. Eliminates automated scanning and C2 beaconing from nation-state threat origins before any application-layer rule fires.
- 11 countries blocked — inbound and outbound
- Nation-state APT origins: CN, RU, KP, IR, AF, BY
- High-cybercrime regions: NG, RO, VN, BR, UA
- Verified in the pushed gateway config — the feature isn't in iptables or nftables
Self-Hosted Service Layer
Core infrastructure services — DNS, time synchronization, file sharing, monitoring, and alerting — run on dedicated local hardware. No cloud dependency in the critical path.
- Network functions if internet connectivity is lost
- Push alerts within 60 seconds of a service failure
- Authentication rate limiting on all exposed services
- Real-time system metrics with threshold alerting
PROJECTS
DNS Hardening
Deployed a self-hosted recursive DNS resolver with encrypted upstream forwarding and network-wide redirect enforcement. No device on the network can bypass the resolver.
Camera & IoT Isolation
Captured and analyzed camera traffic before writing a rule. Only approved cameras can join the IoT segment, and the LAN is invisible to them.
Zero-Trust Firewall Build
Designed and implemented a six-zone DEFAULT DROP firewall. Every rule was verified at the kernel level after application to confirm it was actually enforced.
WireGuard Admin VPN
A split-tunnel WireGuard VPN on the gateway is the only remote path into the network, scoped to the management segments by zone policy.
Pi 5 Infrastructure Host
A single Raspberry Pi 5 runs the network's service layer — DNS, NTP, file sharing, and monitoring — with auth rate limiting on every exposed service.
Monitoring & Alerting
Built a self-hosted monitoring stack with service uptime checks and real-time system metrics. Push notifications fire within 60 seconds of any service going down.
NTP Time Server
Configured a local NTP server to serve all network segments. All devices synchronize to this server, with upstream requests redirected regardless of client configuration.
GeoIP Region Blocking
Enabled UniFi GeoIP Country Restriction to drop traffic from eleven high-risk countries — inbound and outbound. Verified in the gateway's pushed config, since this feature doesn't appear in iptables or nftables.
“Trust is not a network property — it's a per-flow assertion. If your firewall defaults to permit, you've already lost. If your DNS can be bypassed, you have no network visibility. The goal isn't a perfect perimeter; it's a perimeter where every breach is bounded and observable.”
— Aaron Shafer, ShaferWare.net