-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2005-11-08 at 01:06 +0100, I wrote:
I have observed that, sometimes, when the modem connection goes down, the pppd daemon doesn't always call ip-down -
This is a failure log; the sequence is: 11:15:58 - pppd decides to terminate the connection due to lack of activity. - calls script /etc/ppp/ip-down 11:15:58 - script ip-down reports entry 11:16:03 - script ip-down reports modyfing firewall settings 11:16:03 - pppd sends SIGTERM to ip-down, killing it before it can do its job. 11:19:04 - I notice it and manually call ip-kill to clean up. Why does pppd decide to kill ip-down? ip-down had no chance to do all its jobs. The log itself is this: Nov 10 11:15:58 nimrodel pppd[20671]: Terminating connection due to lack of activity. Nov 10 11:15:58 nimrodel pppd[20671]: Connect time 5.1 minutes. Nov 10 11:15:58 nimrodel pppd[20671]: Sent 63619 bytes, received 485374 bytes. Nov 10 11:15:58 nimrodel pppd[20671]: Script /etc/ppp/ip-down started (pid 22743) Nov 10 11:15:58 nimrodel pppd[20671]: sent [LCP TermReq id=0x6 "Link inactive"] Nov 10 11:15:58 nimrodel pppd[20671]: rcvd [LCP TermAck id=0x6] Nov 10 11:15:58 nimrodel pppd[20671]: Connection terminated. Nov 10 11:15:58 nimrodel pppd[20671]: Waiting for 1 child processes... Nov 10 11:15:58 nimrodel pppd[20671]: script /etc/ppp/ip-down, pid 22743 Nov 10 11:15:58 nimrodel ip-down: -> Entrando a /etc/ppp/ip-down - ppp0 /dev/ttyS1 115200 L: 81.41.201.228 R: 80.58.197.105 Prm: Nov 10 11:15:59 nimrodel snort: pcap_loop: recvfrom: Network is down Nov 10 11:16:03 nimrodel ip-down: SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled Nov 10 11:16:03 nimrodel pppd[20671]: sending SIGTERM to process 22743 Nov 10 11:16:03 nimrodel pppd[20671]: Exit. --> Terminating connection due to lack of activity. --> Connect time 5.1 minutes. --> Script /etc/ppp/ip-down started --> Terminate Request (Message: "Link inactive" ) --> Disconnecting at Thu Nov 10 11:16:04 2005 Nov 10 11:19:04 nimrodel ip-kill: --> Manual kill (fetchmail, fetchnews, binkd). This is a normal log, for comparison: Nov 10 11:26:08 nimrodel pppd[23408]: Terminating on signal 15 Nov 10 11:26:08 nimrodel pppd[23408]: Connect time 6.5 minutes. Nov 10 11:26:08 nimrodel pppd[23408]: Sent 146728 bytes, received 622066 bytes. Nov 10 11:26:08 nimrodel pppd[23408]: Script /etc/ppp/ip-down started (pid 24384) Nov 10 11:26:08 nimrodel pppd[23408]: sent [LCP TermReq id=0x6 "User request"] Nov 10 11:26:08 nimrodel ip-down: -> Entrando a /etc/ppp/ip-down - ppp0 /dev/ttyS1 115200 L: 81.41.198.184 R: 80.58.197.102 Prm: Nov 10 11:26:08 nimrodel snort: pcap_loop: recvfrom: Network is down Nov 10 11:26:08 nimrodel ip-down: SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled Nov 10 11:26:10 nimrodel ip-down: -> Saliendo de /etc/ppp/ip-down - ppp0 /dev/ttyS1 115200 L: 81.41.198.184 R: 80.58.197.102 Prm: Nov 10 11:26:10 nimrodel ip-down.local: -> Llamando a /etc/ppp/ip-down.local ppp0 /dev/ttyS1 115200 L: 81.41.198.184 R: 80.58.197.102 Prm: Nov 10 11:26:10 nimrodel fetchmail[24043]: terminated with signal 15 Nov 10 11:26:16 nimrodel ip-down.local: --> Down ppp0 Recvd/Snt: 622066/146728 in 387 S. Nov 10 11:26:16 nimrodel ip-down.local: -> Saliendo de /etc/ppp/ip-down.local - ppp0 /dev/ttyS1 115200 L: 81.41.198.184 R: 80.58.197.102 Prm: It is seen there the entry and exit points to ip-down. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDc+PdtTMYHG2NR9URAi41AJ4luPkwv6dgjX1x+xXdpfGxvV4GtgCcDU1a +Qg7onK17YLK0EcUhPsbfi4= =8Fs8 -----END PGP SIGNATURE-----