← Knowledge Base

Don't Port-Forward: NAT, Exposure, and Overlay Networks

  • Networking
  • Security
  • Self-hosting
  • Homelab

TL;DR

To reach something at home from the outside (a NAS, a camera, a game server, a home lab), the old advice was to “port-forward” it on your router. That quietly puts the device on the public internet, where automated bots find and attack it within minutes. There is a far safer modern way: an overlay network (like Tailscale or WireGuard) that connects your devices privately, with nothing exposed to the internet at all.


Now for the more technical explanation

What NAT is, and why it accidentally protects you

Home routers use NAT (Network Address Translation). Your devices have private addresses (like 192.168.x.x) that are not routable on the public internet; the router shares one public address for everyone behind it. When a device inside makes an outbound connection, the router remembers it and lets the reply back in.

The side effect is important: unsolicited inbound connections have nowhere to go. Someone on the internet cannot reach your laptop or NAS, because the router has no rule sending that traffic anywhere. It is not a firewall by design, but in practice NAT hides your devices. That accidental protection is what port-forwarding throws away.

What port-forwarding actually does

A port-forward tells the router: “any connection from the internet arriving on port X, send it to this internal device.” You are deliberately opening a hole from the entire internet straight to that device and service.

That means the service is now:

Why this goes wrong so often

The classic disasters are all exposed services:

The pattern is always the same: exposure plus a weak credential or an unpatched flaw equals compromise. And you often will not know until it is too late.

How do you reach your home network without port-forwarding?

An overlay network (also called a mesh VPN) flips the model. Instead of opening your network to the world and hoping to defend it, your devices join a private encrypted network that only you can access. Nothing is exposed to the public internet.

How it works, in plain terms:

The result: you can reach your NAS or home lab from anywhere as if you were on your home network, but an attacker on the internet sees nothing to attack.

The options

For nearly everyone, Tailscale is the shortest path from “I want to reach my stuff remotely” to “done, and nothing is exposed.”

When you genuinely must expose a service

Sometimes something has to be reachable by the public (a website, a service others use). If so, do it properly, not with a raw port-forward:

The short version

Port-forwarding was fine when the internet was smaller and quieter. Today, anything you expose is found and attacked almost immediately. For remote access to your own things, use an overlay network (Tailscale is the easy win, WireGuard the hands-on one) and keep your inbound ports closed. Reserve genuine public exposure for the rare case that truly needs it, and even then, put it behind TLS, authentication, and ideally a tunnel.

Written by Tom Langston, IT Infrastructure and Cybersecurity.