WireGuard is a fast, modern VPN built into Linux. Each device has a key pair; peers only accept traffic from keys they know.
sudo apt install wireguard wg genkey | tee privatekey | wg pubkey > publickey # /etc/wireguard/wg0.conf (server) [Interface] Address = 10.8.0.1/24 ListenPort = 51820 PrivateKey = <server private key> [Peer] PublicKey = <phone public key> AllowedIPs = 10.8.0.2/32 sudo wg-quick up wg0 sudo systemctl enable wg-quick@wg0