This shell script is a small configurator for OpenVPN. It allows to manage servers, certification authorities and its clients. It is intended for users who do not want to struggle with technical details.
As root, run:
curl -sfLo /usr/local/sbin/gesovpn https://raw.githubusercontent.com/mdmvgithub/gesOVPN/refs/heads/master/gesovpn
chmod 700 /usr/local/sbin/gesovpn
All functions are through menus, it is not necessary to use other commands.
- Configure one o more servers, then enable, disable, start, stop them.
- Configure CAs.
- Create files for clients, with optional password.
- Set Static IPs for clients.
- Block clients for a server.
Just run gesovpn
.
- It will show a form to set up basic settings for your server.
- The next form allows you to configure your certification authority (CA).
- Then you can generate the
.ovpn
file for your first client.
Be patient with the generation of the DH params.
Just run gesovpn
. Now you can select an existing server or create one.
Several servers can share the same CA.
Certificate revocation is not contemplated, but clients can be selectively blocked for each server.
To generate clients, you can use the command line:
gesovpn -sv -list
Select the server, i.e. my_server, and request common name, password, static ip (yes/no)
gesovpn -sv my_server -cl 'common_name' 'password' yes -cl 'another_name' '---' no -cl 'another' 'pwd min 8' no ...