SoftEtherVPNをEC2にインストールする

ひとまずインストールまで

yum -y groupinstall "Development Tools"
yum -y install readline-devel ncurses-devel openssl-devel

cd /tmp
wget http://jp.softether-download.com/files/softether/v4.10-9473-beta-2014.07.12-tree/Source_Code/softether-src-v4.10-9473-beta.tar.gz
tar zxvf softether-src-v4.10-9473-beta.tar.gz
cd v4.10-9473
./configure
make
make install

vim /etc/init.d/vpnserver
---
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/bin/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
---

service vpnserver start
chkconfig vpnserver on