The Angristan OpenVPN Install Script is a widely used automation tool that sets up a secure OpenVPN server in minutes. It supports Ubuntu, Debian, CentOS, Fedora, Arch Linux, and more. This guide explains how to install and configure OpenVPN on Ubuntu using this script.
curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh
sudo ./openvpn-install.sh
The interactive menu will guide you through installation, asking for:
After installation, the script creates .ovpn files in your home directory. These files are used by clients to connect.
Example to add a new client:
sudo ./openvpn-install.sh client add alice
List all clients:
sudo ./openvpn-install.sh client list
Revoke a client:
sudo ./openvpn-install.sh client revoke alice
Renew a client certificate:
sudo ./openvpn-install.sh client renew bob --cert-days 365
Check connected clients:
sudo ./openvpn-install.sh server status
Renew server certificate:
sudo ./openvpn-install.sh server renew
Uninstall OpenVPN:
sudo ./openvpn-install.sh uninstall
Transfer the .ovpn file to your client device and connect using the official OpenVPN client:
sudo openvpn --config alice.ovpn
Note: HostPalace offers managed VPN hosting solutions with OpenVPN pre-configured for secure client access.