Skip to main content

WireGuard VPN

A Raspberry Pi in a data centre as your own VPN server. Connect from a café, a hotel or abroad through your own IP address in the Czech Republic, with the traffic between you and the server encrypted.

Why WireGuard

WireGuard has a short configuration, connects quickly, and a Raspberry Pi 5 has plenty of power for the encryption. There are clients for Linux, Windows, macOS, Android and iOS. If you need an older protocol, OpenVPN works too.

sudo apt install wireguard
wg genkey | tee private.key | wg pubkey > public.key

What it's good for

  • a safe connection on public Wi-Fi,
  • access to your home or office network through a tunnel from the Raspberry Pi,
  • a fixed IP address for services that only allow access from one address.

The Raspberry Pi gets a public IPv4 and IPv6 address, so clients connect to it directly, with no port forwarding.