What is the OpenVPN?
OpenVPN is an open-source commercial software that implements virtual private network techniques to create secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses a custom security protocol that utilizes SSL/TLS for key exchange.
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.
One-Click Install Now
First, get the script and make it executable:
# curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
And change the permissions of the .sh
file:
# 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
- OpenVPN 2.4 features, mainly encryption improvements
- Variety of DNS resolvers to be pushed to the clients
- Choice to use a self-hosted resolver with Unbound
- Choice between TCP and UDP
- NATed IPv6 support
- Compression disabled by default to prevent VORACLE. LZ4 (v1/v2) 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!
Compatibility
- Amazon Linux 2
- Arch Linux
- CentOS 7
- CentOS 8
- Debian 8
- Debian >= 9
- Fedora >= 27
- Ubuntu 16.04
- Ubuntu >= 18.04
To be noted:
- It should work on Debian 8+ and Ubuntu 16.04+. But versions not in the table above are not officially supported.
- The script requires systemd.
- The script is regularly tested against amd64 only.