SoftEther VPN Help?


#1

Version,4.24,Build9651.UNBUNTU 16.04.3.So, I watched the tutorial and did everything without any errors, until “update-rc.d vpnserver defaults” where I get
'Script vpnserver is broken: Incomplete LSB comment. Can someone explain a fix? please and thanks


#2

It seems like the vpnserver init script might be missing or got broken somehow.

In your reply, please include the following:

  • Ubuntu version
  • Script type (Did you get it from GitHub or PasteBin)
  • Include the vpnserver init script. This script should be located in /etc/init.d/.

#3

Unbuntu version 16.04.3. I got the script from pastebin.com/RQF672p0


#4

That isn’t the script itself, that’s what the script will download and execute. The init script itself should be as follows.

#!/bin/sh
# description: SoftEther VPN Server
### BEGIN INIT INFO
# Provides:          vpnserver
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: softether vpnserver
# Description:       softether vpnserver daemon
### 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'

This will go in /etc/init.d/.

For example, it should be saved as /etc/init.d/vpnserver

I assume that perhaps there were some bash elements in your init script if you just copied it from that link. That’s why it wouldn’t work.


#5

ooooooh dang, thanks a lot. I have no idea what I’m doing. My first time , thanks again.


#6

It’s my pleasure. Did this get you up and going?