UT-VPNを使う。

1.Linuxサーバへインストール

■環境

 

■ダウンロード

 

■インストール

$ tar zxvf utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz
$ cd utvpn-unix-v101-7101-public/

$ ./configure
-------------------------------------------------------------
SoftEther UT-VPN for Unix

Copyright (C) 2004-2010 SoftEther Corporation.
Copyright (C) 2004-2010 University of Tsukuba, Japan.
Copyright (C) 2003-2010 Daiyuu Nobori. All Rights Reserved.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundation.
-------------------------------------------------------------

Please select your Operating System below:
 1: Linux
 2: FreeBSD
 3: Solaris
 4: Mac OS X

Which is your operating system (1-4):
1

Please select your CPU Bits below:
 1: 32-bit
 2: 64-bit

Which is the bits of your CPU (1-2):
1

Makefile is generated. Please execute 'make' to build UT-VPN.

 

$ make
$ su
# make install

 

起動スクリプトの作成
# vi /etc/rc.d/init.d/utvpnserver
----------------------------------------------------------
#!/bin/sh
# chkconfig: 2345 99 01
# description: utvpnserver
DAEMON=/usr/bin/utvpnserver
LOCK=/var/lock/subsys/utvpnserver
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
----------------------------------------------------------
※スクリプトの参考にしたサイトhttp://dosmania.dip.jp/~dosmania/blog/2010/09/18/centos5%E3%81%ABut-vpn%E3%82%92%E5%85%A5%E3%82%8C%E3%81%A6%E3%81%BF%E3%82%8B%EF%BC%88%E3%83%A1%E3%83%A2%EF%BC%89/

 

権限付与
# chmod oug +x /etc/rc.d/init.d/utvpnserver

 

以上で、インストールは完了。

写真素材のピクスタ