Date: Thu, 10 Jan 2002 04:26:06 +0000 From: Brian Somers <brian@freebsd-services.com> To: "Joe & Fhe Barbish" <barbish@a1poweruser.com> Cc: "Brian Somers" <brian@freebsd-services.com>, "FBSD Questions" <questions@FreeBSD.ORG>, brian@freebsd-services.com Subject: Re: How to setup dialin to server and them callback orginal dialin caller Message-ID: <200201100426.g0A4Q6S24964@hak.lan.Awfulhak.org> In-Reply-To: Message from "Joe & Fhe Barbish" <barbish@a1poweruser.com> of "Wed, 09 Jan 2002 23:14:06 EST." <LPBBIGIAAKKEOEJOLEGOGEOMCLAA.barbish@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@freebsd-services.com> <brian@Awfulhak.org>
http://www.freebsd-services.com/ <brian@[uk.]FreeBSD.org>
Don't _EVER_ lose your sense of humour ! <brian@[uk.]OpenBSD.org>
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201100426.g0A4Q6S24964>
