From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: PPP connection stuck at bad configuration-ack
Date: Tue, 22 May 2012 18:24:32 +0000 [thread overview]
Message-ID: <4FBBD9E0.9020407@workingcode.com> (raw)
In-Reply-To: <CAN0ddOm5akxZaAJ-VN4fgSAVOKEOEaXNoUkHXhDdKe4UAMjv1w@mail.gmail.com>
Kristian R. Evensen wrote:
> I am not sure where the error lays, so I wonder if anyone else has
> seen something similar or has any tips on how to proceed with figuring
> this out? Output from pppd, as well as the chatscript and pppd options
> can be found here: http://pastebin.com/z8crcxR6
The reason pppd considers the Configure-Nak to be "bad" is that the
negotiation is not converging due to a bug or misconfiguration on the
peer's side. We say this:
May 21 12:17:50 nne5 pppd[2658]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
The peer tells us (using the backwards and proprietary Microsoft
extensions) that we should be asking for DNS addresses:
May 21 12:17:51 nne5 pppd[2658]: rcvd [IPCP ConfNak id=0x1 <ms-dns1
10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins
10.11.12.14>]
We modify our request exactly as the peer says and ask again:
May 21 12:17:51 nne5 pppd[2658]: sent [IPCP ConfReq id=0x2 <addr
0.0.0.0> <ms-dns1 10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins
10.11.12.13> <ms-wins 10.11.12.14>]
This is where it runs off the rails. The peer idiotically repeats the
same response:
May 21 12:17:52 nne5 pppd[2658]: rcvd [IPCP ConfNak id=0x2 <ms-dns1
10.11.12.13> <ms-dns2 10.11.12.14> <ms-wins 10.11.12.13> <ms-wins
10.11.12.14>]
We try again and again, only to get the same broken answer.
Note just how terribly invalid that reply from the peer really is. He's
sending us a Configure-Nak, but every single "hint" value exactly
matches what we sent in our Configure-Request. That's just beyond the
pale; if what you're "negatively acknowledging" exactly matches what the
peer is asking, you really should have just acknowledged it, right?
However, the key here (besides understanding that the peer is very
poorly designed and should be avoided) is noticing that we also politely
asked for an IP address, and the peer failed to supply one.
My guess (and it's just a guess at this point) is that this "huawei"
thing is one of those horrible 3G access devices that mangles PPP. The
3G "standard" specifies that the access server must lie to the client
and return success during the authentication phase, even if the user
name and/or password are completely wrong, or if the named user does not
have the requested network service authorization. The only way you find
out that something is wrong under this "standard" is when you ask for an
IP address and the peer is unable to supply one.
Most likely, your PAP user name "nne5" or password is incorrect or you
don't have the right configuration set up in the chat script.
Better still, stay as far as you can manage to get from badly-designed
"standards."
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2012-05-22 18:24 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 17:35 PPP connection stuck at bad configuration-ack Kristian R. Evensen
2012-05-22 18:24 ` James Carlson [this message]
2012-05-22 20:50 ` Kristian R. Evensen
2012-05-22 22:47 ` James Cameron
2012-05-22 22:55 ` Kristian Evensen
2012-05-22 23:11 ` James Cameron
2012-05-23 9:01 ` Kristian R. Evensen
2012-05-23 11:30 ` James Carlson
2012-05-23 15:52 ` terry white
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FBBD9E0.9020407@workingcode.com \
--to=carlsonj@workingcode.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.