Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Advertise on
Install SoftEther VPN on Debian 7 (L2TP)
New on LowEndTalk? Please read our 'Community Rules' by clicking on it in the right menu!

Install SoftEther VPN on Debian 7 (L2TP)

rmlhhdrmlhhd Member, Provider

This tutorial is to show you how to install a SoftEther VPN on Debian 7.

In order for this to work correctly you will need to follow these instructions.

You need to be running Debian 7 32bit or 64bit for this to work.

First you’ll need to make sure you have the correct packages required for the software to run, you can do this by running:

apt-get update -y && apt-get upgrade -y
apt-get install build-essentials g++ gcc make nano

So now we’ve got the required packages we need SoftEther, you can download this by running:

64bit -


32bit -


So now we have the files you need to extract and compile them, you can do this by running (You’ll be asked to accept the terms and conditions when running make, this can be done by entering the number 1 and pressing enter):

tar zxf softether.tar.gz

cd vpnserver


Now it’s compiled you need to move it to a more suitable location and change the file permissions, you can do this by running:

cd ..

mv vpnserver /usr/local

cd /usr/local/vpnserver

chmod 600 *

chmod 700 vpncmd

chmod 700 vpnserver

So that’s done, now to create the startup script so that it starts on boot, you can do this by running:

nano /etc/init.d/vpnserver

You need to add the following config to that file:

# Provides:          vpnserver
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable Softether by daemon.
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

Now to enable the service:

chmod 755 /etc/init.d/vpnserver

mkdir /var/lock/subsys

update-rc.d vpnserver defaults

/etc/init.d/vpnserver start

cd /usr/local/vpnserver/

That’s the VPN server installed, you just need to set the admin password so we can configure the server, you can set it by running:


You’ve successfully installed SoftEther, now for the configuration.

You need to download the SoftEther Windows Manager, you can find this here:

Once it’s downloaded make sure you install the SoftEther VPN Server Manager (Admin Tools Only)

Open the manager and click new setting.

Now enter your servers IP and the password you set above

Click okay then connect, a screen asking you what type of server you want to setup, select remote access VPN server and click next.

Click yes then enter the desired name for your VPN, when the desired dynamic DNS screen shows click exit. You’ll now see the L2TP setup page.

Select Enable L2TP Server Function (L2TP over IPsec) and Enable L2TP Server Function (Raw L2TP with No Encryptions) and change “vpn” to your desired Pre-Shared key.

Click okay, now select Disable VPN Azure and click okay.

Click Add a User and enter the reinvent details, making sure Password Authentication is selected on Auth Type.

Click Close, select the VPN you created and click Manage Virtual Hub.

Click Virtual NAT and Virtual DHCP Server (Secure NAT) and Enable SecureNAT

That’s it, your SoftEther VPN Server is setup and working.

You can see the original post here -

Sign In or Register to comment.