利用しているOS は FreeBSD 4.7-RELEASE
ports に用意されている pptpclient を利用します。
% su # cd /usr/ports/net/pptpclient # make install && make clean
/etc/ppp/ppp.conf に以下を追加
pptpc: set authname <ユーザ名> set authkey <パスワード> set timeout 0 set ifaddr 0 0 add 192.168.1.0/24 HISADDR
PPTPサーバ名が、vpn.foo.bar とすると、以下のようにして接続します。
# /usr/local/sbin/pptp vpn.foo.bar pptpc &
fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 inet6 fe80::xxxx:xxff:fexx:xxxx%fxp0 prefixlen 64 scopeid 0x1 ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect (100baseTX <full-duplex>) status: active fxp1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet6 fe80::xxxx:xxff:fexx:xxxx%fxp1 prefixlen 64 scopeid 0x2 ether xx:xx:xx:xx:xx:xx media: Ethernet autoselect (100baseTX <full-duplex>) status: active lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff000000 tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1452 inet 218.228.xxx.xxx --> 218.228.yyy.yyy netmask 0xffffffff Opened by PID xxx tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1448 inet 192.168.1.100 --> 192.168.1.1 netmask 0xffffffff Opened by PID yyy
Copyright© All rights reserved. Junkie 2002
Last Update 2002.10.28