Skip to content

Original privacy and security research, news and free tools since 2018, cited by the FBI, CISA and the World Economic Forum See our research

Cited by the FBI, CISA and the World Economic Forum

Guide

How to Set Up a VPN at Home: Your Own VPN Server, Step by Step

Published Updated

Miklos Zoltan

By Miklos Zoltan

Founder - PrivacyAffairs

Laura Bede

Fact-Checked this

1 Comments

The easiest way to set up a VPN at home is to switch on the VPN server your router may already have, then connect to it with the free WireGuard app.

If your internet provider doesn’t give your router a public IP address, as on Starlink’s standard plans, a router’s VPN server can’t be reached from outside. Tailscale then does the same job for free, without opening any port.

A home VPN server does one thing well: it puts you back on your home network from anywhere, through your own internet connection. It won’t hide you from the websites you visit, and it can’t put you in another country. That is what a VPN service is for, and you can run one on your router too. Router menus, apps and prices on this page were checked on 15 November 2026.

Five ways to run your own VPN at home

Most people need only the first two. The others are for special cases, and the last one is here so you can skip it.

Five ways to run a VPN at home, compared
Way
Effort
Cost
Public IP
Reaches home
Our take
Your router’s VPN server
Easy
Free, if your router has one
Yes
Yes
Start here. Pick WireGuard if the router offers it
Tailscale
Easiest
Free for up to 6 users
No
Yes, through one device at home
The answer behind CGNAT (Starlink, 5G home internet) or when you can’t open a port
Raspberry Pi or spare PC with WireGuard
Medium
A Pi or old PC, plus power
Yes
Yes
For when the router can’t do it, or you want the server in your own hands
Cloud server (VPS)
Medium
From about $4 a month
No
No
A private VPN exit in a data center, not a way home
Windows’ built-in incoming connection
Easy
Free
Yes
Yes
Skip it: it uses PPTP, whose security is broken
“Public IP”: your router needs its own address on the internet. Behind carrier-grade NAT (CGNAT) it has none, and only Tailscale-style tools get through.
Sources: ASUS, AVM (FRITZ!), TP-Link, Tailscale, wg-easy, DigitalOcean, Microsoft, Starlink; checked 15 November 2026.

Start with your router. If it has no VPN server, or the check below shows you’re behind carrier-grade NAT, go to Tailscale. A Raspberry Pi is for people who want to run the server themselves, and a rented cloud server answers a different question: how to get a private VPN exit without paying a VPN provider.

Home VPN server or VPN service: which do you need?

Think of the direction. A VPN service sends your traffic out of your home to a server somewhere else. A home VPN server brings you back in.

A home server is the right tool when you want to:

  • open files on your NAS, watch your Plex or Jellyfin library, check your cameras or print at home while you’re away, without opening those devices to the internet;
  • use hotel or café Wi-Fi through an encrypted tunnel to your own connection;
  • log in to your bank or your streaming accounts from abroad with your home IP address, so you look like you’re at home. Banks that block foreign logins, like Bank of America, are a common reason.

It won’t help when you want privacy from the sites you use. They see your home IP address, the one your internet provider gave you, and your provider sees the traffic leave your house as usual. It also won’t change your country, and its speed is capped by your home line’s upload speed, which on many cable and DSL plans is a fraction of the download.

Before you start: check that your connection can host a VPN

A VPN server at home has to be reachable from the internet. Three checks take five minutes and save an evening.

1. Do you have a public IP address?

Open your router’s status page and note its WAN or internet IP address. Then open any “what is my IP” site on a device at home. If the two numbers match, you have a public IP address. If they differ, or the router’s address starts with 100.64 to 100.127, your provider puts you behind carrier-grade NAT (CGNAT) and shares one public address among many customers.

Behind CGNAT, nothing from outside can reach your router, and port forwarding won’t help. Starlink says so plainly: its default IPv4 setup uses CGNAT addresses from 100.64.0.0/10 and doesn’t allow inbound traffic. Many 5G and 4G home internet services work the same way. Your options are Tailscale, or asking your provider for a public IPv4 address, which some include free and others sell as an add-on.

2. Does your address change?

Most home connections get a new public IP address now and then. A dynamic DNS (DDNS) name follows it, so your phone always finds home. Most routers come with a free one built in: a FRITZ!Box uses its MyFRITZ! address, and ASUS routers offer a name under asuscomm.com. Turn it on before you set up the VPN.

3. Will your home network clash with others?

Both ends of a VPN must use different IP networks. If your home network is 192.168.1.x and the hotel’s is too, the tunnel connects but nothing at home answers. AVM warns about exactly this for the FRITZ!Box, whose factory network is 192.168.178.x. Changing your router’s network to something unusual, like 192.168.47.x, avoids the problem. Do it first, because every device at home gets a new address.

Option 1: Turn on your router's built-in VPN server

Many home routers can run a VPN server, and on newer ones the server speaks WireGuard, the modern protocol that’s fast and simple to set up (how it compares with OpenVPN). Where to find it on three common brands:

  • ASUS: VPN > VPN Server > WireGuard VPN, on firmware 3.0.0.4.388 or later. Older models offer OpenVPN and IPSec servers. ASUS notes the router needs a public WAN IP.
  • FRITZ!Box: Internet > Permit Access > VPN (WireGuard), after you register the box for MyFRITZ!.
  • TP-Link: Advanced > VPN Server > OpenVPN on many home models.

The steps are much the same everywhere:

  1. Update the router’s firmware. The VPN server will be the most exposed part of your network.
  2. Turn on the VPN server and pick WireGuard if it’s offered, OpenVPN if not. Leave PPTP alone (chapter on Windows below).
  3. Choose what a connected device can reach. TP-Link calls the choice “Home Network Only” or “Internet and Home Network”; the second sends all your traffic through home, which is what you want on public Wi-Fi.
  4. Add one client profile per device and give each a clear name, like “Anna’s phone”.
  5. Install the WireGuard app (Windows, macOS, Android and iOS) and scan the QR code, or import the file on a laptop. OpenVPN servers use the OpenVPN Connect app instead.
  6. Test on mobile data, not on your home Wi-Fi. Open your router’s admin page or your NAS by its home address. If it loads, you’re home.

If your provider’s router has no VPN server, you can put your own router behind it. Then the provider’s box needs one port forwarded to your router, and some provider boxes won’t do it. Tailscale is often the quicker way out.

Option 2: Tailscale, when you can't open a port

Tailscale builds a private network between your own devices. You install the app on each one and sign in with the same account, and the devices find each other. They connect directly where the networks allow it and otherwise through Tailscale’s relay servers, which is slower but needs no port forwarding. The traffic is encrypted end to end with WireGuard either way. That makes it the answer for Starlink, 5G home internet and any provider box you can’t configure.

The Personal plan is free for up to six users with unlimited devices, for non-commercial use. Two settings turn it into a home VPN:

  • Subnet router: one always-on device at home, like a Raspberry Pi, a NAS or a mini PC, passes your connections on to devices that can’t run Tailscale, such as printers, cameras and the router itself.
  • Exit node: the same device can send all your internet traffic out through your home connection, so the café sees only encrypted traffic and the websites see your home IP address.

Tailscale’s coordination servers know which devices you have and handle the logins. They don’t see your traffic, but your home network is now only as safe as the account you sign in with, so give that account a strong password and two-factor login. If you’d rather not depend on a company at all, Headscale is an open-source replacement for the coordination server that you run yourself. Its developers say it’s not associated with Tailscale Inc.

Option 3: A Raspberry Pi or spare computer running WireGuard

This is the do-it-yourself route, for when your router can’t run a VPN server or you want the server in your own hands. You need a device that stays on all the time and runs Linux, a public IP address and access to your router’s port forwarding.

The simplest current setup is wg-easy, a free WireGuard server with a web page for adding devices and showing QR codes. It runs in Docker on x86_64 and arm64 machines, which includes a Raspberry Pi 4 or 5 on a 64-bit system:

  1. Give the Pi a fixed address on your network (a DHCP reservation in the router).
  2. Install Docker, then wg-easy, following its own install guide.
  3. Forward UDP port 51820 on your router to the Pi.
  4. Set your DDNS name as the server address in wg-easy.
  5. Create one client per device and scan its QR code with the WireGuard app.

Many older guides, our own among them, recommend PiVPN instead. Its maintainers released a final version called “The end” in April 2024; the project now says it’s maintained on a best-effort basis. It still works, but a VPN server is the last thing you want to run on best effort.

An everyday Windows or Mac computer makes a poor server. It sleeps, restarts for updates and leaves you locked out at the worst moment. If that computer is all you have, install Tailscale on it instead.

Option 4: A cloud server, and what it doesn't do

You can rent a small Linux server in a data center and run WireGuard on it, with wg-easy or by hand. DigitalOcean’s smallest server costs $4 a month with 500 GB of traffic, and other hosts charge similar amounts. You get your own VPN exit in the country you pick, a fixed public IP address and no dependence on your home connection.

You don’t get your home network, unless you also link the server to home with Tailscale. And you don’t get much privacy from websites: the address belongs to a server rented in your name, used by you alone, so everything it does points back to you. A VPN service hides you among thousands of other users. Your own server doesn’t, and streaming services that block VPN servers can block yours as well.

Windows' built-in VPN server: skip it

Windows 10 and 11 can still accept VPN connections through an old Control Panel option, New Incoming Connection. It uses PPTP, a protocol from the 1990s with broken security, and Microsoft itself doesn’t recommend PPTP. Since Windows Server 2025, new installations of Microsoft’s server VPN don’t accept PPTP or L2TP connections at all unless an admin turns them back on, and Microsoft plans to remove both. If the PC is your only option, use Tailscale on it.

Our old guide walked you through this setup. Consider this the correction.

Keep your home VPN safe

A VPN server is a door into your home network, so treat it like one:

  • Keep the router updated. Routers are attacked all the time. In 2025 the security firm GreyNoise found more than 9,000 ASUS routers with a hidden backdoor: the attackers saved their own SSH login in the router’s settings, so it survived firmware updates and only a factory reset removed it. Turn on automatic updates where the router offers them, and turn off remote admin and SSH if you don’t use them.
  • Close the other doors. Once the VPN works, you don’t need port forwards for your NAS, cameras or Plex. Remove them.
  • One profile per device. If a phone is lost, delete its profile and the rest keep working.
  • Use WireGuard or OpenVPN only. No PPTP, on any device.

Frequently Asked Questions

Some people found answers to these questions helpful

Is it free to set up a VPN at home?

Usually. A router's built-in VPN server and Tailscale's Personal plan cost nothing, and the WireGuard and OpenVPN apps are free. A Raspberry Pi costs the price of the board and a little electricity. A cloud server starts at about $4 a month.


Does a home VPN hide my browsing from my internet provider?

At home, no: you aren't using it there. When you're away, it hides your traffic from the network you're on, such as hotel Wi-Fi, but your home provider sees it leave your house as if you were browsing from home. To hide your traffic from your own provider you need a VPN service.


Can I watch my home streaming services abroad with a home VPN?

It makes you look like you're at home, because your traffic leaves through your home connection. Whether a service allows it is up to its terms; some say you must be in the country to watch. Netflix, for one, says VPNs aren't supported for live events or on ad-supported plans.


Do I need a static IP address for a home VPN?

No. A free DDNS name from your router follows a changing address. What you do need is a public IP address rather than CGNAT, unless you use Tailscale.


How fast is a home VPN?

As fast as your home line can send, which is its upload speed, and as fast as your router can encrypt. WireGuard is usually much quicker than OpenVPN on the same router. On a 1 Gbps download plan with 50 Mbps upload, expect around 50 Mbps at best when you're away.


Is it legal to run your own VPN at home?

In most countries, yes. A few restrict or ban VPNs altogether; our guide to where VPNs are legal lists them.


1 Comment

  • Chris Spaulding

    August 10, 2022 3:37 pm

    Great article! I have never done this before, so I have a basic newbie question. What are we supposed to edit in the client.ovpn file? Do we create separate client.ovpn files for each client? Big thanks for any advice.