VPN In A Box: Lesson 19 - Installing VPN Service Print

  • 5087

In this lesson, we guide you through installing a VPN service using SoftEther on an Ubuntu system. SoftEther is a versatile and powerful VPN solution that supports multiple protocols, including OpenVPN, L2TP/IPSec, SSTP, and its native protocol. Follow along step-by-step to set up your VPN server, ensuring secure and efficient connectivity. By the end of this video, you’ll have a fully installed and operational VPN service tailored to your needs.

###Included Commands
apt-get update && apt-get upgrade
apt-get install lynx -y
lynx http://www.softether-download.com/files/softether/
tar xzvf (file-name
apt-get install build-essential -y
cd vpnserver
cd ..
mv vpnserver /usr/local
cd /usr/local/vpnserver/
chmod 600 *
chmod 700 vpnserver
chmod 700 vpncmd
nano /etc/init.d/vpnserver

###########Initialization script####
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
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

###########End of Initialization script####
chmod 755 /etc/init.d/vpnserver && /etc/init.d/vpnserver start
update-rc.d vpnserver defaults

 

Does this help?

« Back