Netzwerk-Leitfaden für Heimserver
Reverse-Proxys, DNS, VLANs und sicherer Fernzugriff: gib deinen Diensten saubere, erreichbare Namen.
Good networking turns a pile of services into a tidy, reachable, secure system. Most home server problems — "I can't reach it", "it worked yesterday", "why is it so slow" — are networking problems. This guide explains the building blocks in the order you will need them.
The big picture
A typical home network looks like this:
Internet → Modem/ONT → Router (firewall, DHCP, DNS) → Switch → Server, PCs, TVs, phones (Wi-Fi)Your router hands out private addresses (usually 192.168.x.x) using DHCP, translates between those private addresses and your single public address using NAT, and by default blocks anything arriving from the internet that you did not ask for. Your server lives inside that protected area.
1. Give services a stable home
Assign your server a static IP or, better, a DHCP reservation on the router so its address never changes. Everything else depends on this. Configure the reservation in the router using the server's MAC address; this keeps all addressing in one place and avoids conflicts.
Use a wired connection for the server. See our switch guide if you need more ports.
2. Understand ports
A service listens on an IP address and a port: 192.168.1.50:8096 means "Jellyfin on the machine at .50". Containers publish ports to the host, for example -p 8096:8096. Two services can't use the same host port, so choose distinct ones and write them down. See Docker networking explained.
3. Local DNS
Remembering IP addresses and ports does not scale. Run Pi-hole or AdGuard Home as your local DNS to resolve friendly names and block ads network-wide at the same time. Add records such as jellyfin.home → 192.168.1.50. Remember that DNS is critical: if it fails, the internet seems down, so keep it reliable and consider a second instance.
4. Clean URLs with a reverse proxy
Nobody wants to type 192.168.1.50:8096. A reverse proxy like Caddy, Nginx Proxy Manager or Traefik maps friendly names to your services and handles HTTPS certificates automatically.
jellyfin.home.example.com → 192.168.1.50:8096
nextcloud.home.example.com → 192.168.1.50:8080Benefits:
- One entry point (ports 80 and 443) instead of many.
- Automatic, trusted HTTPS certificates (for example from Let's Encrypt).
- A single place to add authentication, rate limits and headers.
To get certificates for internal-only names, use the DNS challenge with a domain you own, so you never need to expose the service to the internet. Learn the concept in the reverse proxy glossary entry.
5. Reaching your server from outside
Do not carelessly forward ports. Choose one of these approaches, safest first:
- A VPN (best). Tailscale or WireGuard put your phone or laptop "inside" your network from anywhere. Nothing is exposed to the internet; only the VPN endpoint is reachable.
- A zero-trust tunnel. Services that make an outbound connection from your server mean you don't open any inbound port (and also help if your ISP uses CGNAT).
- Port forwarding to a reverse proxy. If you must expose services, forward only port 443 to a reverse proxy with HTTPS and strong authentication, keep software patched, and consider Fail2ban.
Many ISPs put customers behind CGNAT, which makes inbound connections impossible. If your router's WAN address differs from the address shown on a "what is my IP" website, you are likely behind CGNAT, and a VPN with a relay or an outbound tunnel is your option. Read the secure remote access guide for details.
6. Segment with VLANs (when you are ready)
As your setup grows, VLANs let you isolate untrusted devices (IoT gadgets, guests, cameras) from your servers and personal devices. A typical layout:
| VLAN | Purpose | Rules |
|---|---|---|
| Trusted | PCs, phones, NAS | Can reach servers |
| Servers | Your home server | Reachable from trusted; limited internet access |
| IoT | Smart plugs, TVs, cameras | Internet only; no access to trusted/servers |
| Guest | Visitors | Internet only |
You need a managed switch, a router or firewall that supports VLANs and inter-VLAN rules, and access points that can broadcast multiple SSIDs. Start with a single IoT VLAN; it gives most of the benefit. See our router guide.
7. Speed and cabling
Gigabit Ethernet is enough for most services. Consider 2.5GbE for NAS transfers, and check the whole path: NIC, cable (Cat5e handles 2.5G over short runs; Cat6 or better is safer), switch and the other device. Test throughput between two machines with iperf3. Our bandwidth calculator and subnet calculator help with planning.
Troubleshooting checklist
When something can't be reached, work from the bottom up:
- Is the server on and connected (link light,
ip addr)? - Can you ping its IP from another device?
- Is the service running and listening (
ss -lntp)? - Is a firewall blocking the port (
sudo ufw status)? - Does the name resolve (
nslookup name)? - Is the reverse proxy forwarding to the correct address and port?
- Are both devices on the same network or VLAN, and does a rule allow the traffic?
A sensible target setup
- Static IP / DHCP reservation for the server
- Local DNS via Pi-hole
- Reverse proxy with automatic TLS
- Tailscale or WireGuard for remote access
- VLAN for IoT once you are ready
- Monitoring with Uptime Kuma
Get these right and your home server will be both convenient and secure. Next, read the security checklist.
Verwandte Artikel
Secure Remote Access to Your Home Server
Reach your homelab from anywhere without exposing risky ports: compare VPNs, Tailscale, reverse proxies and tunnels, handle CGNAT, and follow a safe blueprint.
How to Install Nginx Proxy Manager
Install Nginx Proxy Manager with Docker, add proxy hosts and free Let's Encrypt certificates, use DNS challenges for internal names, add access lists and avoid common mistakes.
How to Set Up Caddy as a Reverse Proxy
Set up Caddy in Docker for automatic HTTPS in front of your homelab: Caddyfile examples, shared Docker networks, DNS-challenge certificates for internal names, auth, headers and troubleshooting.