OpenVPN installer for Debian, Ubuntu, Fedora, CentOS and Arch Linux.
This script will let you setup your own secure VPN server in just a few seconds.
You can also check out how to setup WireGuard, a simple, safer, faster and more modern VPN protocol.
Usage
First, get the script and make it executable :
curl -O [Hidden Content]
chmod +x openvpn-install.sh
Then run it :
./openvpn-install.sh
You need to run the script as root and have the TUN module enabled.
The first time you run it, you'll have to follow the assistant and answer a few questions to setup your VPN server.
When OpenVPN is installed, you can run the script again, and you will get the choice to :
Add a client
Remove a client
Uninstall OpenVPN
In your home directory, you will have .ovpn files. These are the client configuration files. Download them from your server and connect using your favorite OpenVPN client.
Features
Installs and configures a ready-to-use OpenVPN server
Iptables rules and forwarding managed in a seamless way
If needed, the script can cleanly remove OpenVPN, including configuration and iptables rules
Customisable encryption settings, enhanced default settings (see Security and Encryption below)
OpenVPN 2.4 features, mainly encryption improvements (see Security and Encryption below)
Variety of DNS resolvers to be pushed to the clients
Choice to use a self-hosted resolver with Unbound (supports already existing Unbound installations)
Choice between TCP and UDP
NATed IPv6 support
Compression disabled by default to prevent VORACLE. LZ4 and LZ0 algorithms available otherwise.
Unprivileged mode: run as nobody/nogroup
Block DNS leaks on Windows 10
Randomised server certificate name
Choice to protect clients with a password (private key encryption)
Many other little things!
Source: [Hidden Content]