Set up an OpenVPN server
If you need a VPN server you can control, OpenVPN is the solution and you can install it easily using a script available on GitHub.
- Prerequisite: open port 1194 UDP in your VPS/server network firewall.
- Download and execute script (GitHub repository).
wget https://git.io/vpn -O openvpn-install.sh && sudo bash openvpn-install.sh
- You can press Enter to all prompts, but better if you read them before doing it.
- When script ends, you will see this message:
Finished! The client configuration is available in: /root/client.ovpn New clients can be added by running this script again.
- Copy VPN key from
/root/client.ovpnto a secure place (you will need it to connect to the VPN server).