Date: Sun, 04 Mar 2001 00:05:42 +0100 From: Alexander.Farber@t-online.de (Alexander Farber) To: freebsd-isdn@freebsd.org Subject: Off-topic: Where does the output of /etc/ppp/ppp.linkup go? Message-ID: <3AA178C6.B43D62D9@t-online.de>
next in thread | raw e-mail | index | archive | help
Hi, I am using i4b with OpenBSD 2.8 "beta" and I am very thankful to Hellmuth and other i4b-contributors for that. I have however this question, maybe someone can answer: For debugging purposes (I have problems here setting a gateway) I would like to print some messages after the ppp-connection has been established. So I've put the following lines into the /etc/ppp/ppp.linkup file: tonline: ! echo BEFORE: my=MYADDR his=HISADDR if=INTERFACE >> /home/alex/ppp.txt ! /usr/bin/netstat -rn -I fxp0 >> /home/alex/ppp.txt ! /usr/bin/netstat -rn -I tun0 >> /home/alex/ppp.txt ! /sbin/ipf -Fa -f /etc/ipf.rules ! /sbin/ipnat -CF -f /etc/ipnat.rules ! /home/alex/ipcheck/ipcheck.py -d /home/alex/ipcheck --syslog -i tun0 xxx xxx xxx.dyndns.org ! echo AFTER: my=MYADDR his=HISADDR if=INTERFACE >> /home/alex/ppp.txt ! /usr/bin/netstat -rn -I fxp0 >> /home/alex/ppp.txt ! /usr/bin/netstat -rn -I tun0 >> /home/alex/ppp.txt The connection is being established and works fine, but I don't see any output from echo and netstat and there is no /home/alex/ppp.txt file created. I see however the output of ipcheck.py in /var/log/messages Here is my /etc/ppp/ppp.conf file: default: set device /dev/i4brbch0 set speed sync set login set hangup add! default HISADDR tonline: set authname xxx set authkey xxx set phone 0191011 And here is what I see in the /var/log/messages: Mar 3 23:43:02 pref ipcheck: opt_directory set to /home/alex/ipcheck/ Mar 3 23:43:02 pref ipcheck: opt_interface set to tun0 Mar 3 23:43:02 pref ipcheck: opt_username = afarber Mar 3 23:43:02 pref ipcheck: opt_password = ****** Mar 3 23:43:02 pref ipcheck: opt_hostnames = pref.dyndns.org Mar 3 23:43:02 pref ipcheck: interface ip detection for localip Mar 3 23:43:02 pref ipcheck: Good, no ipcheck.err file. Mar 3 23:43:02 pref ipcheck: Good, no ipcheck.wait file. Mar 3 23:43:02 pref ipcheck: Updates required by ipcheck.dat address mismatch. Mar 3 23:43:02 pref ipcheck: pref.dyndns.org needs updating Mar 3 23:43:02 pref ipcheck: Prefix = /nic/update?system=dyndns&hostname= Mar 3 23:43:02 pref ipcheck: Hosts = pref.dyndns.org Mar 3 23:43:02 pref ipcheck: Suffix = &myip=217.0.136.157&wildcard=OFF&backmx=NO Mar 3 23:45:04 pref ipcheck: http code = 200 Mar 3 23:45:04 pref ipcheck: http msg = OK Mar 3 23:45:04 pref ipcheck: ipcheck.html file created Mar 3 23:45:04 pref ipcheck: pref.dyndns.org good 217.0.136.157 -update successful Mar 3 23:45:04 pref ipcheck: ipcheck.dat file created. and in /var/log/ppp.log Mar 3 23:42:21 pref ppp[2052]: Phase: Using interface: tun0 Mar 3 23:42:21 pref ppp[2052]: Phase: deflink: Created in closed state Mar 3 23:42:21 pref ppp[20203]: Phase: PPP Started (ddial mode). Mar 3 23:42:21 pref ppp[20203]: Phase: bundle: Establish Mar 3 23:42:21 pref ppp[20203]: Phase: deflink: closed -> opening Mar 3 23:42:21 pref ppp[20203]: Phase: deflink: Connected! Mar 3 23:42:21 pref ppp[20203]: Phase: deflink: opening -> dial Mar 3 23:42:21 pref ppp[20203]: Phase: deflink: dial -> carrier Mar 3 23:42:22 pref ppp[20203]: Phase: deflink: /dev/i4brbch0: CD detected Mar 3 23:42:22 pref ppp[20203]: Phase: deflink: carrier -> login Mar 3 23:42:22 pref ppp[20203]: Phase: deflink: login -> lcp Mar 3 23:42:23 pref ppp[20203]: Phase: bundle: Authenticate Mar 3 23:42:23 pref ppp[20203]: Phase: deflink: his = PAP, mine = none Mar 3 23:42:23 pref ppp[20203]: Phase: Pap Output: xxxxxx ******** Mar 3 23:42:23 pref ppp[20203]: Phase: Pap Input: SUCCESS () Mar 3 23:42:23 pref ppp[20203]: Phase: deflink: lcp -> open Mar 3 23:42:23 pref ppp[20203]: Phase: bundle: Network Regards Alex -- http://home.t-online.de/home/Alexander.Farber/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3AA178C6.B43D62D9>