Attempting to use pppd for dial-on-demand: the host running pppd is default
gateway for this network and masquerades (using ipchains) for remaining
hosts.  pppd creates a dial-up connection successfully for the *first*
request from another host, but fails thereafter.   

pppd version: 2.3.7-2 
kernel version: 2.2.5-15

options file:

-detach
debug
kdebug 7
lock
modem
10.0.0.1:10.0.0.2
noipdefault
defaultroute
demand
idle 360 
connect /etc/ppp/connect_ixl
ipcp-accept-local
ipcp-accept-remote
disconnect "/usr/sbin/chat -- \d+++\d\c OK ATH0 OK"
asyncmap 0
crtscts

Here are pertinent log entries (ISP account info deleted):

*following successful execution of connect script for first dial-up request:*
. . .
Jun 14 21:35:24 ishtar pppd[643]: Serial connection established.
Jun 14 21:35:24 ishtar pppd[643]: Connect: ppp0 <--> /dev/ttyS2
Jun 14 21:35:25 ishtar pppd[643]: sent [LCP ConfReq id=0x3 <asyncmap 0x0>
<magic 0x2599157c> <pcomp> <accomp>]
Jun 14 21:35:25 ishtar pppd[643]: rcvd [LCP ConfReq id=0x1 <mru 1500>
<asyncmap 0x0> <magic 0xe7905d0d> <pcomp> <accomp>]
Jun 14 21:35:25 ishtar pppd[643]: sent [LCP ConfAck id=0x1 <mru 1500>
<asyncmap 0x0> <magic 0xe7905d0d> <pcomp> <accomp>]
Jun 14 21:35:26 ishtar pppd[643]: rcvd [LCP ConfAck id=0x3 <asyncmap 0x0>
<magic 0x2599157c> <pcomp> <accomp>]
Jun 14 21:35:26 ishtar pppd[643]: sent [IPCP ConfReq id=0x3 <addr
207.15.162.144> <compress VJ 0f 01>]
Jun 14 21:35:27 ishtar pppd[643]: sent [CCP ConfReq id=0x2 <deflate 15>
<deflate(old#) 15> <bsd v1 15>]
Jun 14 21:35:27 ishtar pppd[643]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f
00> <addr 207.15.161.61>]
Jun 14 21:35:27 ishtar pppd[643]: sent [IPCP ConfAck id=0x1 <compress VJ 0f
00> <addr 207.15.161.61>]
Jun 14 21:35:27 ishtar pppd[643]: rcvd [IPCP ConfNak id=0x3 <addr
207.15.162.9>]
Jun 14 21:35:27 ishtar pppd[643]: sent [IPCP ConfReq id=0x4 <addr
207.15.162.9> <compress VJ 0f 01>]
Jun 14 21:35:27 ishtar pppd[643]: rcvd [LCP ProtRej id=0x2 80 fd 01 02 00
0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jun 14 21:35:27 ishtar pppd[643]: rcvd [IPCP ConfAck id=0x4 <addr
207.15.162.9> <compress VJ 0f 01>]
Jun 14 21:35:27 ishtar pppd[643]: Local IP address changed to 207.15.162.9

Jun 14 21:35:27 ishtar pppd[643]: Remote IP address changed to 207.15.161.61
Jun 14 21:35:27 ishtar pppd[643]: sent [IP data] 45 00 00 54 b7 91 00 00 ...
Jun 14 21:35:27 ishtar pppd[643]: Script /etc/ppp/ip-up started; pid = 858
Jun 14 21:35:28 ishtar pppd[643]: Script /etc/ppp/ip-up finished (pid 858),
status = 0x0

*okay, online for a while, then ISP disconnects due to inactivity*

Jun 14 22:00:17 ishtar pppd[643]: Modem hangup
Jun 14 22:00:17 ishtar pppd[643]: Script /etc/ppp/ip-down started; pid = 919
Jun 14 22:00:17 ishtar pppd[643]: Connection terminated.
Jun 14 22:00:17 ishtar pppd[643]: Connect time 24.9 minutes.
Jun 14 22:00:17 ishtar pppd[643]: Sent 161493 bytes, received 175595 bytes.

*now another network request requiring dial-up:*

Jun 14 22:05:43 ishtar pppd[643]: Starting link
Jun 14 22:05:44 ishtar chat[931]: timeout set to 3 seconds
Jun 14 22:05:44 ishtar chat[931]: abort on (\nBUSY\r)
Jun 14 22:05:44 ishtar chat[931]: abort on (\nNO ANSWER\r)
Jun 14 22:05:44 ishtar chat[931]: abort on (\nRINGING\r\n\r\nRINGING\r)
Jun 14 22:05:44 ishtar chat[931]: send (rATS6=8^M)
Jun 14 22:05:45 ishtar chat[931]: expect (OK)
Jun 14 22:05:45 ishtar chat[931]: rATS6=8^M^M
Jun 14 22:05:45 ishtar chat[931]: OK
Jun 14 22:05:45 ishtar chat[931]:  -- got it 
Jun 14 22:05:45 ishtar chat[931]: send (ATH0^M)
Jun 14 22:05:45 ishtar chat[931]: timeout set to 30 seconds
Jun 14 22:05:45 ishtar chat[931]: expect (OK)
Jun 14 22:05:45 ishtar chat[931]: ^M
Jun 14 22:05:45 ishtar chat[931]: ATH0^M^M
Jun 14 22:05:45 ishtar chat[931]: OK
Jun 14 22:05:45 ishtar chat[931]:  -- got it 
Jun 14 22:05:45 ishtar chat[931]: send (ATDT<number>^M)
Jun 14 22:05:45 ishtar chat[931]: expect (CONNECT)
Jun 14 22:05:45 ishtar chat[931]: ^M
Jun 14 22:06:01 ishtar chat[931]: ATDT<number>^M^M
Jun 14 22:06:01 ishtar chat[931]: CONNECT
Jun 14 22:06:01 ishtar chat[931]:  -- got it 
Jun 14 22:06:01 ishtar chat[931]: send (^M)
Jun 14 22:06:01 ishtar chat[931]: expect (ogin:)
Jun 14 22:06:01 ishtar chat[931]:  9600/ARQ/V34/LAPM/V42BIS^M
Jun 14 22:06:03 ishtar chat[931]: ^M
Jun 14 22:06:03 ishtar chat[931]: login:
Jun 14 22:06:03 ishtar chat[931]:  -- got it 
Jun 14 22:06:03 ishtar chat[931]: send (<name>^M)
Jun 14 22:06:03 ishtar chat[931]: expect (assword:)
Jun 14 22:06:03 ishtar chat[931]:  <name>^M
Jun 14 22:06:03 ishtar chat[931]: Password:
Jun 14 22:06:03 ishtar chat[931]:  -- got it 
Jun 14 22:06:03 ishtar chat[931]: send (<password>^M)
Jun 14 22:06:03 ishtar pppd[643]: Serial connection established.
Jun 14 22:06:03 ishtar pppd[643]: Connect: ppp0 <--> /dev/ttyS2
Jun 14 22:06:03 ishtar pppd[643]: sent [LCP ConfReq id=0x4 <asyncmap 0x0>
<magic 0x29c1a9f4> <pcomp> <accomp>]
Jun 14 22:06:06 ishtar pppd[643]: sent [LCP ConfReq id=0x4 <asyncmap 0x0>
<magic 0x29c1a9f4> <pcomp> <accomp>]

*and it blows up here:*


Jun 14 22:06:06 ishtar pppd[643]: write: warning: Input/output error (5)
Jun 14 22:06:06 ishtar pppd[643]: Modem hangup
Jun 14 22:06:06 ishtar pppd[643]: Connection terminated.
Jun 14 22:06:06 ishtar pppd[643]: Script /etc/ppp/ip-down finished (pid
919), status = 0x0
Jun 14 22:06:06 ishtar pppd[643]: Connect time 0.1 minutes.
Jun 14 22:06:06 ishtar pppd[643]: Sent 161493 bytes, received 175595 bytes.

Any suggestions?  (Other than "why don't you try diald?")  TIA




--
Greg Carmack  [EMAIL PROTECTED]
pager: 1-800-921-4674
PGP key: http://www.anthrasite.com/CarmackPUBKEY.txt

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to