Forked from openvpn-install, broken apart, and heavily modified to make the individual components easier to understand. Tested and verified to work with Debian 12 only.
-
Run
./install.sh
to install OpenVPN and the system configuration changes -
Run
./new-client.sh mynewclient
to create a profile -
Copy
clients/mynewclient.ovpn
and give to a single, trusted device
-
Have
mynewclient.ovpn
connect once -
Stop OpenVPN via
systemctl stop openvpn
-
Open
/etc/openvpn/ipp.txt
in nano -
Modify the file to contain the client and its ip, e.g.
mynewclient,10.8.0.100
-
Start OpenVPN via
systemctl start openvpn
-
Have
mynewclient
connect again