VTUN INSTALL for Plamo Linux 2.2.1
まず必要なFILEを取得して下さい。
vtun-2.5b1.tar.gz webサイトはhttp://vtun.sourceforge.net/tun/index.html です。
lzo-1.07.tar.gz webサイトは http://www.oberhumer.com/opensource/lzo/ です。
tun-1.1.tar.gz webサイトは http://vtun.sourceforge.net/tun/index.html です。
取得した物を適当なDIRにコピーしましょう!
それではインストール開始です!!
まずlzoをインストールしましょう !
tar vzxf lzo-1.07.tar.gz として解凍します。
DIRが出来てますのでそこにはいりましょう
cd lzo-1.07
./configure
make
make install
次にtun/tapドライバーをインストールしましょう !
tar tun-1.1.tar.gz として解凍します。
DIRが出来てますのでそこにはいりましょう
cd tun-1.1
./configure
make
make install
次にvtunをインストールしましょう !
tar vzxf vtun-2.5b1.tar.gz として解凍します。
DIRが出来てますのでそこにはいりましょう
cd vtun-2.5b1
./configure
make
make install
tun_modulesをロードしましょう
kernel Configで
Config_TUN=y としていれば飛ばして良いですが、
Config_TUN=m としているならば、insmod tun としましょう。
起動時にモジュールを読み込むようにするのもお忘れなく!!
これでインストールは終わりましたPlamo2.2.1はすごく簡単にできます
次はクライアント用のconfファイルを作りましょう
confファイルの場所は /usr/local/etcのvtun.confです。
-------------------------------------------------------------
#
# VTun - Virtual Tunnel over TCP/IP network.
# Copyright (C) 1998-2000 Maxim Krasnyansky <max_mk@yahoo.com>
#
# Cleanup of English and spelling by
# Ted Rolle <ted@acacia.datacomm.com>
#
# Configuration file example
# $Id: vtund.conf,v 1.1.1.2.2.1 2000/10/29 19:30:30 maxk Exp $
#
options {
port 5000; # Connect to this port.
timeout 60; # General timeout
# Path to various programs
ppp /usr/sbin/pppd;
ifconfig /sbin/ifconfig;
route /sbin/route;
firewall /sbin/ipchains;
}
# TUN example. Session 'ji6fpp'.
ji6fpp {
pass ji6fpp123; # Password
comp lzo:9; # LZO compression level 9
encr yes; # Encryption
device tun0; # Device tun0
persist yes; # Persist mode
up {
# Connection is Up
# Assign IP addresses.
ifconfig "%% 10.0.1.2 netmask 255.255.255.0 pointopoint
10.0.1.1";
};
down {
ifconfig "%% 0.0.0.0 0.0.0.0";
};
}
-------------------------------------------------------------
サンプルのconfです。
起動は
vtund ji6fpp xxx.xxxx.xxx.xxx
ji6fpp = Session name
xxx.xxx.xxx.xxx = 接続先のIPアドレス
こんなとこでーーす。
実際の接続にはSession name や passwordが有りますので、
接続先からの情報が必要ですから事前に設定情報を貰ってください。
Copyright (C) 2001-2005 www.ji6fpp.yprc.or.jp , All rights reserved