-
SSH connection tool Finalshell: Click here to enter
-
Allow ports or set firewall rules
-
Download OpenVPN installation program, open source project address: Click here to enter
wget https://raw.githubusercontent.com/Nyr/openvpn-install/master/openvpn-install.sh
If there is a problem with the download link, you can download the project file from the open source project, upload it to the server, and then execute the following command
apt update&&apt install unzip&&unzip -j openvpn-install-master.zip
- Install OpenVPN (also use this command to add users)
bash openvpn-install.sh
Enter the domain name or press Enter directly - choose 2 (TCP) - set a port (it is recommended not to use the default port) - choose 1 - set a name - press Enter - press Enter again
Set OpenVPN to start at boot
systemctl enable openvpn@server
-
Various OpenVPN client downloads: [Click here to enter]
-
OpenVPN file path: /etc/openvpn/server, if you need to change the configuration information, you can open server.conf to make changes
If you have changed the configuration, simply restart the server
reboot