2012年4月29日日曜日

UT-VPN(クライアント)のインストール

CentOS 5.8(x86)にUT-VPNをインストールする。

・ネットワーク
[root@mickey mickey]# more /etc/sysconfig/network-scripts/ifcfg-eth0
# Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
DEVICE=eth0
#BOOTPROTO=dhcp
BOOTPROTO=static
DHCPCLASS=
#HWADDR=00:0C:29:7A:E5:CC
ONBOOT=yes
TYPE=Ethernet
IPADDR=172.16.20.253
GATEWAY=172.16.20.1
NETMASK=255.255.255.0
NETWORK=172.16.20.0
BROADCAST=172.16.20.255
USERCTL=no
PEERDNS=no
[root@mickey mickey]# more /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
GATEWAY=172.16.20.1
HOSTNAME=mickey.openam.net
[root@mickey mickey]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               localhost.localdomain localhost
172.16.20.253           mickey
172.16.20.253           mickey.openam.net
::1             localhost6.localdomain6 localhost6
[root@mickey mickey]# reboot
[root@mickey mickey]# /sbin/ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0C:29:7A:E5:CC 
          inet addr:172.16.20.253  Bcast:172.16.20.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe7a:e5cc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:5 errors:0 dropped:0 overruns:0 frame:0
          TX packets:121 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:414 (414.0 b)  TX bytes:19236 (18.7 KiB)
          Interrupt:67 Base address:0x2024
・前提パッケージ
http://ftp.iij.ad.jp/pub/linux/centos/5.8/os/i386/CentOS/
readline-devel-5.1-3.el5.i386.rpm
libtermcap-devel-2.0.8-46.1.i386.rpm
openssl-devel-0.9.8e-22.el5.i386.rpm
krb5-devel-1.6.1-70.el5.i386.rpm
zlib-devel-1.2.3-4.el5.i386.rpm
e2fsprogs-devel-1.39-33.el5.i386.rpm
keyutils-libs-devel-1.2-1.el5.i386.rpm
libselinux-devel-1.33.4-5.7.el5.i386.rpm
libsepol-devel-1.15.2-3.el5.i386.rpm
ncurses-devel-5.5-24.20060715.i386.rpm
fonts-japanese-0.20061016-4.el5.noarch.rpm
[root@mickey src]# cp /mnt/hgfs/Desktop/ut-vpn/<ファイル名> /usr/local/src
[root@mickey src]# rpm -i <ファイル名>
warning: <ファイル名>: Header V3 DSA signature: NOKEY, key ID e8562897
[root@mickey src]# fc-cache -fv
[root@mickey src]# vi /etc/sysconfig/i18n
"LANG=en_US.UTF-8"

"LANG=ja_JP.UTF-8"
[root@mickey src]# reboot

・UT-VPN
[root@mickey src]# cp /mnt/hgfs/Desktop/ut-vpn/utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz /usr/local/src
[root@mickey src]# gzip -dc utvpn-src-unix-v101-7101-public-2010.06.27.tar.gz |tar xvf -
[root@mickey 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.
[root@mickey utvpn-unix-v101-7101-public]# make
[root@mickey utvpn-unix-v101-7101-public]# make install

0 件のコメント:

コメントを投稿