[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ppp and new users (was: Re: Tecnology and marketing)



On Sat, 28 Mar 1998, Craig Sanders wrote:

> i just thought of something else. as well as the DIR file, could also
> have a SCRIPT file which is a shell script allowing the user to do any
> other customisation. even better, have PREDIAL.sh (to be run before
> dialing) and POSTDIAL.sh (to be run after dialing).  PREHANGUP and
> POSTHANGUP scripts could also be useful.

Already done.  Please search the email archives on debian-devel for "New 
handling of scripts external to PPPD (ie ip-up, ip-down)"

A brief summary.  On my system, there is no ip-up, ip-down, no connect option
in pppd.  It is all done by having pppd shell out, and starting different
runlevels like /etc/init.d and friends.  Current pppd levels are:

pppd_starting
pppd_initializing
pppd_connector
pppd_connected
pppd_online
pppd_offline
pppd_disconnector
pppd_disconnected
pppd_idle
pppd_exiting

Packages can be placed in /etc/ppp/scripts.d, for automated handling when pppd
brings up a link.

This is still a work in progress, so don't get your hopes up just yet.  Here
is a snippet from my ppp.log.

---
Mar 28 05:26:46 adam /etc/ppp/ppp-functions[8741]: pppd_dial
device="/dev/ttyS1" phone="862-4141" server="michnet" account="adam.heath@voyager.net"
Mar 28 05:26:49 adam /etc/ppp/dial.d/S00connector[8746]: Resetting boca28.8_MV34.I on ttyS1
Mar 28 05:26:51 adam /etc/ppp/dial.d/S00connector[8746]: Initializing boca28.8_MV34.I on ttyS1
Mar 28 05:26:52 adam /etc/ppp/dial.d/S00connector[8746]: Dialing "862-4141" with boca28.8_MV34.I on ttyS1.(attempt# 1/unlimited)
Mar 28 05:27:12 adam /etc/ppp/dial.d/S00connector[8746]: ttyS1: CARRIER: 28800
Mar 28 05:27:12 adam /etc/ppp/dial.d/S00connector[8746]: ttyS1: PROTOCOL: LAP-M
Mar 28 05:27:12 adam /etc/ppp/dial.d/S00connector[8746]: ttyS1: COMPRESSION: V.42BIS
Mar 28 05:27:12 adam /etc/ppp/dial.d/S00connector[8746]: ttyS1: CONNECT: 28800/ARQ
Mar 28 05:27:13 adam pppd[3368]: Serial connection established.
Mar 28 05:27:14 adam pppd[3368]: Using interface ppp0
Mar 28 05:27:14 adam pppd[3368]: Connect: ppp0 <--> /dev/ttyS1
Mar 28 05:27:15 adam pppd[3368]: sent [LCP ConfReq id=0x2 <mru 552> <asyncmap 0x0> <magic 0xffffc121> <pcomp> <accomp>]
Mar 28 05:27:15 adam pppd[3368]: rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd1a0e79e> <pcomp> <accomp> <auth pap>]
Mar 28 05:27:15 adam pppd[3368]: sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd1a0e79e> <pcomp> <accomp> <auth pap>]
Mar 28 05:27:18 adam pppd[3368]: sent [LCP ConfReq id=0x2 <mru 552> <asyncmap 0x0> <magic 0xffffc121> <pcomp> <accomp>]
Mar 28 05:27:18 adam pppd[3368]: rcvd [LCP ConfAck id=0x2 <mru 552> <asyncmap 0x0> <magic 0xffffc121> <pcomp> <accomp>]
Mar 28 05:27:18 adam pppd[3368]: sent [PAP AuthReq id=0x2 user="adam.heath@voyager.net" password="*******"]
Mar 28 05:27:19 adam pppd[3368]: rcvd [PAP AuthAck id=0x2 "This session is limited to 2 hours."]
Mar 28 05:27:19 adam pppd[3368]: Remote message: This session is limited to 2 hours.
Mar 28 05:27:19 adam pppd[3368]: sent [IPCP ConfReq id=0x3 <addr 192.168.0.3> <compress VJ 0f 01>]
Mar 28 05:27:19 adam pppd[3368]: sent [CCP ConfReq id=0x2 <deflate 15> <bsd v1 15>]
Mar 28 05:27:19 adam pppd[3368]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 00> <addr 207.73.226.223>]
Mar 28 05:27:19 adam pppd[3368]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 00> <addr 207.73.226.223>]
Mar 28 05:27:19 adam pppd[3368]: rcvd [IPCP ConfNak id=0x3 <addr 207.73.226.246>]
Mar 28 05:27:19 adam pppd[3368]: sent [IPCP ConfReq id=0x4 <addr 207.73.226.246> <compress VJ 0f 01>]
Mar 28 05:27:19 adam pppd[3368]: rcvd [LCP ProtRej id=0x2 80 fd 01 02 00 0b 18 04 78 00 15 03 2f]
Mar 28 05:27:19 adam pppd[3368]: rcvd [IPCP ConfAck id=0x4 <addr 207.73.226.246> <compress VJ 0f 01>]
Mar 28 05:27:20 adam pppd[3368]: local  IP address 207.73.226.246
Mar 28 05:27:20 adam pppd[3368]: remote IP address 207.73.226.223
Mar 28 05:27:21 adam /etc/ppp/online.d/S02pppstats[8910]: START pppstats[8912] tty10 "-r -v -w 1 ppp0"
Mar 28 05:27:21 adam /etc/ppp/online.d/S02pppstats[8910]: START pppstats[8914] tty10 "-a -r -v -w 20 ppp0"
Mar 28 05:27:21 adam /etc/ppp/online.d/S02tcpdump[8916]: START tcpdump[8919] tty11 "-i ppp0"
Mar 28 05:27:28 adam /etc/ppp/online.d/S20fetchmail[8939]: START fetchmail[8941] tty10 "-d 300 --invisible -N -a -B 200"
Mar 28 05:27:28 adam /etc/ppp/online.d/S20mirror[8943]: START mirror[8948] tty22 "-d -d -d -F -pDebian /etc/mirror/packages/ftp.debian.org"
---

Adam



--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: