From owner-freebsd-questions Wed Feb 14 15:49: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from relay4.inwind.it (relay4.inwind.it [212.141.53.75]) by hub.freebsd.org (Postfix) with ESMTP id 05B9237B491 for ; Wed, 14 Feb 2001 15:48:57 -0800 (PST) Received: from bartequi.ottodomain.org (62.98.170.132) by relay4.inwind.it (5.1.056) id 3A88018C0007B83A; Thu, 15 Feb 2001 00:48:53 +0100 From: Salvo Bartolotta Date: Wed, 14 Feb 2001 23:52:02 GMT Message-ID: <20010214.23520200@bartequi.ottodomain.org> Subject: Re: (longish) CHAP will not work To: "3phase" Cc: References: <001101c0968e$42f74e40$d9a1480c@sisyphus2> X-Mailer: SuperCalifragilis X-Priority: 3 (Normal) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 2/14/01, 2:57:39 PM, "3phase" wrote regarding CHAP will not work: > HELP! PLEASE! > My eyes are about to fall out of my head I've R so many FMs. > CHAP negotiation does not work. PPP makes four or five attempts to > athenticate and then drops the connection after receiving no response.= > The modem lights are flashing so I know my ISP is responding. > I can not log on without CHAP. > Even using a regular terminal program my ISP automatically starts > negotiating CHAP the instant I enter my login name. > FreeBSD 4.0-RELEASE #0: Sat Feb 10 17:38:04 PST 2001 > Dear "3phase", I am running 4.2-S (sources as of February 7, 2001) and right now I am surfing the 'Net after authenticating via the CHAP mechanism. My /etc/ppp.conf looks like:
default: ident user-ppp VERSION (built COMPILATIONDATE) set device /dev/cuaa1 set log Phase Chat Connect LCP IPCP CCP tun command set speed 115200 wind: allow users my_user_1 my_user_2 [...] set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 10 \"\" AT OK-AT-OK ATM0 OK AT+MS=3D56,1,300,44000,1,0 OK \\dATDT\\T TIMEOUT 600 CONNECT" set timeout 1200 deny lqr set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR set phone my_ISP_phone set authname my_authname set authkey my_auth_key
From my ppp.log:
Feb 14 22:06:50 bartequi ppp[61958]: Phase: Using interface: tun0 Feb 14 22:06:50 bartequi ppp[61958]: Phase: deflink: Created in closed state Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: default: set speed 115200 Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set dial ABORT BUSY ABORT NO\sCARRIER TIMEOUT 10 "" AT OK-AT-OK ATM0 OK AT+MS=3D56,1,300,44000,1,0 OK \dATDT\T TIMEOUT 600 CONNECT Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set timeout 1200 Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: deny lqr Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: add default HISADDR Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set phone my_ISP_phone Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set authname my_authname Feb 14 22:06:50 bartequi ppp[61958]: tun0: Command: wind: set authkey my_authkey Feb 14 22:06:50 bartequi ppp[61959]: tun0: Phase: PPP Started (ddial mode). Feb 14 22:06:50 bartequi ppp[61959]: tun0: Phase: bundle: Establish Feb 14 22:06:50 bartequi ppp[61959]: tun0: Phase: deflink: closed -> opening Feb 14 22:06:50 bartequi ppp[61959]: tun0: Phase: deflink: Connected! Feb 14 22:06:50 bartequi ppp[61959]: tun0: Phase: deflink: opening -> dial Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Phone: my_ISP_phone Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Send: AT^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Expect(10): OK Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: AT^M^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: OK^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Send: ATM0^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Expect(10): OK Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: ATM0^M^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: OK^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Send: AT+MS=3D56,1,300,44000,1,0^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Expect(10): OK Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: AT+MS=3D56,1,300,44000,1,0^M^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Received: OK^M Feb 14 22:06:50 bartequi ppp[61959]: tun0: Chat: Send: ATDTmy_ISP_phone^M Feb 14 22:06:52 bartequi ppp[61959]: tun0: Chat: Expect(600): CONNECT Feb 14 22:07:19 bartequi ppp[61959]: tun0: Chat: Received: ATDTmy_ISP_phone^M^M Feb 14 22:07:19 bartequi ppp[61959]: tun0: Chat: Received: CONNECT Feb 14 22:07:19 bartequi ppp[61959]: tun0: Phase: deflink: dial -> carrier Feb 14 22:07:20 bartequi ppp[61959]: tun0: Phase: deflink: /dev/cuaa1: CD detected Feb 14 22:07:20 bartequi ppp[61959]: tun0: Phase: deflink: carrier -> login Feb 14 22:07:20 bartequi ppp[61959]: tun0: Phase: deflink: login -> lcp Feb 14 22:07:20 bartequi ppp[61959]: tun0: LCP: FSM: Using "deflink" as a transport Feb 14 22:07:20 bartequi ppp[61959]: tun0: LCP: deflink: State change Initial --> Closed Feb 14 22:07:20 bartequi ppp[61959]: tun0: LCP: deflink: State change Closed --> Stopped Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: deflink: LayerStart Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: deflink: SendConfigReq(1) state =3D Stopped Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x00000000 Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: MRU[4] 1500 Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x042e26b7 Feb 14 22:07:21 bartequi ppp[61959]: tun0: LCP: deflink: State change Stopped --> Req-Sent Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: deflink: RecvConfigReq(64) state =3D Req-Sent Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x000a0000 Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05) Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x41406c13 Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: deflink: SendConfigAck(64) state =3D Req-Sent Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x000a0000 Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05) Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x41406c13 Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:23 bartequi ppp[61959]: tun0: LCP: deflink: State change Req-Sent --> Ack-Sent Feb 14 22:07:23 bartequi ppp[61959]: tun0: Phase: Unexpected chap input - dropped ! Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: SendConfigReq(1) state =3D Ack-Sent Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x00000000 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: MRU[4] 1500 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x042e26b7 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: RecvConfigReq(65) state =3D Ack-Sent Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x000a0000 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05) Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x41407805 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: SendConfigAck(65) state =3D Ack-Sent Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACCMAP[6] 0x000a0000 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: AUTHPROTO[5] 0xc223 (CHAP 0x05) Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: MAGICNUM[6] 0x41407805 Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: PROTOCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: ACFCOMP[2] Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: RecvConfigAck(1) state =3D Ack-Sent Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: State change Ack-Sent --> Opened Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: LayerUp Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: Sending ident magic 042e26b7 text user-ppp 2.3 (built Feb 7 2001) Feb 14 22:07:24 bartequi ppp[61959]: tun0: LCP: deflink: SendIdent(0) state =3D Opened Feb 14 22:07:24 bartequi ppp[61959]: tun0: Phase: bundle: Authenticate Feb 14 22:07:24 bartequi ppp[61959]: tun0: Phase: deflink: his =3D CHAP 0x05, mine =3D none Feb 14 22:07:24 bartequi ppp[61959]: tun0: Phase: Chap Input: CHALLENGE (16 bytes from c-pa61) Feb 14 22:07:24 bartequi ppp[61959]: tun0: Phase: Chap Output: RESPONSE (bartequi) Feb 14 22:07:24 bartequi ppp[61959]: tun0: Phase: Chap Input: SUCCESS
HTH, Salvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message