VPN vs Tailscale vs WireGuard: reaching your home server safely
6 min readNetworking · Security · Self-hosting · Guides
You have a home server, a Raspberry Pi or a spare PC running a few services, and you want to reach it from outside the house. The obvious method is port forwarding: open a port on your router and point it at the machine. It works, and it is also how many people end up with a login page, a camera feed or a database sitting in front of every scanner on the internet.
In my remote desktop posts I kept returning to the same advice: do not expose what you do not have to. This post is the practical alternative. It compares three ways to reach a private machine without opening ports for the world: a traditional VPN, raw WireGuard, and Tailscale. They overlap, and the names are often used as if they were rivals when they are not quite the same kind of thing.
What problem a VPN solves here
A VPN, in the sense that matters for a home lab, creates an encrypted private network between your devices. Your laptop at a cafe gets a private address, and so does your home server. They talk to each other as if they were on the same network, and nobody else on the internet can even see the services. You expose one narrow door, or no door at all, instead of every app.
Do not confuse this with a commercial privacy VPN, the kind that routes your browsing through a company's server in another country. That is a different product with a different purpose. Here the VPN is a private road between your own machines.
WireGuard: the protocol
WireGuard is a modern VPN protocol and implementation. It is small, fast and built into the Linux kernel, with clients for Windows, macOS, Android and iOS. It uses public-key cryptography: each device has a private key and shares only its public key. Peers are defined by those keys and by which IP addresses they are allowed to use, and it communicates over UDP.
What WireGuard does not do for you is everything around the tunnel. You generate keys, write configs, assign addresses, decide who may talk to whom and keep the whole thing working when IP addresses change. For a handful of devices that is fine. For many devices it becomes a chore.
# /etc/wireguard/wg0.conf on the home server
[Interface]
Address = 10.8.0.1/24
ListenPort = 51820
PrivateKey = <server-private-key>
[Peer]
# your laptop
PublicKey = <laptop-public-key>
AllowedIPs = 10.8.0.2/32The laptop has the mirror image: its own private key, the server's public key, and an Endpoint pointing at your home's public address and port 51820. Note the catch. One UDP port must be reachable from outside, so you still forward one port, and you need a stable way to find your home address, such as a dynamic DNS name if your provider changes the IP. That one port is far safer than exposing real apps, because WireGuard ignores anything that does not carry a valid key, but it is not zero.
Tailscale: WireGuard with the admin work done
Tailscale builds a private mesh network on top of WireGuard. You install the client on each device and sign in with an identity provider such as Google, GitHub or Microsoft. Tailscale's coordination service handles key distribution, device authorisation and discovery. Devices then connect directly to one another, and when a direct path is blocked by routers and NATs, traffic falls back to relay servers.
The practical result is the part people love: no port forwarding, nothing to configure on the router and each device gets a stable private address and name. Install it on the server, install it on your phone, and they can reach each other from anywhere. Access rules, called ACLs, let you restrict which devices may reach which services.
- Easy - minutes to set up, even behind carrier-grade NAT where port forwarding is impossible.
- Mesh - devices talk directly to each other, not through one central VPN server.
- Features - name resolution, access controls, exit nodes and subnet routers for reaching a whole home network.
- Trust model - the coordination service is run by a company, and you rely on it for authentication and key exchange.
On that last point, be precise. Traffic between your devices is end-to-end encrypted by WireGuard keys, so the coordination server does not read your data. It does, however, control which devices are admitted to your network. If you do not want that dependency, Headscale is an open-source, self-hosted implementation of the coordination server that works with the official clients. It is community-run and takes more effort, so go in knowing that.
Pricing and free-plan limits for Tailscale have changed over time and I am not going to quote them here. Look at their current page before you plan a team around it.
Traditional VPNs: OpenVPN and IPsec
These existed long before WireGuard and are still common, especially in companies. They are mature, widely supported by routers and firewalls and have a lot of tooling. They are also more complex, with larger code bases and heavier configuration. If your router already includes an OpenVPN or IPsec server and your organisation uses it, there is no need to switch for its own sake. For a new personal setup, I would not start there.
How I would choose
- You want the easiest safe setup and trust a hosted control plane - Tailscale. This is my default recommendation for most people with a few devices.
- You want full control and minimal moving parts - plain WireGuard on a small VPS or your router, with one forwarded UDP port.
- You want Tailscale's convenience without the vendor - try Headscale, and accept the maintenance.
- Your home connection is behind CGNAT - Tailscale works without port forwarding; with plain WireGuard you can rent a small public VPS to act as the meeting point.
- Your office already runs OpenVPN or IPsec - use what your admins support.
Practical safety rules
Whichever you choose, the tunnel only protects the road. What sits at the end still needs care. Keep services bound to the VPN address, not to every interface. Keep the operating system and the VPN software updated. Give each device its own key and remove a device's access the moment it is lost or sold.
- Do not forward service ports at the router once the VPN works; remove the old rules.
- Use ACLs or firewall rules so a phone does not automatically reach everything.
- Keep SSH key-only, as in my SSH post, even though it now sits behind a private network.
- Turn on two-factor authentication for the identity account that controls a Tailscale network.
- Test from outside your home network, on mobile data, before you decide it works.
Where it bites
UDP can be blocked on strict networks such as hotels and offices, so an otherwise working WireGuard link may not connect there. Tailscale has fallback relays for that, which is one reason it feels more reliable on the road. Subnet routing and exit nodes are powerful and also easy to misconfigure into exposing more than you intended. And a VPN adds one more thing that can fail: if your server reboots and the VPN service does not start automatically, you are locked out until you get physical access.
The safest port to forward is the one you never open. If you must open one, make it the one that stays silent to strangers.
Projects: wireguard.com, tailscale.com, github.com/juanfont/headscale

Written by
Shihab Hossain — Full-Stack Developer
I build thoughtful digital products from Bangladesh — fast web experiences with Next.js, Android apps with Flutter, and the infrastructure behind them.
Work with me