# /etc/ppp/ppp.conf
default:
set device PPPoE:ed0
set mru 1454
set mtu 1454
set log Phase tun command
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0
enable tcpmssfixup
wakwak:
add default HISADDR
set authname プロバイダ接続用ID
set authkey プロバイダ接続用キー
flets:
set timeout 600
add 172.16.0.0/12 HISADDR
set authname guest@flets
set authkey guest
|
図3. ppp.conf の内容 |
---|
|
#!/bin/sh
# /usr/local/etc/rc.d/flets-ppp.sh
IF=tun1
case $1 in
start)
echo -n " flets-ppp"
/usr/sbin/ppp -quiet -auto flets
;;
stop)
if [ -f /var/run/$IF.pid ]; then
kill `cat /var/run/$IF.pid`
fi
;;
*)
echo "usage: $0 {start}" 1>&2
;;
esac
exit 0;
|
図4. フレッツ・スクエア用ppp起動スクリプト |
---|
|