Thursday, August 3, 2017

Install EtherVPN on Ubuntu Server 16.04 LTS

http://www.softether-download.com/en.aspx?product=softether


wget http://www.softether-download.com/files/softether/v4.22-9634-beta-2016.11.27-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz


su -

apt-get install make gcc zlibc tar gzip openssl libreadline6 ncurses-bin ncurses-base ncurses-term libncurses5 libpthread-workqueue0

tar xzvf softether-vpnserver-v4.22-9634-beta-2016.11.27-linux-x64-64bit.tar.gz

cd vpnserver/
make
1
1
1

cd ~
mv vpnserver /usr/local
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpncmd
chmod 700 vpnserver

./vpncmd
3
check
exit

cd /etc/init.d/
vi vpnserver

#!/bin/sh

### BEGIN INIT INFO
# Provides:        vpnserver
# Required-Start:  $network
# Required-Stop:   $network
# Default-Start:   2 3 4 5
# Default-Stop:    1
# Short-Description: SoftEther VPN Server
### END INIT INFO

DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0

chmod 755 /etc/init.d/vpnserver

update-rc.d vpnserver defaults
update-rc.d vpnserver enable



PS: Remember to enable Secure NAT/Virtual DHCP in order for VPN to work

No comments:

Post a Comment