Get CactusVPN for $3.5/mo!
In this tutorial we will show you how to set up SoftEther VPN Client on Linux but first let’s see what are our requirements and recommendations.
In order to set up the SoftEther you will need:
If you still want to set up SoftEther VPN on Linux, go step-by-step through following instructions:
We’ll show you how to install the SoftEther VPN client on Linux. You can do this in two ways: from package manager on Ubuntu or other Debian Derivates [x86_64 or AMD 64 machines] and from source on Linux distributives. Choose the way you want to use from the menu below and follow its steps.
This step is not mandatory, though it is recommended.
Important! You may get the following error:
“E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
E: Failed to fetch https://repository.cactusvpn.com/softether/amd64/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.”
If you get this error, you need to install apt-transport-https on your device:
sudo apt install -y apt-transport-https
and run the first command again.
If you do not see any errors just ignore this step.
apt update && apt -y full-upgrade
On CentOS / Fedora:
yum -y update
This step is not mandatory, though it is recommended.
apt -y install build-essential
On CentOS / Fedora:
yum groupinstall "Development Tools"
If you see this message: “The SoftEther VPN Client service has been started.” then the SoftEther VPN client has successfully started.
If all the checks are passed, you can go to the next step.
Important! Do not go to the next step until you do not correct all the errors.
“Destination VPN server Host Name and Port Number”: {VPN IP address}:{SoftEther VPN Port}
You can find all the available servers and ports in your account on our website, by going to Settings.
“Connecting User Name”: {your VPN username}
You can find your username in your account on our website, by going to Settings. Make sure you use your VPN username and NOT the website account one (What is the difference?).
“Used Virtual Network Adapter Name”: vpn_se
If you get the “The command completed successfully.” message, it means that the account creation was successfully finished.
and enter your VPN password for “Password” and “Confirm input”.
You can find your password in your account on our website, by going to your service details. Make sure you use your VPN password and NOT the website account one (What is the difference?).
If you see “Connected” you can go to the next step.
If you get “1” you can skip this step and go to the “Obtain an IP address from the VPN server” step.
If you have “0”, please enable IP forward:
echo 1 > /proc/sys/net/ipv4/ip_forward
You can also make it permanent by editing the “/etc/sysctl.conf” file:
echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf && sysctl -p
If you get “net.ipv4.ip_forward = 1” the IP forward was successfully enabled.
and you’ll see the virtual network “vpn_vpn_se” created with SoftEther VPN client tool.
To get an IP address from the VPN server:
sudo dhclient vpn_vpn_se
After a few moments you should get an IP address from the 10.6.0.0/24 network.
to see the current routing table. Yours should be similar to this:
The 93.115.92.240 is the IP address of the VPN server. The 192.168.0.1 is my previous gateway.
After these updates, the routing table should look like this:
If you see the VPN server’s IP, everything was set up correctly and your Linux is connected to the VPN via SoftEther VPN client.
If the ping to the “8.8.8.8” is OK but you can not retrieve anything else by public hostname, add Google DNS (or any Public DNS server) to your “/etc/resolv.conf” file:
sudo echo nameserver 8.8.8.8 >> /etc/resolv.conf
To turn the VPN connection OFF you need to close SoftEther VPN Client manager and edit the routing table to get the access to the Internet via your router’s gateway.
Protect online privacy, secure your connection and access blocked websites
Try CactusVPN For Free