Server Environment Setup#
- Install SoftEther VPN Server
Connect to your VPS using an SSH tool, and update the yum repository.
yum update
Confirm by typing 'y', then install the required libraries.
yum -y install gcc zlib-devel openssl-devel readline-devel ncurses-devel
If you are using Ubuntu, use apt-get as the package manager.
Download the SoftEther VPN Server from the current directory /root.
wget http://oks2t4o68.bkt.clouddn.com/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
Unzip the file.
tar -zvxf softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz
Go to the directory and install.
cd vpnserver
make
Select option 1 for all.
After installation, enter the following command in the current directory.
./vpnserver start
Start the service.
- Configure SoftEther VPN Server
./vpncmd
Enter 1, press Enter twice, then enter:
ServerPasswordSet
Set the server password. The server-side deployment is now complete.
Manage SoftEther VPN Server#
Now, go back to your PC. For example, if you are using Windows 10, first download the latest version from the official website https://www.softether-download.com/cn.aspx?product=softether, then install the management tool and open slmgr.exe.
Click on "New Setting".
Enter your VPS server IP in the Host Name field, and enter the password you just set.
Close the pop-up settings and go to the main interface.
Click on "Manage Virtual HUB".
Then click on "Manage Users".
Click on "Create".
Configure as shown in the image, and enter your own username and password.
Go back to the "Manage Virtual HUB" interface, click on the DHCP server of the virtual NAT, and enable SecureNAT.
Change the port to 53, and click on "Generate Configuration Sample File for OpenVPN Client" to save it to a location.
Configure OpenVPN#
Download OpenVPN from the official website https://openvpn.net/index.php/open-source/downloads.html, choose the Windows version, install it, and open it. Click on "Import file" to import the file with the 'l3' extension from the sample file into the OpenVPN configuration directory.
After importing, click on "Connect".
Enter the username and password from your virtual HUB, check "Save password", and if you see this prompt, it means the setup was successful.
Now you can log out of the authentication and try connecting again. You will still be able to access the internet.