Set Up OpenVPN Server in One Minute

The script supports Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.

Update your system (Ubuntu example):

sudo apt update && \
sudo apt upgrade -y

Run the OpenVPN server installation script:

wget https://git.io/vpn -O openvpn-install.sh && \
chmod +x openvpn-install.sh && \
sudo ./openvpn-install.sh

When prompted, if you don’t know what to choose, choose UDP protocol, port 1194, DNS server 1.1.1.1.

Done! The OpenVPN server is ready to accept client connections.

You can rerun the script to add/remove clients or uninstall OpenVPN.

Source: https://github.com/Nyr/openvpn-install