On Fri, 19 Sep 2003, Jonathan Kelly wrote:

> Hi there,
> 
> I thought I'd make this offering to the God-of-all-technical-knowledge
> that is Slug, because it's very annoying that the windows solution
> "just works" (dammit).
> 
> I'm trying to set up a dialup ppp connection to my ISP (Inspired)
> while my ADSL connection is transfered to my new address. Of course,
> they can't tell me what protocols are used, or any useful information
> about what I need to do as I'm not running RH, and they only know how
> to run the RH setup, which apparently works. There's a whole other
> story there about the evil-ness of Linux-for-dummies approach of RH
> hiding the need to understand how things work ... but I won't go
> there.
> 
> I have the dialing and connection working, but the ISP goes straight
> into some protocol (I'm guessing PAP) without asking for
> username/password, like every other ISP I've ever used.

The old login & password prompt is now considered legacy. A lot of ISP's 
support it because of ancient clients. Nowadays it's almost always PAP 
straight away.

Sounds like you just need to shorten your expect/chat script to exit just 
after 'CONNECT' comes back from the modem.

> 
> here are my ppp options, in /etc/ppp/options ...
>

I'll just tack comments in braces here..

> # General configuration options for PPPD:
> lock
> defaultroute
> noipdefault   {unless your on a fixed IP remove this}
> modem
> /dev/ttyS0
> 115200
> crtscts
> passive       {could be trouble, will just sit there waiting for ISP}
> asyncmap a0000
> usepeerdns
> noauth        {ahem.. you'll need auth on :-) }
> 
> my /etc/pap-secrets and /etc/chap-secrets the same with ...
> 
> #   client          server      secret
> "my-user-name"  *   "my-password"
> 
> I'm guessing this is the problem somehow ... but those are the only
> two bits of information required by Win2K to get the connection
> working. All the PAP and CHAP stuff is voodoo mumbo jumbo to me, I
> mean, what's wrong with usernames and passwords! Sigh.
> 
> and the log of the connection from /var/log/pppd/current ...
> 
> [pppd] Serial connection established.
> [pppd] using channel 1
> [pppd] Using interface ppp0
> [pppd] Connect: ppp0 <--> /dev/ttyS0
> [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x9592 e62b>
> <pcomp> <accomp>]
> [pppd] rcvd [LCP ConfReq id=0xa7 <asyncmap 0xa0000> <auth pap>
        { like I said, use PAP, the ISP's requesting that above }
> <magic0x282e09fa> <pcomp> <accomp> <mrru 1524> <endpoint
> [local:53.59.44.2d.50.4f.50]>]
> [pppd] sent [LCP ConfRej id=0xa7 <auth pap> <mrru1524>]
        {you said you're not doing auth as ISP requested}
> [pppd] rcvd [LCP ConfAck id=0x1 <asyncmap 0xa0000> <magic 0x9592e62b>
> <pcomp> <accomp>]
> [pppd] rcvd [LCP ConfReq id=0xa8 <asyncmap 0xa0000> <auth chap MD5>
        {ISP says hmm OK how about CHAP?}
> <magic 0x282e09fa> <pcomp> <accomp>
> <endpoint[local:53.59.44.2d.50.4f.50]>]
> [pppd] sent [LCP ConfRej id=0xa8 <auth chap MD5>]
        {you say naah}
> [pppd] rcvd [LCP ConfReq id=0xa9 <asyncmap 0xa0000> <auth pap>
        {ISP's being nice and asking for PAP again}
> <magic0x282e09fa> <pcomp> <accomp>
> <endpoint[local:53.59.44.2d.50.4f.50]>]
> [pppd] sent [LCP ConfRej id=0xa9 <auth pap>]
        {you say naah again}
> [pppd] rcvd [LCP ConfReq id=0xaa <asyncmap 0xa0000> <auth chap MD5>
        {ISP says how about CHAP again? - getting the idea :-) }
> <magic 0x282e09fa> <pcomp> <accomp>
> <endpoint[local:53.59.44.2d.50.4f.50]>]
> [pppd] sent [LCP ConfRej id=0xaa <auth chap MD5>]
> [pppd] rcvd [LCP ConfReq id=0xab <asyncmap 0xa0000> <auth pap>
> <magic0x282e09fa> <pcomp> <accomp>
> <endpoint[local:53.59.44.2d.50.4f.50]>]
> [pppd] sent [LCP ConfRej id=0xab <auth pap>]
> [pppd] rcvd [LCP TermReq id=0xac]
        {ISP says, sorry we couldn't work out a deal, bye!}
> [pppd] sent [LCP TermAck id=0xac]
> [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x9592e62b>
> <pcomp> <accomp>]
> [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x9592e62b>
> <pcomp> <accomp>]
> [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x9592e62b>
> <pcomp> <accomp>]
> [pppd] sent [LCP ConfReq id=0x1 <asyncmap 0xa0000> <magic 0x9592e62b>
> <pcomp> <accomp>]
> [pppd] Hangup (SIGHUP)
> 
> Strange ... despite the "noauth" option pppd sends a ConfReq, and
> rejects all ConfReq from the Server.

pppd requested a 'Config' the reply from the ISP says you need auth. Your 
server does not require that the ISP authenticate itself to you, that's 
what 'noauth' means.

---<GRiP>---

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to