# How do I set up my own VPN server?

> How to set up your own VPN server in 7 steps: rent a Linux VPS, log in over SSH, install WireGuard, then add one peer per phone or laptop.

- URL: https://tunnelvps.com/guides/how-to-set-up-your-own-vpn-server/
- Last updated: 2026-11-16
- Publisher: TunnelVPS (https://tunnelvps.com)

The full path in one page: a server of your own, an SSH login, WireGuard on the server, and a config file for every device that should use it.

**Quick answer — How do I set up my own VPN server?**

Here is how to set up your own VPN server: rent a Linux VPS such as a **TunnelVPS** server, log in as root over SSH, install WireGuard with `apt install wireguard`, write one server config, then give each device its own key and config file. It takes 7 steps, and most of the time goes into waiting for delivery.

**In brief**

- **Server**: a KVM VPS with a public IPv4, Debian or Ubuntu, and root over SSH.
- **Protocol**: WireGuard for most people; Outline or AmneziaWG where WireGuard is blocked.
- **Devices**: one key pair and one `[Peer]` block per phone, laptop or router.
- **Upkeep**: updates, SSH hardening and an off-server copy of `/etc/wireguard` stay with the owner.

## What are the 7 steps from order to first connection?

*Setting up your own VPN server on TunnelVPS, 7 steps from checkout to the first device*

| Step | Where | What to do |
| --- | --- | --- |
| 1 | TunnelVPS checkout | Pick the rental length, plan, city, a Debian or Ubuntu image and, ideally, your SSH public key. |
| 2 | TunnelVPS checkout | Pay from the balance, or top up in crypto when the balance is short. |
| 3 | My servers | Wait until the status reads Running and the IPv4 address appears. |
| 4 | Your terminal | Run the `ssh root@` command copied from the server page. |
| 5 | Server | Update the system, then install WireGuard and make the server keys. |
| 6 | Server | Write `wg0.conf`, turn on forwarding and start `wg-quick@wg0`. |
| 7 | Device | Add a peer for the device and import its config file or QR code. |

## Why run your own VPN server instead of renting a VPN app?

**Because the server, its IP address and its keys belong to one account: yours.** That is the main reason people look up how to set up your own VPN server. A commercial VPN shares each exit address between many users and needs no setup. A personal server gives one dedicated address and no device limit set by the host, but you install and maintain it.

That trade-off matters for privacy too. A personal VPN hides traffic from the local network and the internet provider, not from the sites visited: every connection leaves through one IP address rented by one account, so it is a private tunnel, not anonymity. The [self-hosted versus commercial VPN page](https://tunnelvps.com/self-hosted-vpn-vs-commercial-vpn/ "Should I host my own VPN or pay for a VPN service?") sets out both sides.

## Which server do you need for a personal VPN?

**Any small KVM server with a public IPv4 is enough for WireGuard.** The protocol runs in the Linux kernel and uses little CPU. What decides the plan is the number of people and the monthly traffic.

- **Solo** ($2.25 a month on 12 months, 2 TB) fits one person with a phone and a laptop.
- **Home** ($6.37 a month on 12 months, 5 TB) fits a household.
- **Crew** ($10.12 a month on 12 months) leaves room for a web panel and many peers.

Every server has one dedicated IPv4 address and a routed IPv6 /64. Each plan states its monthly outbound traffic in TB, and going past it never adds an automatic charge. The [pricing page](https://tunnelvps.com/pricing/ "How much does a TunnelVPS VPN server cost?") lists every rental length.

## How does the order and the first login work?

**Order at checkout, pay in crypto, then log in with the SSH command shown on the server page.** A person on the TunnelVPS team builds each server after the payment is confirmed on the blockchain, usually within minutes and in 1 hour at most; the dashboard shows the IP address as soon as the server is ready. Paste your public key at checkout and root logs in with that key only.

Without a key, the server page shows a temporary root password to change with `passwd`. The [order and delivery guide](https://tunnelvps.com/help/order-and-delivery/ "How do I order a TunnelVPS server?") covers payment statuses and the first login screen. Anyone learning how to set up your own VPN server for the first time should add a key: it saves a hardening step later.

## How do you install WireGuard on the server?

**Update the packages, install `wireguard`, make a key pair and write `/etc/wireguard/wg0.conf`.** The block below is the short version. The [one-command install guide](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on a TunnelVPS server?") explains each line of the config and its NAT rules.

Every TunnelVPS server starts as a clean Debian or Ubuntu system, so nothing else is listening yet. Inbound UDP and TCP ports are open on the server; the customer chooses the VPN port and sets the firewall.

*Short version of the server setup (run as root)*

```bash
apt update && apt upgrade
apt install wireguard
cd /etc/wireguard
umask 077
wg genkey | tee privatekey | wg pubkey > publickey
# write wg0.conf (Address 10.8.0.1/24, ListenPort 51820, PostUp/PostDown NAT)
echo "net.ipv4.ip_forward=1" > /etc/sysctl.d/99-wireguard.conf
sysctl --system
systemctl enable --now wg-quick@wg0
wg show
```

## How do you connect the first phone or laptop?

**Create a key pair for the device, add its public key as a `[Peer]` on the server, and hand the device a client file.** Phones usually scan the file as a QR code; computers import it.

Each device gets its own tunnel address, such as `10.8.0.2/32`, and its own keys. Sharing one file between two devices causes dropouts. The [device guides hub](https://tunnelvps.com/guides/ "Which WireGuard setup guide fits my device?") links iPhone, Android, Windows, macOS and router setups.

## What if WireGuard is blocked on your network?

**Add Outline or AmneziaWG to the same server.** Some hotel, office and national networks filter WireGuard traffic. Outline uses Shadowsocks and is set up from the Outline Manager desktop app. AmneziaWG is a WireGuard fork that adds junk packets and changed headers, installed from the AmneziaVPN app over SSH.

TunnelVPS read the Amnezia server requirements on 16 November 2026: KVM, a public IPv4, x86-64, 1 CPU core, 1 GB of RAM and 10 GB of disk. Every TunnelVPS plan clears that bar.

## What does the owner of a VPN server have to keep doing?

**Apply updates, keep SSH locked to keys, and keep a copy of the VPN keys off the server.** No plan includes backups; daily backups kept 7 days can be added at checkout for 15% of the plan price. Without them, keep a copy of the VPN configuration and keys off the server. Reboot, reinstall and delete are sent from the dashboard and carried out by a person; a reinstall erases the disk, VPN keys included.

Revoke a lost phone by deleting its peer. Watch the traffic counter against the plan allowance once a month. Each of these tasks has its own short guide in the hub.

## Own VPN server questions

### How long does it take to set up your own VPN server?

Delivery takes up to 1 hour after the payment confirms. The WireGuard install and the first device take about 15 minutes more for someone used to a terminal.

### Is WireGuard already installed on a TunnelVPS server?

No. Each server starts as a clean Debian or Ubuntu system, and the install takes one apt command plus the config.

### Which is the best protocol for a home-made VPN in 2026?

WireGuard for most devices and networks. Outline or AmneziaWG when a network blocks WireGuard; all three can run side by side.

### How many devices can one server handle?

TunnelVPS sets no device limit. The practical limits are the plan's CPU, its monthly traffic and the shared 1 Gbit/s port.

### Can I pay for the server with Monero?

Yes. TunnelVPS takes BTC, USDT, USDC, ETH, SOL, LTC, XMR; Monero needs 10 confirmations before the balance is credited.

**Verdict**

- **Seven steps, one evening**: order, SSH, WireGuard, then one peer per device.
- **Plan by people and traffic**, not by CPU: Solo for one person, Home for a family.
- **Keep `/etc/wireguard` backed up**, because a reinstall wipes it.

## Sources

1. [WireGuard: Installation](https://www.wireguard.com/install/) — WireGuard (read 2026-11-16)
2. [WireGuard: Quick Start](https://www.wireguard.com/quickstart/) — WireGuard (read 2026-11-16)
3. [wg-quick(8) manual page](https://man7.org/linux/man-pages/man8/wg-quick.8.html) — man7.org (read 2026-11-16)
4. [Amnezia: supported Linux systems and server minimum](https://docs.amnezia.org/documentation/supported-linux-os-for-vps) — Amnezia (read 2026-11-16)
5. [Outline: get started](https://getoutline.org/get-started/) — Outline Foundation (read 2026-11-16)

**Start with the server** Home covers a household of phones and laptops, at $6.37 a month on 12 months. [Order Home for 12 months](https://tunnelvps.com/app/checkout/?plan=home&term=12m&image=ubuntu-24.04&from=guides-how-to-set-up-your-own-vpn-server&lang=en) · [Install WireGuard](https://tunnelvps.com/help/install-wireguard-in-one-command/ "How do I install WireGuard on my TunnelVPS server?")

---

TunnelVPS: TunnelVPS rents Linux KVM servers for a personal VPN (WireGuard, Outline or AmneziaWG) in New York, Dallas, Los Angeles, London, Amsterdam and Frankfurt, paid in crypto with no ID document. 5 plans from 2 to 16 GB of RAM and 2 to 6 TB of traffic a month cost the same in all six cities; on the 12-month term each is priced at least 25% under a named comparable plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
