What a VPN on a VPS gives you, and what it does not
A personal VPN creates an encrypted tunnel between your devices and your VPS. It does three things:
- Protecting your connection on public Wi-Fi: traffic travels encrypted to the VPS, then goes out to the Internet from France.
- Giving you a fixed IP address: the VPS's dedicated IPv4 becomes your exit address. This helps with a service that only accepts known addresses: an admin interface, a customer's firewall, access to a server.
- Linking your devices and servers in a private network: a database or an admin interface stays invisible from the Internet and reachable through the VPN.
The limits are just as clear. A VPN on your own VPS does not make you anonymous: the VPS is rented in your name, and its address is tied to you and stays identifiable. The VPN moves your exit point; it does not erase it. Its use must stay lawful and in line with our terms and conditions: whatever leaves your VPS is your responsibility.
WireGuard or Tailscale: which one to install
Both rely on the same protocol, WireGuard. The difference is who manages the keys and the connections.
- WireGuard on its own: everything stays on your VPS, with no third-party account. You open a UDP port (51820 by convention), then create a key pair and a configuration block per device; the VPS acts as the hub. This is the method tested on our VPS, detailed in the guide creating your own WireGuard VPN on a VPS.
- Tailscale: no port to open and no key to copy, a device joins by signing in to your account, and devices reach each other directly. In return, you depend on an account and on Tailscale's coordination service. In a container VPS, it needs the
/dev/net/tun device: check that it is there first, and write to support if it is missing. The steps are in installing Tailscale on a VPS.
For an exit VPN that depends on no one, WireGuard on its own is the most direct. To link a few machines and manage a VPS without exposing its SSH, Tailscale is simpler.
Setting up your WireGuard VPN, step by step
- Order the first tier of a Ryzen VPS or an Intel VPS, with a recent Debian or Ubuntu. The VPS is ready a few minutes after payment.
- Secure access: key-based SSH connection, firewall, updates. The guide securing a Linux VPS gives the order to follow: a VPS used as a gateway must be clean.
- Install WireGuard (
sudo apt install -y wireguard qrencode) and create the keys: one pair for the server, one per device.
- Write the server configuration in
/etc/wireguard/wg0.conf, then enable forwarding, open the port and start the service with the commands below.
- Add your devices: on a phone, the official WireGuard app reads the configuration from a QR code.
echo 'net.ipv4.ip_forward=1' | sudo tee /etc/sysctl.d/99-wireguard.conf
sudo sysctl --system
sudo ufw allow 51820/udp
sudo systemctl enable --now wg-quick@wg0
sudo wg show
The last command shows when each device last exchanged with the server. The full file, device configuration and troubleshooting are in the WireGuard guide. As for VPS size, a small tier is enough; the guide choosing the right VPS helps if you plan to add other services.
When a VPN VPS is not the right choice
- You are after anonymity: a VPN on a VPS rented in your name does not provide it.
- You want an address in another country: our servers are in France, and so is the exit address.
- Your VPN depends on a kernel module other than WireGuard: our Linux VPS are LXC containers that share the host machine's kernel. A dedicated server gives you your own kernel. The differences are in KVM or container VPS.
- You do not want to administer anything: on a VPS, updates, the firewall and your devices' keys are your responsibility.