From: Phil Mayers
Date: Sat, 11 Feb 2006 13:00:16 +0000
Subject: Re: Windows mobile 2005 clients
Message-Id: <43EDDFE0.9040709@imperial.ac.uk>
List-Id:
References: <43EA1953.9000005@imperial.ac.uk>
In-Reply-To: <43EA1953.9000005@imperial.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
To: linux-ppp@vger.kernel.org
Phil Mayers wrote:
> All,
>
> Apologies for the cross posting - strictly this is a PPP issue, but I
> think given the number of posts the poptop people may want to see it as
> well.
>
>
> I've discovered that the problem is the WM2005 PPTP client PPP layer
> sets none of the 40, 56 or 128 bit MPPE flags, and pppd instantly
> terminates the connection when this happens. A win2k VPN server NAKs
> with the preferred keysize.
>
> sent [CHAP Challenge id=0x3e , name = "pptpd"]
> rcvd [CHAP Response id=0x3e , name = "user"]
> sent [CHAP Success id=0x3e "S=BYTES"]
> sent [CCP ConfReq id=0x1 ]
> rcvd [CCP ConfReq id=0x0 ]
> sent [LCP TermReq id=0x2 "MPPE required but peer negotiation failed"]
> sent [CCP ConfRej id=0x0 ]
I have also seen this yesterday with a windows ME client. In this
instance the patch fixed the connection completely, so I'm inclined to
think it's correct.
Does anyone have any comments on the pppd patch?
>
> The following patch to pppd seems to fix this, HOWEVER the connection
> does not come up correctly - there seems to be a key generation error
This is still an issue with the windows mobile clients - I've now
verified it fails for 2003 and 2005 clients.
> because the keys are generated twice in the ppp state machine:
...ignore this comment though. That was me being dumb. There's a tx and
rx key, not keys derived twice!
>
> sent [CCP ConfReq id=0x1 ]
> rcvd [CCP ConfReq id=0x0 ]
> sent [CCP ConfNak id=0x0 ]
> rcvd [CCP ConfNak id=0x1 ]
> sent [CCP ConfReq id=0x2 ]
> rcvd [CCP ConfReq id=0x1 ]
> mppe_decomp_init[0]: initialized with 128-bit stateful mode
> sent [CCP ConfAck id=0x1 ]
> mppe_decomp_init[0]: keys: master: BYTES1 initial session: BYTES2
> rcvd [CCP ConfAck id=0x2 ]
> mppe_comp_init[0]: initialized with 128-bit stateful mode
> mppe_comp_init[0]: keys: master: BYTES3 initial session: BYTES4
>
> Script /etc/ppp/ip-up started (pid 24653)
> Script /etc/ppp/ip-up finished (pid 24653), status = 0x0
> decompress[0]: ccount 0
> rcvd [proto=0xc7] fe 99 67 83 1b 1a 4d cf cd fb 9c f8 ce e2 6f 9c 1a 07
> 23 85 25 c2 b9 d8 cc fd 3d 9f 90 ee c4 3f ...
> sent [LCP ProtRej id=0x4 00 c7 fe 99 67 83 1b 1a 4d cf cd fb 9c f8 ce e2
> 6f 9c 1a 07 23 85 25 c2 b9 d8 cc fd 3d 9f 90 ee ...]
>
> Is anyone more knowledgeable than I am about how to fix the next bit?
I would love to know if anyone has any suggestions how to solve the
remaining mppe key issue with windows mobile clients. Possibly the
client is dumb enough to ACK with 128 but does not actually support it?
I will test this on monday.