Skip to content

CTFfactory/OpenVPN-admin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenVPN installer

Installs OpenVPN community verison

  • Installs all needed dependencies
  • Sets up Easyrsa
  • Downloads mkclient.py for automation client creation/deletion

Step 1: Download repo

Git clone https://github.com/huzar01/OpenVPN

Step 2: Run installer

Run openvpn-install.sh
This will install openvpn, easy-rsa, and create the required directories

Step 3: Add routes to server.conf

Configure routes on VPN server:
alt text

Edit server.conf to add routes -> /etc/openvpn/server.conf:

server.conf

alt text

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

client-template.txt

alt text

Step 4: Create client data [First,Last,Email]

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]

client-creation.txt

alt text

Step 5: Run mkclient.py to create clients configuration

mkclient.py -h
alt text

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

Credit to angristan and Nyr, installer is a modified version of angristan openvpn-install

About

OpenVPN installer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.9%
  • Shell 43.1%