Install Softether Vpn Client On Linux

  1. Install Softether Vpn Client
  2. Softether Vpn Server Windows
  3. Softether Vpn Client Manager Free Download Pc
  4. Install Softether Vpn Client On Linux Windows 7

Here we will be installing Softether VPN server on Ubuntu/Debian. After this is done you will be able to use this server as a VPN node and optionally open/forward ports to static internal IP’s.

We now have a custom Softether VPN install script to make this easy to install on any Debian/Ubuntu VPS. See here for simple installation.
https://whattheserver.com/softether-vpn-install-script_for-ubuntu/

Nov 19, 2013. Configuration of vpn server on Linux with client. Configuration of vpn server on Linux with client. Skip navigation. How To Install SoftEther VPN Server (UPDATED! Read Desc) - Duration: 25:52.

  • Run the VPN client which was installed on the previous step. Open Connect - Import VPN Connection Setting and select one or more configs from the downloaded archive. A new VPN chain will appear in the available connection list after config importing.
  • Test the SoftEther VPN Client installation:Check. If all the checks are passed, you can go to the next step. Do not go to the next step until you do not correct all the errors. Press “Ctrl” + “C” or “Ctrl” + “D” to exit. Set up SoftEther VPN client. Start configuration with:vpncmd; Select “2. Management of VPN.
  • See the ChangeLog of SoftEther VPN as the version history. The SoftEther VPN source code has been available since January 4, 2014. How to build from the source code.

Requirements

  • VPS with static IP
  • Ubuntu/Debian Server
  • root or sudo access

Login to the server as root. Note the public IP and the network adapter. Note in the example below it is “ens18” and IP is “93.158.203.113”. This will be needed for later steps.

Update the OS if not already done.

Install essentials

Grab latest Softether link for Linux x64 from here

Install Softether Vpn Client

Use wget to copy it directly onto the server.

Extract it. Enter directory and run make and agree to all license agreements:

Move up and then copy Softether libs to /usr/local

Install Softether Vpn Client On Linux

Set the server admin password

Enter the admin password twice to save. Then type exit to quit.

I use the windows Softether VPN Server Manager Client for doing the settings. It actually works great in Wine/PlayonLinux for those running Linux for daily use. Can find latest version here

Install it, run it, click New setting. Input ip and password.

Create systemd init file for Softether VPN service. This will control start, stop, and restart Softether service IPtables and DNSmasq service.

Paste in the below to create systemd script for managing Softether VPN with Iptables and Dnsmasq

ctrl-o ret ctrl-x

To grab this file ready to go:

Setup Iptables by creating bash script to automate the iptables needed for VPN.

Paste in the below code. Make sure “NET_INTERFACE=ens18” matches your net interface and “VPNEXTERNALIP=93.158.203.113” has your public IPv4 instead of the example “93.158.203.113” noted from the beginning of the tutorial.

Make script executable.

Install DNSmasq DHCP server. This is required for the tutorial and helps improve the speed over using the SecureNat/DHCP builtin function of Softether. This is also needed if wanting to open or forward ports and set internal static IP’s.

Backup the default dnsmasq.conf

Create new /etc/dnsmasq.conf. Make sure your Tap Adapter matches “interface=tap_soft” and Interface “except-interface=ens18”. If you have been following the rest of the tutorial the rest of the stuff is already setup to match network.

paste in the below

Setup Sysctl for IPv4 and optional Ipv6 forwarding.

To grab this file ready to go and execute it for IPv4:

Or alternatively this can be done manually via nano.

Paste in the below block for IPv4 and optionally IPv6 if setting up dualstack IPv6 VPN.

Run the below to apply the rules. A Reboot also may be required in some cases.

Alright now for the fun part. We are going to enable and startup up the Softether VPN service we created earlier.

To enable, start,and check status of the systemd Softether vpn service.

Check Iptables.

Softether Vpn Server Windows

It should look like this.

Softether Vpn Client Manager Free Download Pc

Now the VPN server is working and should be accessible. Please install SoftEther VPN client or your Openvpn client and connect at this time. Grab the SoftEther VPN client installer from here. Install it create a new connection see the below recommended settings. Replace the IP from our example with your VPN server’s IP and name it something and input the username and password from previous step.

Now you have an adblocking Softether VPN Server setup which can be used from 6 protocols.

To setup Softether to be logless see our other article about that here.

To setup static IP’s for port forwarding the dnsmasq DHCP server will need to use the Mac address of the VPN network adapter. This can be found via “ifconfig /all” or “ipa” on Linux. Once the Mac Address is known we need to pick an internal IP to set as static. The easiest way to find one to assign is to connect and then view the DHCP assigned IP. Then note that down and then disconnect from the VPN. It should be something like “192.168.30.x”

We will then need to create a file called “/etc/ethers”

Paste in the MAC Address and the internal IP to assign in the format below

macaddress internalip

So if the Mac Address is “5e:04:e5:79:e9:fa” and desired internal IP is “192.168.30.145” It would look like the below.

Install Softether Vpn Client On Linux Windows 7

This Mac address is autogenerated by the VPN client in most cases and can be manually specified or changed in most OS’s. Once you have this assigned and saved. We need to reload the systemctl daemon via the below command sequence and restart the VPN service.

Once that is done and you have connected again check to ensure its assigning this internal IP each time from this device. If that is good then we can move onto the next step which is opening the desired ports.

The $ClientInternalIP and $port will need to be filled in and then appended to the /root/softetheriptables.sh file so the rule/s are added on start/stop/reboot of the softethervpn service automatically. Once the rules are added the bash script can be run to add the new rules to IPtables and then the port checked by starting the app that is listening or opening that port and using an online port checker tool like https://portchecker.co/

Install softether vpn client on linux mac

Then check Iptables

It will show that its forwarded in the Iptables like the below example if executed properly.

Well we hope you enjoyed the tutorial. If your looking for a quality KVM VPS to run your own VPN server or other hosting needs we offer Proxmox SSD based VPS’s in amsterdam with excellent peering Ipv4/Ipv6 support at amazing prices. See our lineup here