Setting up your own private VPN
How to create a cheap, self-hosted WireGuard VPN using any VPS provider. I paid $0.018 for a two-hour streaming session.
I paid $0.018 for a two-hour streaming session with a self-hosted WireGuard VPN.
# 1. Create VPS (Hetzner, DigitalOcean, etc.), ssh in, then:
curl -fsSL https://get.docker.com | bash
# 2. Start WireGuard
docker run -d --name=wireguard --cap-add=NET_ADMIN \
-e SERVERURL=auto -e PEERS=1 -e ALLOWEDIPS=0.0.0.0/0 \
-p 51820:51820/udp -v ./wg-config:/config \
--restart unless-stopped lscr.io/linuxserver/wireguard:latest
# 3. Get client config
cat ./wg-config/peer1/peer1.conf
Import into the WireGuard client → Activate.