[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ppp -auto | ppp -ddial
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: ppp -auto | ppp -ddial
- From: brendan_(_at_)_cs_(_dot_)_uchicago_(_dot_)_edu
- Date: Sun, 22 Jul 2001 04:44:16 -0500
so i want to get my openbsd box to nat between a modem and local network.
the dialup service that my isp provides terminates the connection after
three hours. i would like any outgoing packet to bring the link up if
it is not up. i think this is what the -auto option to ppp is supposed
to do. the chat script i have right now works fine to dial in and
authenticate and set the default route. nat works fine. but i am having
trouble with the -auto functionality.
ppp -nat -auto myisp
and it connects, nat works fine, and all the machines on my local network
can access internet hosts. however, after three hours i get kicked off
and no ammount of outbound packets brings the link back up. if i then
ppp ON box> close
after waiting a few seconds, the next outbound packet causes a redial and
brings the link back up.
ppp -nat -ddial myisp
behaves the same way except as soon as i pppctl -> close the connection,
it redials (instead of waiting for the next outbound packet).
does anyone know how i can eliminate the close command from this procedure?
it is as if ppp does not realize the connection is defunct untill i tell it.
here are the relevent files:
set log Phase Chat LCP IPCP CCP tun command
set device /dev/cua00
set speed 115200
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \"\" AT OK-AT-OK \\dATDT\\T TIMEOUT 60 CONNECT"
set phone 1234567
set login "ABORT NO\\sCARRIER TIMEOUT 5 name: myuseraccount word: secret > ppp"
set timeout 9900
set server +3000 pppctlsecret
set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
add default HISADDR
# this behaves the same without the timeout line. i added it to try to
# preempt the disconnection.
Visit your host, monkey.org