-
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 an issue with the download link, you can download the project files from the open source project, upload them 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 - 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 on 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 made changes to the configuration, simply restart the server
reboot