pppd を使って ppp 接続を行う際に必要なファイルと内容。 ちなみにファイル名の "biglobe" は pppd に渡すオプション。
/etc/ppp/chats/biglobe
ABORT "NO CARRIER" ABORT "ERROR" ABORT "NO DIALTONE" ABORT "BUSY" ABORT "NO ANSWER" "" "at" OK "atz1" OK "atdt<ISP phone number>" CONNECT
/etc/ppp/peers/biglobe
defaultroute noipdefault noauth netmask 255.255.255.0 ipparam biglobe user <user> connect '/usr/sbin/chat -v -f /etc/ppp/chats/biglobe'
/etc/ppp/ip-down
#!/bin/sh # /bin/echo `/bin/date` PPP: IP down: $1 on $2 at $3 b/s from $4 to $5 \ > /dev/console
/etc/ppp/ip-up
#!/bin/sh # case $6 in biglobe) cat > /etc/resolv.conf <<- DELIMITER domain biglobe.ne.jp nameserver 133.205.64.130 nameserver 133.205.16.129 DELIMITER ;; esac /bin/echo `/bin/date` PPP: IP up: $1 on $2 at $3 b/s from $4 to $5 \ > /dev/console case x`/usr/X11R6/bin/xmessage -iconic -title "PPP session" \ -display :0.0 -button OK:0,KILL:0 "PPP: $4 at $3" -print` in xOK) ;; xKILL) kill `cat /var/run/ppp0.pid` ;; x) ;; esac
/etc/ppp/options
tty01 115200 crtscts
/etc/ppp/pap-secrets
<user> * <password> *
ip-up の中で X client を立ちあげる時には -display で display の指定をする。DISPLAY 環境変数は設定されていない。 ここで、ppp の転送量とかを表示する cool な GUI ツールを 立ち上げると、カッコイイ。