Re: Linux dialup to Netscape.net?

From: Charles Tryon (chucktryon_at_yahoo.com)
Date: 08/07/05


Date: Sun, 07 Aug 2005 19:34:31 GMT


(Sorry to take so long responding -- been swamped with other stuff.
Anyway....)

Moe Trin wrote:
> In the Usenet newsgroup comp.os.linux.misc, in article
> <JAAIe.1499$rI6.1051@twister.nyroc.rr.com>, Charles Tryon wrote:
> >>Has anyone been successfull getting a dialup connection to Netscape.net
>>as an internet service for a Linux (FC3) box? ...
>>I've used both "eznet" and "wvdial", and neither one can get through the
>>CHAP authentication secret handshake.
>
> http://axion.physics.ubc.ca/ppp-linux.html
> http://www.theory.physics.ubc.ca/ppp-linux.html

   I'll try to take a look at these.

> Which version of CHAP - there are quite a few. FC3 has ppp-2.4.2-4.6, and
> the stock 2.4.2 has CHAP-MD5, MS-CHAPv1 and MS-CHAPv2.

This is pretty much a stock FC3 install, with the latest updates.
ppp-2.4.2-6.4.FC3
kernel-2.6.12-1.1372_FC3

> Can you show the
> segment of the ppp log between the 'Serial connection established.' line and
> where the connection hangs up? Should only be about a dozen or so lines.

I'm not exactly sure which log you mean. There isn't much in
/var/log/messages. I have a /var/log/ppp directory, but it turns out to
be empty, so I don't see any log files there. What I do have is the raw
output (console) from the eznet and wvdial program. The following is
the output from the "eznet" program as it tries to connect:

------------------------------------
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0x7d129dba>
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0x7d129dba>
<pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0x7d129dba>
<pcomp> <accomp>]
Modem hangup
Connection terminated.
Netscape: pppd failure at 12:03AM Sat Aug 06, 2005
------------------------------------

Using the wudial program, this is what I get from Netscape:
------------------------------------
CONNECT 9600/ARQ/V32/LAPM/V42BIS
--> Carrier detected. Waiting for prompt.
Level 3 Comm nas10.roc1 UQKT2
Username:/login:/Login:
--> Looks like a login prompt.
--> Sending: nsSomebody@netscape.net
nsSomebody@netscape.net
Password:
--> Looks like a password prompt.
--> Sending: (password)
Access Denied
Username:/login:/Login:
--> Looks like a login prompt.
--> Sending: nsSomebody@netscape.net
nsSomebody@netscape.net
Password:
--> Looks like a password prompt.
--> Sending: (password)
Access Denied
Username:/login:/Login:
--> Looks like a login prompt.
--> Sending: nsSomebody@netscape.net
--> Don't know what to do! Starting pppd and hoping for the best.
--> Starting pppd at Sat Aug 6 00:18:25 2005
--> pid of pppd: 4240
--> Using interface ppp0
--> pppd: ATM1L1
--> pppd: ATM1L1
--> pppd: ATM1L1
--> pppd: ATM1L1
--> Disconnecting at Sat Aug 6 00:18:30 2005
--> The PPP daemon has died: Authentication error.
--> We failed to authenticate ourselves to the peer.
--> Maybe bad account or password? (exit code = 19)
--> man pppd explains pppd error codes in more detail.
--> I guess that's it for now, exiting
--> The PPP daemon has died. (exit code = 19)
------------------------------------

Unfortunately, I'm not at all adept at setting up ppp chat scripts, so
I'm stuck with trying to use all the tools others have built on top of
ppp. Of course, tools are great when they work, but you're sort of up a
creek if they don't.....

>>Interestingly enough, I was able to use "eznet" to get through to my
>>Roadrunner dialup (for when I'm away from the cable service), though I
>>had to add a second response to get it to authenticate, so I know my
>>PCMCIA modem is fine, and the ppp connection can be established.
>
>
> Can you expand on this "second response"?

This is the eznet config file for my RR connection:
------------------------------------
1 debug yes
1 expect0 ogin:
1 password something
1 phone 5074056
1 reply0 aolnet/ent.somebody@rochester.rr.com
1 service RR
1 user somebody@rochester.rr.com
------------------------------------

Notice the "reply0". This is not normally there, but I found a
reference to the "aolnet" response somewhere through Google, and when I
added this in, it worked fine. Note the following response when I dial
into Roadrunner service:

------------------------------------
# eznet up 1
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/modem
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0x8f61df25>
<pcomp> <accomp>]
rcvd [LCP ConfNak id=0x1 <mru 1500>]
sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x8f61df25> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x8f61df25> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <asyncmap 0xa0000> <auth chap MD5> <magic
0x8495ed02> <pcomp> <accomp>]
sent [LCP ConfAck id=0x2 <asyncmap 0xa0000> <auth chap MD5> <magic
0x8495ed02> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x1 <57b88b6ff9f9d7a2a721e0716b25ffea>, name =
"rrlns1-mc1"]
sent [CHAP Response id=0x1 <f9dc8e61c2860529b2ecd719b0059724>, name =
"somebody@rochester.rr.com"]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 64.12.0.244>]
sent [IPCP ConfAck id=0x1 <addr 64.12.0.244>]
rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 66.61.144.99>]
sent [IPCP ConfReq id=0x3 <addr 66.61.144.99>]
rcvd [IPCP ConfAck id=0x3 <addr 66.61.144.99>]
not replacing existing default route to eth0 [192.168.1.1]
local IP address 66.61.144.99
remote IP address 64.12.0.244
Script /etc/ppp/ip-up started (pid 4151)
Script /etc/ppp/ip-up finished (pid 4151), status = 0x0
RR: ppp0 66.61.144.99 to 64.12.0.244 up since 12:09AM Sat Aug 06, 2005
------------------------------------

> The stock windoze setup needs
> only to dial the phone, and 'get it on' with ppp to get on line. This is
> a standard file I always show:
>
> [compton ~]$ cat /usr/local/bin/dialin
> #!/bin/bash
> exec /usr/sbin/pppd connect "/usr/sbin/chat -f /etc/ppp/dialscript" \
> defaultroute lock noipdefault modem nodetach /dev/modem 115200 crtscts \
> user ibuprofin
> [compton ~]$
>
> There must not be anything after the \ in those two lines.
>
> [compton ~]$ cat /etc/ppp/dialscript
> ABORT BUSY ABORT 'NO CARRIER' "" AT&F1 OK ATDT2662902 CONNECT \d\c
> [compton ~]$
>
> And of course, there is /etc/ppp/chap-secrets or /etc/ppp/pap-secrets,
> and /etc/resolv.conf, but that's typically all that is needed.

   Unfortunately, in the case of Netscape.net, this does the low level
modem sync, but then fails the authentication, and simply drops the line
after a few seconds. (BTW - what's the difference between pap-secrets
and chap-secrets?)

>>As an alternative, what dialup services have people had good success
>>with when running Linux? I'm working with an old laptop running FC3.
>>Everything else works fine, but I need to set up an Internet account for
>>him.
>
> Do you mean what ISP? Just about any - all they need to do is to run with
> the default windoze DUN crap. If you mean what tool do people use, that's
> another of the "which beer is better" type questions. I use the dumb script
> above, but people successfully use a lot of other tools - like kppp, and
> wvdial. Sometimes they don't work, because they don't default to the windoze
> DUN emulation (don't EVER look for a 'login:' prompt - the concept is dead).

Yea, that sounds like it's my problem. I tried the "dumb" script, just
giving the dialup script, and that doesn't authenticate. I'm grabbing
at straws here, but it sounds like Netscape may need more than the
default DUN emulation.

Thanks for your response though!

--
   Chuck Tryon


Relevant Pages

  • Getting HTTP 400 errors with multithreaded webservice calls through an authenticating ISA proxy
    ... comming fron the wed server back through the proxy. ... The issue seems to be that when an existing authenticated connection ... authentication but over the first connection that is already ... Now a HTTP 400 error is return in the response ...
    (microsoft.public.dotnet.framework.webservices)
  • Getting HTTP 400 errors with multithreaded webservice calls through an authenticating ISA proxy
    ... comming fron the wed server back through the proxy. ... The issue seems to be that when an existing authenticated connection ... authentication but over the first connection that is already ... Now a HTTP 400 error is return in the response ...
    (microsoft.public.dotnet.framework)
  • Re: IIS 5.0 Windows Authenticion/NT Challenge Response
    ... Server: Microsoft-IIS/5.0\r\n ... And here is the response for the NTLM with userid and password ... without "Reuse>connection" checked ... This shows Windows>Authentication is working. ...
    (microsoft.public.inetserver.iis.security)
  • Re: IIS 5.0 Windows Authenticion/NT Challenge Response
    ... Ok, now that you have the URL, can you make the following two requests in ... - The response for #1 should return 401.2 in the entity body. ... Based on what you have given, I only know that Windows Authentication is ... Connection: Keep-Alive\r\n ...
    (microsoft.public.inetserver.iis.security)
  • understanding chkrootkit: sshd section
    ... Rhosts Authentication disabled, originating port will not be trusted. ... Secure connection to %.100s on port %hu refused%.100s. ... Warning: Remote host refused compression. ... Received RSA challenge from server. ...
    (comp.os.linux.security)

Loading