Very rough shells scripts for setting up an OpenVPN server and generating client keys.
- Build/buy/rent a server somewhere
- Make certain it's reachable on UDP port 1194
scp setup-vpn-server <public ip of your server>:
ssh <public ip of your server>
export SERVER_IP=<public ip of your server>
sudo ./setup-vpn-server
- An initial client config is available in
/etc/openvpn/easy-rsa/client
For Android clients, a "fat" OVPN file is useful.
scp create-new-key <public ip of your server>:
ssh <public ip of your server>
sudo ./create-new-key phone
- A "fat" OVPN file is available as
/etc/openvpn/easy-rsa/client/phone.ovpn