- How to Set up SoftEther VPN Client on Linux
- Requirements
- Recommendations
- Part I. Install SoftEther VPN client
- Part II. Configure SoftEther VPN client
- Requirements
- Recommendations
- Part I. Install SoftEther VPN client
- Part II. Configure SoftEther VPN client
- Part III. IP and routing table
- Part IV. Disconnect from VPN
- Saved searches
- Use saved searches to filter your results more quickly
- Rafatlne/SoftEther-VPN-Client-Setup-on-Manjaro
- Name already in use
- Sign In Required
- Launching GitHub Desktop
- Launching GitHub Desktop
- Launching Xcode
- Launching Visual Studio Code
- Latest commit
- Git stats
- Files
- README.md
- About
How to Set up SoftEther VPN Client on Linux
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.
Requirements
In order to set up the SoftEther you will need:
- A CactusVPN account. If you don’t have one you can try our services for free.
- Your VPN username, password and VPN server address. You can find them in your account on our website, by going to Settings.
Recommendations
- This tutorial requires advanced Linux knowledge. There is a potential risk to break your Internet connection if you don’t follow all steps exactly. You can always set up VPN on Linux using other VPN protocols that are easier to set up.
- Connect to SoftEther VPN protocol on Linux only if you have experience with the configuration of Linux applications and are familiar with reading / modifying IP routing tables.
If you still want to set up SoftEther VPN on Linux, go step-by-step through following instructions:
Part I. Install SoftEther VPN client
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.
apt update && apt -y full-upgrade
sudo echo "deb [trusted=yes] https://repository.cactusvpn.com/softether/ amd64/" > /etc/apt/sources.list.d/cactusvpn.list
sudo apt install -y softethervpn-stable
apt update && apt -y full-upgrade
wget http://www.softether-download.com/files/softether/v4.27-9668-beta-2018.05.29- tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.27-9668- beta-2018.05.29-linux-x64-64bit.tar.gz
tar xzfv softether-vpnclient-v4.27-9668-beta-2018.05.29-linux-x64-64bit.tar.gz
apt -y install build-essential
yum groupinstall "Development Tools"
cd .. && mv vpnclient /usr/ && cd /usr/vpnclient/
Part II. Configure SoftEther VPN client
sudo /usr/vpnclient/vpnclient start
AccountPassword cactusvpn
If you see “Connected” you can go to the next step.
Press Ctrl + c or Ctrl + d to exit the SoftEther VPN Client manager. 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.
Requirements
- A CactusVPN account. If you don’t have one you can try our services for free.
- Your VPN username, password and VPN server address. You can find them in your account on our website, by going to Settings.
Recommendations
- This tutorial requires advanced Linux knowledge. There is a potential risk to break your Internet connection if you don’t follow all steps exactly. You can always set up VPN on Linux using other VPN protocols that are easier to set up.
- Connect to SoftEther VPN protocol on Linux only if you have experience with the configuration of Linux applications and are familiar with reading / modifying IP routing tables.
If you still want to set up SoftEther VPN on Linux, go step-by-step through following instructions:
Part I. Install SoftEther VPN client
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.
apt update && apt -y full-upgrade
sudo echo "deb [trusted=yes] https://repository.cactusvpn.com/softether/ amd64/" > /etc/apt/sources.list.d/cactusvpn.list
sudo apt install -y softethervpn-stable
apt update && apt -y full-upgrade
wget http://www.softether-download.com/files/softether/v4.27-9668-beta-2018.05.29- tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.27-9668- beta-2018.05.29-linux-x64-64bit.tar.gz
tar xzfv softether-vpnclient-v4.27-9668-beta-2018.05.29-linux-x64-64bit.tar.gz
apt -y install build-essential
yum groupinstall "Development Tools"
cd .. && mv vpnclient /usr/ && cd /usr/vpnclient/
Part II. Configure SoftEther VPN client
sudo /usr/vpnclient/vpnclient start
AccountPassword cactusvpn
If you see Connected” you can go to the next step.
Part III. IP and routing table
cat /proc/sys/net/ipv4/ip_forward
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
echo net.ipv4.ip_forward=1 >> /etc/sysctl.conf && sysctl -p
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:
After a few moments you should get an IP address from the 10.6.0.0/24 network.
Edit the routing table:
to see the current routing table. Yours should be similar to this:
Add a route to the VPN server’s IP address via your old default route. In my specific case:
sudo ip route add 93.115.92.240/32 via 192.168.0.1
sudo ip route del default via 192.168.0.1
After these updates, the routing table should look like this:
Ping any IP address to check your network connection:
wget -qO- http://ipecho.net/plain ; echo
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
Part IV. Disconnect from VPN
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.
- To disconnect from VPN simply turn OFF the SoftEther VPN Client manager:
sudo /usr/vpnclient/vpnclient stop
sudo ip route del 93.115.92.240/32
sudo ip route add default via 192.168.0.1
Saved searches
Use saved searches to filter your results more quickly
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
How to Setup/Install/Configure SoftEther VPN Client on Linux.
Rafatlne/SoftEther-VPN-Client-Setup-on-Manjaro
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
README.md
How to Install SoftEther VPN on Manjaro/Arch Based Linux
This tutorial only tested on Manjaro Linux.
- First download SoftEther VPN Linux Client.
- Extract the tar.gz file.
- cd to that extracted folder.
- run this command make
- It will ask for license aggrement and you have to agree to that license prompt otherwise it will not install.
2. How to Start SoftEther VPN
3. How to Enter SoftEther Command Prompt
Specify the host name or IP address of the computer that the destination VPN Client is operating on. If nothing is input and Enter is pressed, connection will be made to localhost (this computer). Hostname of IP Address of Destination:
- If you don’t give any input and pressed Enter again then you will enter into localhost . This will show you below text
Connected to VPN Client "localhost".
- Now we will check if SoftEther VPN successfully installed or not. Run this command check if output of text is like below then you have successfully installed SoftEther VPN
All checks passed. It is most likely that SoftEther VPN Server / Bridge can operate normally on this system. The command completed successfully.
4. How to Create VPN Account
For my case I Entered Below Command
NicCreate bcc
For my case I Entered Below Command
AccountCreate bcc
Your destination VPN Server Host and Port Number Example: 123.45.67.789:443
Your Destination Virtual Hub Name Example: VPN
Your User Name Example: test
Virtual Network Adapter Name (You created this earlier by NicCreate command)
AccountCreate command - Create New VPN Connection Setting Destination VPN Server Host Name and Port Number: 123.45.67.789:443 Destination Virtual Hub Name: VPN Connecting User Name: test Used Virtual Network Adapter Name: bcc The command completed successfully.
5. How Setup VPN Account Password
AccountPassword YourAccountName
For my case I Entered Below Command
AccountPassword bcc
- You will have to enter password two times and after that you will get Specify standard or radius: , write standard .
- After that you will get confirmation message.
The command completed successfully.
6. How to connect VPN Account
AccountConnect YourAccountName
For my case I Entered Below Command
AccountConnect bcc
AccountConnect command - Start Connection to VPN Server using VPN Connection Setting The command completed successfully
7. How to Modify Route Table
You connected to SoftEther VPN but you ip route doesn’t go through that VPN yet. You can see this by ip route which will show you current ip route. To route through the SoftEther VPN you have to connect VPN interface
- First run cat /proc/sys/net/ipv4/ip_forward to check if IP Forwarding is enabled. If ‘0’ is returned then run the next command echo 1 > /proc/sys/net/ipv4/ip_forward
(You may need to sudo su to perform some of the next commands) - Run dhclient vpn_YouVpnName for my case dhclient vpn_bcc to obtain an IP address from the VPN DHCP server
- Run this command
sudo ip route add vpn_server_address/32 via 192.168.0.1 Example: sudo ip route add 123.45.67.789/32 via 192.168.0.1
sudo ip route del default via 192.168.0.1
8. Disconnect from VPN and restore route table
sudo ip route del vpn_server_address/32 Example: sudo ip route del 123.45.67.789/32
sudo ip route add default via 192.168.0.1
sudo systemctl restart NetworkManager
About
How to Setup/Install/Configure SoftEther VPN Client on Linux.