User Tools

Site Tools


installing_openvpn_debian12

Install OpenVPN on Debian 12 the easy way

The easiest way to install a working OpenVPN on Debian 12 is installing it via a single script. Please note that you should sudo install it otherwise you might get errors.

Installation Using a Script:

Begin by obtaining the installation script and making it executable:

 curl -O https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
 chmod +x openvpn-install.sh

Next, run the script (ensure you have root privileges and the TUN module enabled):

 ./openvpn-install.sh

Upon the first execution, you’ll be prompted to answer a few questions to configure your VPN server. Once OpenVPN is installed, you can rerun the script to:

 ./openvpn-install.sh

Welcome to OpenVPN-install! The git repository is available at: https://github.com/angristan/openvpn-install It seems like OpenVPN is already installed. What would you like to do?

 1) Add a new user
 2) Revoke an existing user
 3) Remove OpenVPN
 4) Exit

Select an option [1-4]:

This allows you to add new users or revoke existing ones.

That's it!!!

If you should run into any errors try to install openvpn via apt-get and then run the procedure again.

Your ArtIT Team

BACK

installing_openvpn_debian12.txt · Last modified: 2024/02/07 18:08 by admin