Urban, I installed your patch, the callback seems to work now! Actually my situation was a little bit different. The client and server agreed on the AdminDefined, but the server never closed the connection in order to initiate a callback. With your 2 line patch, this problem is solved. Unfortunately the IPCP negotiation phase in the Callback PPP dialogue is not successful, but I have the feeling that I am almost there. I'll enclose my PPP configuration files below and the debug output, anybody has an idea what is going wrong ? (linux 2.1.35 pppd 2.3.5, external ISDN adapter on com4 via a 16550A). I marked the point where IPCP fails with "HERE IPCP FAILS" Wessel Kraaij $ cat ppp-on #!/bin/sh # # Script to initiate a ppp connection. This is the first part of the # pair of scripts. This is not a secure pair of scripts as the codes # are visible with the 'ps' command. However, it is simple. # # These are the parameters. Change as needed. TELEPHONE=0152692878 # The telephone number for the connection LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0 REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0 NETMASK=255.255.255.0 # The proper netmask if needed # # Export them so that they will be available at 'ppp-on-dialer' time. export TELEPHONE # # This is the location of the script which dials the phone and logs # in. Please use the absolute file name as the $PATH variable is not # used on the connect option. (To do so on a 'root' account would be # a security hole so don't ask.) # DIALER_SCRIPT=/etc/ppp/ppp-on-dialer DIALER_SCRIPT2=/etc/ppp/ppp-on-cb # # Initiate the connection # # I put most of the common options on this command. Please, don't # forget the 'lock' option or some programs such as mgetty will not # work. The asyncmap and escape will permit the PPP link to work with # a telnet or rlogin connection. You are welcome to make any changes # as desired. Don't use the 'defaultroute' option if you currently # have a default route to an ethernet gateway. # /sbin/pppd debug callback 0104045655 lock modem crtscts /dev/ttyS3 115200 \ connect $DIALER_SCRIPT /sbin/pppd debug lock modem crtscts /dev/ttyS3 38400 \ connect $DIALER_SCRIPT2 $ cat /etc/ppp/options # /etc/ppp/options (NO PAP/CHAP) # # Prevent pppd from forking into the background -detach # # use the modem control lines modem # use uucp style locks to ensure exclusive access to the serial device lock # use hardware flow control crtscts # create a default route for this connection in the routing table defaultroute # do NOT set up any "escaped" control sequences asyncmap 0 # use a maximum transmission packet size of 552 bytes #mtu 552 # use a maximum receive packet size of 552 bytes #mru 552 # #-------END OF SAMPLE /etc/ppp/options (no PAP/CHAP) # # force pppd to use your ISP user name as your 'host name' during the # authentication process name kraaij # you need to edit this line #auth user kraaij #remotename tpdascend DEBUG output: (initial chat output deleted, this is the dial in phase) Mar 2 21:23:34 luna pppd[316]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <callback 0x605> 06 f4 65 02 01 07 02 08 02 00] Mar 2 21:23:37 luna pppd[316]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <callback 0x605> 06 f4 65 02 01 07 02 08 02 00] Mar 2 21:23:37 luna pppd[316]: rcvd [LCP ConfReq id=0x1 < 00 04 00 00> <mru 1524> <auth pap> < 11 04 05 f4> < 13 09 03 00 c0 7b 73 0d 3c>] Mar 2 21:23:37 luna pppd[316]: sent [LCP ConfRej id=0x1 < 00 04 00 00> < 11 04 05 f4> < 13 09 03 00 c0 7b 73 0d 3c> ] Mar 2 21:23:37 luna pppd[316]: rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] Mar 2 21:23:37 luna pppd[316]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <callback 0x605> 06 f4 65 02 01 0d] Mar 2 21:23:37 luna pppd[316]: rcvd [LCP ConfReq id=0x2 <mru 1524> <auth pap>] Mar 2 21:23:37 luna pppd[316]: sent [LCP ConfAck id=0x2 <mru 1524> <auth pap>] Mar 2 21:23:37 luna pppd[316]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <callback 0x605> 06 f4 65 02 01 0d] Mar 2 21:23:37 luna pppd[316]: cbcp_lowerup Mar 2 21:23:37 luna pppd[316]: want: 14 Mar 2 21:23:37 luna pppd[316]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access Mar 2 21:23:37 luna pppd[316]: sent [PAP AuthReq id=0x1 user="<user>" password="<passwd>"] Mar 2 21:23:37 luna pppd[316]: rcvd [PAP AuthAck id=0x1 ""] Mar 2 21:23:37 luna pppd[316]: Remote message: Mar 2 21:23:37 luna pppd[316]: cbcp_open Mar 2 21:23:37 luna pppd[316]: rcvd [CBCP Request id=0x1 < AdminDefined delay = 0>] Mar 2 21:23:37 luna pppd[316]: length: 3 Mar 2 21:23:37 luna pppd[316]: user admin defined allowed Mar 2 21:23:37 luna pppd[316]: cbcp_resp cb_type=8 Mar 2 21:23:37 luna pppd[316]: cbcp_resp CONF_ADMIN Mar 2 21:23:37 luna pppd[316]: sent [CBCP Response id=0x1 < AdminDefined delay = 5>] Mar 2 21:23:37 luna pppd[316]: rcvd [CBCP Ack id=0x1 < AdminDefined delay = 5>] Mar 2 21:23:37 luna pppd[316]: sent [LCP TermReq id=0x3 "Call me back, please"] Mar 2 21:23:37 luna pppd[316]: rcvd [LCP TermAck id=0x3] Mar 2 21:23:37 luna pppd[316]: Connection terminated. Mar 2 21:23:39 luna pppd[316]: Exit. THIS IS THE DIALBACK PHASE Mar 2 21:23:39 luna pppd[318]: pppd 2.3.5 started by wessel, uid 0 Mar 2 21:23:40 luna chat[319]: timeout set to 120 seconds Mar 2 21:23:40 luna chat[319]: abort on (\nBUSY\r) Mar 2 21:23:40 luna chat[319]: abort on (\nNO CARRIER\r) Mar 2 21:23:40 luna chat[319]: abort on (\nNO DIALTONE\r) Mar 2 21:23:40 luna chat[319]: send (+++ATZ1^M) Mar 2 21:23:40 luna chat[319]: expect (RING) Mar 2 21:23:40 luna chat[319]: CARRIER^M Mar 2 21:23:41 luna chat[319]: +++ATZ1^M^M Mar 2 21:23:41 luna chat[319]: OK^M Mar 2 21:23:47 luna chat[319]: ^M Mar 2 21:23:47 luna chat[319]: RING -- got it Mar 2 21:23:47 luna chat[319]: send (ATA^M) Mar 2 21:23:47 luna chat[319]: expect (CONNECT) Mar 2 21:23:47 luna chat[319]: ^M Mar 2 21:23:48 luna chat[319]: ATA^M^M Mar 2 21:23:48 luna chat[319]: CONNECT -- got it Mar 2 21:23:48 luna chat[319]: send (^M) Mar 2 21:23:48 luna pppd[318]: Serial connection established. Mar 2 21:23:49 luna pppd[318]: Using interface ppp0 Mar 2 21:23:49 luna pppd[318]: Connect: ppp0 <--> /dev/ttyS3 Mar 2 21:23:49 luna pppd[318]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access Mar 2 21:23:49 luna pppd[318]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x13760cc> <pcomp> <accomp>] Mar 2 21:23:50 luna pppd[318]: rcvd [LCP ConfReq id=0x1 <mru 1524>] Mar 2 21:23:50 luna pppd[318]: sent [LCP ConfAck id=0x1 <mru 1524>] Mar 2 21:23:52 luna pppd[318]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x13760cc> <pcomp> <accomp>] Mar 2 21:23:52 luna pppd[318]: rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>] Mar 2 21:23:52 luna pppd[318]: sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x13760cc>] Mar 2 21:23:52 luna pppd[318]: rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x13760cc>] HERE IPCP FAILS!: Mar 2 21:23:52 luna pppd[318]: sent [IPCP ConfReq id=0x1 <addr 198.1.1.1> <compress VJ 0f 01>] Mar 2 21:24:16 luna last message repeated 8 times Mar 2 21:24:16 luna pppd[318]: rcvd [IPCP TermReq id=0x2] Mar 2 21:24:16 luna pppd[318]: sent [IPCP TermAck id=0x2] Mar 2 21:24:16 luna pppd[318]: rcvd [IPCP TermReq id=0x3] Mar 2 21:24:16 luna pppd[318]: sent [IPCP TermAck id=0x3] Mar 2 21:24:17 luna pppd[318]: rcvd [LCP TermReq id=0x2] Mar 2 21:24:17 luna pppd[318]: LCP terminated by peer Mar 2 21:24:17 luna pppd[318]: sent [LCP TermAck id=0x2] Mar 2 21:24:19 luna pppd[318]: Modem hangup Mar 2 21:24:19 luna pppd[318]: Connection terminated. Mar 2 21:24:20 luna pppd[318]: Exit. -----Original Message----- From: Urban Widmark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 02, 1999 3:37 PM To: Kraaij, Wessel Cc: '[EMAIL PROTECTED]' Subject: Re: MS CBCP On Tue, 2 Mar 1999, Kraaij, Wessel wrote: > Did anybody succesfully etablish a PPP connection to an Ascend MAX which is > configured for MS CBCP? I tried pppd 2.3.5 with > The cbcp patch, but without success... User authentication through PAP works > fine, but the server does not close the connection to initiate a callback. I > can supply logs of the LCP protocol negotiations. > Which cbcp patch? The one included with ppp? Are you trying to use AdminDefined callback with a non NT cbcp server? (such as a cisco, oh sorry, I didn't read the Ascend MAX part, might be the same) If you run with debug flag do you get a server and client that seem to agree on AdminDefined, but they keep negotiating (increasing serial no)? If so, you may want to try this (apply in the pppd dir): --- cbcp.c.org Tue Sep 8 18:07:55 1998 +++ cbcp.c Tue Sep 8 18:08:25 1998 @@ -343,10 +343,9 @@ if (cb_type & ( 1 << CB_CONF_ADMIN ) ) { syslog(LOG_DEBUG, "cbcp_resp CONF_ADMIN"); PUTCHAR(CB_CONF_ADMIN, bufp); - len = 3 + 1; + len = 3; PUTCHAR(len , bufp); PUTCHAR(5, bufp); /* delay */ - PUTCHAR(0, bufp); cbcp_send(us, CBCP_RESP, buf, len); return; } Let me know if it works. It does for me. /Urban --- Urban Widmark [EMAIL PROTECTED] Svenska Test AB +46 90 71 71 23 - To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [EMAIL PROTECTED] - To unsubscribe from this list: send the line "unsubscribe linux-ppp" in the body of a message to [EMAIL PROTECTED]
