$ curl https://git.zx2c4.com/WireGuard/plain/contrib/examples/ncat-client-server/client.sh | sudo bash /dev/stdin default-route

Learn more at WireGuard.com.