Installs OpenVPN community verison
- Installs all needed dependencies
- Sets up Easyrsa
- Downloads mkclient.py for automation client creation/deletion
Git clone https://github.com/huzar01/OpenVPN
Run openvpn-install.sh
This will install openvpn, easy-rsa, and create the required directories
Configure routes on VPN server:
Edit server.conf to add routes -> /etc/openvpn/server.conf:
Default client template located -> /etc/openvpn/client-template.txt
mkclient.py uses this to create client configs
IF USING ON WINDOWS COMMENT OUT setenv opt block-outside-dns
Add clients you want to create in client-creation.txt” -> /etc/openvpn/client-creation.txt
A default template is created with user John
FORMAT IS IMPORTANT!!!
John,Doe,[email protected]
Create the client users:
mkclient.py -c client-creation.txt
Mkclient.py can use any text file that contains the correct format (client-creation.txt is the default)
To remove clients:
Add the client names to client-remove.txt -> /etc/openvpn/client-remove.txt
A default client-remove.txt is created with user John
mkclient.py -r client-remove.txt
You can create your own text file (client-remove.txt is the default)
Credit to angristan and Nyr, installer is a modified version of angristan openvpn-install