From: James Carlson <carlsonj@workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: Huawei E398 4G/LTE USB-modem - IPCP fails under pppd 2.4.5
Date: Fri, 18 Mar 2011 13:11:13 +0000 [thread overview]
Message-ID: <4D8359F1.4070900@workingcode.com> (raw)
In-Reply-To: <Pine.LNX.4.61.1103181230280.12352@envy.nxs.se>
Tomas Lund wrote:
> I have a Huawei E398 4G/LTE USB-modem where IPCP fails under pppd 2.4.5
> but works in Windows.
Ah, 4G. That's difficult.
> Mar 18 12:16:04 localhost pppd[18558]: sent [IPCP ConfReq id=0x1 <addr
> 0.0.0.0>]
> Mar 18 12:16:05 localhost pppd[18558]: rcvd [IPCP ConfNak id=0x1]
Typically, with 4G-type devices, this means that either the
authentication failed or that the phone isn't properly registered with
the network.
What happens here (and it's really just cell-phone brain-damage; nobody
else does it this way) is that the PPP server you're talking to sends
back a fake "success" message regardless of what credentials you offer,
and it delays actually doing the authentication work until you start IPCP.
When you start IPCP, the PPP server sends your credentials to a central
system that either responds with the IP address you should use, which
the PPP server then sends back to you. If authentication fails, though,
the PPP server wigs out (I think that's the technical term ;-}) and
starts sending garbage.
Some of these systems will send back a bogus, unusable "default" IP
address. Some will hang up the call. Some will terminate LCP or IPCP.
It seems that this one sends a thoroughly bogus IPCP Configuration-Nak
that lacks any options.
I guess once you walk away from one part of the standard as written, you
might as well go completely nuts. ;-}
Anyway, check your configured user name / passphrase. Make sure that
any special characters in the passphrase are escaped properly.
> In windows, I am running the application that comes with the modem to
> connect, and I have collected a sniff of the serial port between the
> modem and windows where IPCP works and posted it at
> http://tlund.pp.se/ppp/windows_ppp_sniff.txt
That shows a blank (!) user name being sent.
> I suspect that Huawei PPP/IPCP implementation in the modem requires it
> to be done JUST the way that their application does it, instead of just
> following the relevant RFC:s.
Possibly so. It may require some experimentation to figure out just
what it wants to see.
> I am willing to provide any additional details that might be needed, do
> additional sniffing and try any patches or config changes you might have.
Try using this:
user ""
and adjust /etc/ppp/chap-secrets to match.
That seems to be what the peer wants. If that doesn't work, someone
with access to the hardware (possibly you) will have to tinker around
with the code to see what might work.
I doubt it's something that could be done effectively at a distance. I
probably don't have the time to do it, but perhaps someone else on the
list does ...
--
James Carlson 42.703N 71.076W <carlsonj@workingcode.com>
next prev parent reply other threads:[~2011-03-18 13:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 12:10 Huawei E398 4G/LTE USB-modem - IPCP fails under pppd 2.4.5 Tomas Lund
2011-03-18 13:11 ` James Carlson [this message]
2011-03-20 11:23 ` Tomas Lund
2011-03-20 15:23 ` James Carlson
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=4D8359F1.4070900@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.