Your own VPN server with WireGuard

A private WireGuard VPN for a household needs very little hardware: P1 (1 vCPU, 1 GB RAM, 20 GB NVMe) is enough. Traffic is the number to watch, so a European city with 20 TB included is the budget choice.

Recommended start: P1, $3.95/mo

How much CPU and RAM does WireGuard need?

WireGuard runs inside the Linux kernel and is extremely light. One modern vCPU can encrypt several hundred megabits per second, and the kernel module uses only a few megabytes of memory no matter how many peers you add.

  • 1~5 people browsing and streaming: P1 has more CPU than they can use.
  • A family plus a few phones that sync photos: still P1; add P2 only if you also run the web UI, a DNS filter and other tools.
  • A small team of 10~30 people: P4 with 2 vCPU gives headroom when several people download at once.

In practice the speed users see is set by their own connection and the distance to the server, not by the VPS.

Why is traffic the real limit for a VPN?

Everything your devices download through the VPN leaves the server again on its way to you, so it counts as outgoing traffic. A VPN consumes the allowance faster than almost any other workload.

Some typical numbers: HD video streaming uses about 3 GB per hour, 4K about 7 GB per hour, and a large game download 50~100 GB at once. A household that streams two hours of HD each evening uses about 0.2 TB a month on that alone.

In our European cities, even P1 includes 20 TB, which no household will finish. In North America and Asia-Pacific the same plan includes 0.5 TB, fine for browsing and messaging but tight for streaming; beyond it, each extra TB is $0.72 in North America and $4.98 in Asia-Pacific and Sao Paulo. Incoming traffic is always free.

Plans that fit

Sizes picked for this project, smallest first. Prices are per month; the order total is the shortest term that reaches $40.

PlanWhySizePer monthOrder from
P1One person or a household, sold in all 15 cities1 vCPU, 1 GB RAM, 20 GB NVMe$3.95$47.40 for 12 months
P2VPN plus a DNS filter and the peer web UI1 vCPU, 2 GB RAM, 40 GB NVMe$6.95$41.70 for 6 months
S4VPN and a few home services in Europe with 20 TB2 vCPU, 4 GB RAM, 40 GB NVMe$4.25$51.00 for 12 months
P4A team of 10~30 people outside Europe2 vCPU, 4 GB RAM, 80 GB NVMe$12.05$72.30 for 6 months

How do I set up WireGuard the quick way?

Choose the WireGuard image when ordering. It runs Ubuntu 24.04 with WireGuard and a web UI for creating peers, so you can add a phone by scanning a QR code instead of editing files.

  1. Log in over SSH and read the login message for the web UI address and first password.
  2. Change the UI password straight away and, if possible, reach the UI through an SSH tunnel: ssh -L 8080:127.0.0.1:51821 root@your-server.
  3. Create one peer per device, so a lost phone can be removed without touching the others.
  4. Install the WireGuard app on the device and import the QR code or config file.

How do I configure WireGuard by hand?

On plain Ubuntu or Debian the manual route takes about ten minutes:

apt -y install wireguard
wg genkey | tee /etc/wireguard/server.key | wg pubkey > /etc/wireguard/server.pub
chmod 600 /etc/wireguard/server.key
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.d/99-wg.conf
echo "net.ipv6.conf.all.forwarding=1" >> /etc/sysctl.d/99-wg.conf
sysctl --system

Then write /etc/wireguard/wg0.conf:

[Interface]
Address = 10.8.0.1/24
ListenPort = 51820
PrivateKey = (contents of server.key)
PostUp = iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE

[Peer]
PublicKey = (the phone public key)
AllowedIPs = 10.8.0.2/32

Open the port with ufw allow 51820/udp, check the interface name with ip route (it may not be eth0), and start it with systemctl enable --now wg-quick@wg0. Because every server has an IPv6 /64, you can also hand out IPv6 addresses to peers and route them without NAT.

Which city should a VPN server be in?

Pick a city close to where you physically are for speed, or in the country whose network view you need for work testing. Every extra 1,000 km adds roughly 10 ms of round-trip time.

Travellers in Asia often choose Singapore or Tokyo; people in the Americas pick Ashburn, Hillsboro or Toronto. If you stream a lot and live in or near Europe, Amsterdam, Frankfurt or Helsinki give the large traffic allowance. Up to 10 servers fit in one account, so a second VPN in another region is just another order.

How do I keep a VPN server safe?

A VPN server should expose only two things to the internet: the WireGuard UDP port and SSH.

  • Turn off SSH password logins and use keys, as in SSH hardening.
  • Keep the peer web UI off the public internet, or protect it with a strong password and HTTPS.
  • Remove peers you no longer use with wg set wg0 peer (key) remove and delete them from the config.
  • Use the VPN within the law and our terms: it is a privacy and remote-access tool, and abuse reports reach the server owner.

WireGuard does not keep connection logs by itself; if you add tools such as a DNS filter, decide what they log and for how long.

What does a private VPN cost?

P1 is $3.95 a month and is sold as $47.40 for 12 months, which works out to a small amount per person for a shared household server. In Europe S4 costs $4.25 a month and gives 4 GB if you want to add a DNS ad filter, a password manager and a file sync service on the same machine, sold as $51.00 for 12 months. All terms have the same monthly price.

VPN server, answered

Can I use OpenVPN instead of WireGuard?

Yes, install any VPN software you like. WireGuard is faster and simpler to run, while OpenVPN over TCP 443 can be useful on networks that block UDP.

How many devices can connect?

WireGuard has no fixed peer limit. A household with 10~20 devices is trivial for P1; each device simply needs its own key and address.

Will the server IP change?

No. Your IPv4 and IPv6 /64 stay with the server for its whole life, and a rebuild with another image keeps the same addresses.

Can I run a DNS ad filter on the same server?

Yes. Point the WireGuard peers DNS setting at the filter on the server tunnel address, and keep port 53 closed to the public internet so it does not become an open resolver.

Is incoming traffic counted?

No, only outgoing traffic counts against the allowance. Uploads from your devices through the VPN are free on the way in, though they count again if the server forwards them out to the internet.

Build it on CheapVPS

Pick the plan, a city near your users and the image, then pay the order in crypto.