Design a home network based on the following input:
ISP router
Private firewall behind ISP router: OPNsense.
managed switch
private Wi-Fi router
Pi-hole for ad blocking
Traefik a reverse proxy for SSL and routing between domain names (to avoid using IPs).
Cloudflare Tunnel for remote access.
Requirements: I want to separate my home network from the ISP's network. I will connect wired devices to OPNsense using managed switches and wireless devices through a private Wi-Fi router. I will host several applications on my home network, including Jellyfin, Immich, Nextcloud, and Home Assistant. I need Traefik for HTTPS and easy app routing. Also, I want to access my home network from outside using Cloudflare Tunnel and Tailscale as an internal VPN. I will offer some public services that can be accessed online without logging in.
Design a home network that is easy to manage, secure, utilizes VLANs when needed, and is scalable.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
This design separates your home network from the ISP's network, ensures security, and leverages VLANs, managed switches, and modern tools like OPNsense, Traefik, Cloudflare Tunnel, and Tailscale for scalability and ease of management.
Key Components and Configuration
1. ISP Router
Role: Provides internet access.
Configuration:
Set to bridge mode (disable NAT/DHCP) so OPNsense handles routing.
Connect to OPNsense's WAN interface (e.g., 192.168.1.1 for OPNsense).
2. OPNsense Firewall (Private Firewall)
Role: Primary security layer, routing, and VLAN management.
Interfaces:
WAN: Connected to ISP router (e.g., 192.168.1.1).
LAN: Connected to managed switch (e.g., 192.168.10.1).
VLANs (Optional but recommended):
VLAN 10: Wired devices (default VLAN).
VLAN 20: Wireless devices (private Wi-Fi router).
VLAN 30: IoT/printer devices (if needed).
VLAN 40: Guest network (if required).
Firewall Rules:
Block all unsolicited traffic from WAN to LAN.
Allow only specific ports (e.g., 80/443 for Cloudflare Tunnel, 22 for SSH).
Isolate VLANs (e.g., no communication between VLAN 20 and VLAN 30).
3. Managed Switch
Role: Connects wired devices and manages VLANs.
Configuration:
Trunk Port: Connected to OPNsense's LAN interface (for VLAN tagging).
Access Ports:
VLAN 10: Wired devices (servers, desktops).
VLAN 20: Private Wi-Fi router (if supported).
VLAN 30/VLAN 40: IoT/guest networks (if used).
Port Security: Enable MAC filtering or rate limiting for critical ports.
4. Private Wi-Fi Router
Role: Provides wireless access for devices.
Configuration:
Connect to VLAN 20 (if managed switch supports VLANs) or default VLAN (VLAN 10).
Disable DHCP to avoid IP conflicts (let OPNsense handle DHCP).
Set DNS to Pi-hole (e.g., 192.168.10.100).
Use WPA3 encryption for security.
5. Pi-hole (Ad Blocking)
Role: Centralized DNS-based ad blocking.
Configuration:
Connect to VLAN 10 (or default VLAN).
Assign static IP (e.g., 192.168.10.100).
Set DNS in OPNsense to point to Pi-hole.
Configure blocklists and custom domains for ads.
6. Traefik (Reverse Proxy)
Role: HTTPS termination, domain-based routing, and SSL management.