UT-VPN導入

UT-VPNをさくらのVPSに導入してみました。

ダウンロード

# wget "https://utvpn.tsukuba.ac.jp/files/utvpn/v1.01-7101-public-2010.06.27/Source%20Code%20(Win32%20and%20Unix)/utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz"

解凍

# tar zxf utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz
# cd utvpn-unix-v101-7101-public/

設定ファイル作成

# ./configure
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):2
Makefile is generated. Please execute 'make' to build UT-VPN.

make

# make
gcc -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -DCPU_64 -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char -m64 -c src/Mayaqua/Cfg.c -o tmp/objs/Mayaqua/Cfg.o
src/Mayaqua/Cfg.c:90 から include されたファイル中:
./src/Mayaqua/Mayaqua.h:219:31: error: readline/readline.h: そのようなファイルやディレクトリはありません
./src/Mayaqua/Mayaqua.h:220:30: error: readline/history.h: そのようなファイルやディレクトリはありません
make: *** [tmp/objs/Mayaqua/Cfg.o] エラー 1

失敗

必要なパッケージをインストール

# yum -y install readline-devel ncurses-devel openssl-debel

再度、make

# make
.....
/usr/bin/ld: cannot find -lssl
collect2: ld はステータス 1 で終了しました
make: *** [output/ham/ham] エラー 1

またもや失敗、さらに必要なパッケージをインストール

# yum install xmlsec1-openssl-devel.x86_64
# make

成功

インストール

# make install
--------------------------------------------------------------------
Installation completed successfully.

Please execute 'utvpnserver start' to run UT-VPN Server Background Service.
Or please execute 'utvpnclient start' to run UT-VPN Client Background Service.
And please execute 'utvpncmd' to run UT-VPN Command-Line Utility to configure UT-Server or UT-VPN Client.
--------------------------------------------------------------------

後は、管理ツールから設定

続きは、編集中!

タイトルとURLをコピーしました