From owner-freebsd-questions Wed Jan 9 21:34: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.mango-bay.com (mail.mango-bay.com [208.206.15.12]) by hub.freebsd.org (Postfix) with ESMTP id A1EF237B402 for ; Wed, 9 Jan 2002 21:34:00 -0800 (PST) Received: from barbish ([63.70.155.104]) by mail.mango-bay.com (Post.Office MTA v3.5.3 release 223 ID# 0-52377U2500L250S0V35) with SMTP id com; Thu, 10 Jan 2002 00:36:43 -0500 From: "Joe & Fhe Barbish" To: "Brian Somers" Cc: "FBSD Questions" Subject: RE: How to setup dialin to server and them callback orginal dialin caller Date: Thu, 10 Jan 2002 00:33:56 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <200201100426.g0A4Q6S24964@hak.lan.Awfulhak.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Brian OK so I leave every thing the way it is but change the incoming section like this. incoming: allow users barbish bob enable pap accept dns set ifaddr 10.0.0.1 10.0.0.74 255.255.255.255 set callback cbcp set cbcp set log +cbcp set redial 3 1 set device /dev/cuaa2 /dev/cuaa1 set speed 115200 set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT" Now I need to understand the flow of things. When the win98 box calls the dialin modem on the FBSD box, getty senses & answers the call, makes the connection, tells the winbox it wants pap and asks for id/pw, whatever is entered is checked against ppp.secret, at a match ppp sees the callback phone number and hangs up the phone. Now the modem that just answered the inbound call is free to dial out using the callback phone number from ppp.secert. On the winbox when FBSD hung up the dial window jumped up and asked if the user wants to dial again. The user should just close the dialer window. The modem on the winbox must already have the ats=1 turned on for auto answer. FBSD does it's callback and the modem on the winbox picks up. FBSD does not request pap logon again or anything. The winbox is all ready logged on from the first call in. If this is not how it works then please explain the correct flow of events. Thanks Joe -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Brian Somers Sent: Wednesday, January 09, 2002 11:26 PM To: Joe & Fhe Barbish Cc: Brian Somers; FBSD Questions; brian@freebsd-services.com Subject: Re: How to setup dialin to server and them callback orginal dialin caller > Brian > I did like you said and ran a test. I dialed in ok like > always but the callback did not happen. To get right to > the point of making it function, you need to see what I > have configured. To that ends I have included my ppp.conf > and ppp.secret files with a ppp.log from my last test. > Please give it a once over and see if you can identify > what's wrong? Cuua2 is the dial in and callback device. > My ppp.conf is heavyly commented for the jr people who work > for me supporting this work enviroment. > > Thanks Joe [.....] > ppp.log of the test > > Jan 9 22:55:52 gateway ppp[378]: Phase: Using interface: tun0 > Jan 9 22:55:52 gateway ppp[378]: Phase: deflink: Created in closed state > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: default: set speed 115200 > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: default: set timeout 0 > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: default: disable pred1 > deflate lqr > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: default: deny pred1 deflate > lqr > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: incoming: enable pap > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: incoming: accept dns > Jan 9 22:55:52 gateway ppp[378]: tun0: Command: incoming: set ifaddr > 10.0.0.1 10.0.0.74 255.255.255.255 [.....] You're invoking ppp with the incoming profile rather than with the callback-server profile. You should run ppp -direct callback-server from the ppplogin script. The callback-server profile should also have a better ``set dial'' command - perhaps the one from your dialisp profile. The current set dial will only wait 10 seconds for CONNECT. The callback-server profile's first line is ``load''ing an non-existent profile. I suspect it should say ``load incoming'' so that it does things like ``allow users'' and ``set ifaddr'' etc. [.....] > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: deflink: RecvConfigReq(2) state > = Req-Sent > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: ACCMAP[6] 0x000a0000 > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: MAGICNUM[6] 0x0336d0d8 > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: PROTOCOMP[2] > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: ACFCOMP[2] > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: CALLBACK[3] CBCP > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: deflink: SendConfigRej(2) state > = Req-Sent > Jan 9 22:55:55 gateway ppp[378]: tun0: LCP: CALLBACK[3] CBCP [.....] This is the bit that goes wrong - ppp rejects the callback request because it hasn't seen a ``set callback'' line.... Cheers. -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message