Aller au contenu
GuidesRéseauIntermédiaire

Guide réseau pour serveurs domestiques

Reverse proxies, DNS, VLAN et accès distant sécurisé : donnez des noms propres à vos services.

par HomeServersGuide TeamMis à jour 27 octobre 20265 min de lecture

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:8080

Benefits:

  • 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:

  1. 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.
  2. 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).
  3. 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:

VLANPurposeRules
TrustedPCs, phones, NASCan reach servers
ServersYour home serverReachable from trusted; limited internet access
IoTSmart plugs, TVs, camerasInternet only; no access to trusted/servers
GuestVisitorsInternet 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:

  1. Is the server on and connected (link light, ip addr)?
  2. Can you ping its IP from another device?
  3. Is the service running and listening (ss -lntp)?
  4. Is a firewall blocking the port (sudo ufw status)?
  5. Does the name resolve (nslookup name)?
  6. Is the reverse proxy forwarding to the correct address and port?
  7. 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.

Articles connexes

GuidesRéseauIntermédiaire

Accès distant sécurisé à votre serveur domestique

Comparez VPN, reverse proxy et Tailscale sans exposer de ports non sécurisés.

5 min de lecture
TutorielsRéseauDébutant

Installer Nginx Proxy Manager

Publiez vos services internes avec certificats TLS gratuits et une interface conviviale.

5 min de lecture
TutorielsRéseauIntermédiaire

Configurer Caddy comme reverse proxy

HTTPS automatique avec une configuration minimale pour vos services homelab.

5 min de lecture