How to Install Softether VPN Server on Debian and Ubuntu VPS

For users who often use SSH Tunneling to protect their connection from eavesdroppers, they may think that SoftEther VPN is just like most VPN programs. But actually this is not true, precisely with SoftEther, users can create multi-protocol VPNs that are not only used for SoftEther clients, but can even be used on OpenVPN and L2TP.

And finally in this article I can share how to set it up and it’s really very easy. Unfortunately, I only explain the way for Ubuntu or Debian OS, so for Linux systems other than those OS, it’s a shame I can’t share it here either because if they are combined into one it will definitely cause confusion.

Method setup SoftEther server is not too difficult really, so surely users will succeed.

In addition, with the help of this SoftEther server, the OpenVPN configuration that is made is not separated and is directly integrated into one archive file so that users can get it right away.

Also read: socks5 based vpn app on Android

Previously there was also an article on how to use SoftEther VPN Client on Windows, and now it’s time to create a server. So what is needed is VPS with Ubuntu or Debian OS. Immediately see below.

How to Install Softether VPN Server on Debian and Ubuntu VPS

  1. As usual, on the terminal for the first time in updates first with this command.
    sudo apt-get update && apt-get upgrade

    Then install the Lynx program that will be used to get a list of Softether versions later.

    sudo apt-get install lynx -y
  2. Once done, type this command to get a list of Softether versions.

    First choose the version, then there are 3 options please choose Softether Server and then select the device system and select as Linux. Well after that choose hardware architecture corresponding to the user’s server. Here I show I choose ARM 64-bit. Until the file finally appears, just press the button D which it will download and after that press ENTER on Save to Disk

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  3. Alright, when you’re done, it’s time to extract the archive with this command.
    tar xzvf softether-vpnserver-v4.22-9634-beta-2021.11.27-linux-x64-64bit.tar.gz

    Note: Rename the file according to the version of Softether that was downloaded earlier. If you forget, just type the command ls and then it will appear.

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  4. Before installing to the system, make sure that you have installed the programs you will need later.
    sudo apt-get install build-essential -y
  5. Now it’s time to install it.
    cd vpnserver

    An option will appear for 3 times, just type a number 1 and ENTER until finished. Because it’s just an agreement.

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  6. Now move the Softether directory earlier to local.
    cd ..
    mv vpnserver /usr/local
    cd /usr/local/vpnserver/

    At the same time arrange the permissions to make it more secure

    chmod 600 *
    chmod 700 vpnserver
    chmod 700 vpncmd
  7. Next is the process of adding Softether to the process startup, so if the server is rebooted it doesn’t need to be reactivated and it runs automatically.
    sudo nano /etc/init.d/vpnserver

    Put this code in it and save it.

    # chkconfig: 2345 99 01
    # description: SoftEther VPN Server
    test -x $DAEMON || exit 0
    case "$1" in
    $DAEMON start
    touch $LOCK
    $DAEMON stop
    rm $LOCK
    $DAEMON stop
    sleep 3
    $DAEMON start
    echo "Usage: $0 {start|stop|restart}"
    exit 1
    exit 0

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  8. Create this directory if it doesn’t exist before. And if a message appears there is a file aka “files exist”, then leave it alone and move on to the next step.
    sudo mkdir /var/lock/subsys

    And run this code to make SoftEther run in process startup

    update-rc.d vpnserver defaults
  9. Already entered the step of running the server. Here’s the order.
    sudo chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start

    Continue to check if the SoftEther program is working properly.

    cd /usr/local/vpnserver

    3 options will appear, please type a number 3 and type again check. If there is no error message, just type exit and proceed to the next step.

    How to Setup SoftEther Server on Ubuntu or Debian VPS
    How to Setup SoftEther Server on Ubuntu or Debian VPS

  10. This step will help the user to change their SoftEther password.

    Continue typing numbers 1 and there will be 2 questions, you can just ENTER. And use this command to change password

  11. Continue by creating a Virtual HUB. Here I will make an example with the name VPN.
    HubCreate VPN

    You will be asked for a password, please type the password you created earlier.

  12. It’s finally come to the step of setting up the HUB.
    Hub VPN

    Enable SecureNAT with this command.

  13. Well now I will give some orders to make user and set it up.
    UserCreate paijo

    Above I gave an example of the user name paijo. And to set a password for that user, here’s the command.

    UserPasswordSet paijo
  14. The next step is to enable L2TP/IPSec.

    There will be 5 questions, so just type yes for 3 times. Then on to the question Pre Shared Key for IPsec make a password of at least 8 letters. And in the end in question Default Virtual HUB in a case of omitting the HUB on the Username fill it with the name of the Virtual HUB that was created earlier, namely VPN.

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  15. So that it can be used for OpenVPN too, this is the command.
    ServerCertRegenerate [CN]
    ServerCertGet ~/cert.cer
    SstpEnable yes
    OpenVpnEnable yes /PORTS:1194
    OpenVpnMakeConfig ~/

    Well users will definitely find a file named in the main directory. And this OpenVPN is running on port 1194.

    How to Setup SoftEther Server on Ubuntu or Debian VPS

  16. Now the user can try to connect it to the SoftEther Client program. And for the port is 443
Baca Juga:  How to get shirt No. 23 Soccer Free Fire (FF)

Somehow I feel this is a very old way. But for some reason I also prefer to install this SoftEther server which is quite practical than installing the OpenVPN program myself. Because using SoftEther, you can create several direct VPN protocols so they are not done separately.

If the user follows the method above correctly, I guarantee you will succeed in making this SoftEther server.

Also read: How to change the Squid proxy listen port

Possibly even if it fails, there must be a section before changing the password where port 443 is already used by other programs so the user needs to change it to another port that is still closed like 5555 or other. If there is something you want to ask or the user has confusion at a step, just comment and I will help solve the problem.

Hopefully useful and good luck

Leave a Reply

Your email address will not be published. Required fields are marked *