hi nico,
thanks for replying, i am runnig rodent's version from http://rodent.za.net/files/openwrt/ (namely openwrt-gs-code.bin). i think its different from the experimental build. (it's based on openwrt buildtree of jan 5., with linksys drivers from the 3.37.2 tree).
i tested it with
pppd v2.4.3
pptpd v1.2.3
(from http://nbd.vd-s.ath.cx/openwrt/packages/)
but tonight i downgraded to the offical packages, but no luck either. the problem is still the same. current versions are now
kmod-ppp-mppe-mppc (2.4.20-1)
ppp-radius-plugin (2.4.2-1) (not used)
ppp (2.4.2-1)
pptp-server (1.1.3-1)
kmod-ppp-async (2.4.20-1)
ip (2.0)
heres a complete log for a failed connection:
using channel 9
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0xdf9f369> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
using channel 10
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x2 <mru 1400> <auth chap MS-v2> <magic 0x3edf15dd> <pcomp> <accomp>]
tcflush failed: Bad file descriptor
tcsetattr: Invalid argument (line 1001)
and this is another try with the same configuration, this time it's working:
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <mru 1400> <auth chap MS-v2> <magic 0x69767205> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x0 <mru 1400> <magic 0x764b43e1> <pcomp> <accomp>]
sent [LCP ConfAck id=0x0 <mru 1400> <magic 0x764b43e1> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <mru 1400> <auth chap MS-v2> <magic 0x69767205> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0x69767205]
sent [CHAP Challenge id=0xd <8528fb197d764b30a6a0b59f001ee9b6>, name = "pptp-server"]
rcvd [LCP EchoRep id=0x0 magic=0x764b43e1]
rcvd [CHAP Response id=0xd <8a73130b547e4c71e6e8d0706c6c945c000000000000000093727a590c1eac08f554d810d2ad4da0c57ef2acc2c4a69500>, name = "wallstreet"]
sent [CHAP Success id=0xd "S=3BC89AB86D30148EF04F4D22203FD654069D2440 M=Access granted"]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.1.0.2>]
rcvd [CCP ConfReq id=0x1 <mppe +H +M +S +L -D -C>]
sent [CCP ConfReq id=0x1]
sent [CCP ConfNak id=0x1 <mppe -H -M +S -L -D -C>]
rcvd [IPCP ConfReq id=0x2 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-dns3 0.0.0.0> <ms-wins 0.0.0.0>]
sent [IPCP ConfRej id=0x2 <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 10.1.0.2>]
rcvd [CCP ConfNak id=0x1 <mppe -H -M -S -L -D -C>]
sent [CCP ConfReq id=0x2 <mppe -H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x3 <mppe -H -M +S -L -D -C>]
sent [CCP ConfAck id=0x3 <mppe -H -M +S -L -D -C>]
rcvd [IPCP ConfReq id=0x4 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfNak id=0x4 <addr 10.21.0.12> <ms-dns1 10.21.0.2> <ms-dns3 10.21.0.2>]
rcvd [IPCP ConfAck id=0x2 <addr 10.1.0.2>]
rcvd [CCP ConfAck id=0x2 <mppe -H -M +S -L -D -C>]
MPPE 128-bit stateful compression enabled
rcvd [IPCP ConfReq id=0x5 <addr 10.21.0.12> <ms-dns1 10.21.0.2> <ms-dns3 10.21.0.2>]
sent [IPCP ConfAck id=0x5 <addr 10.21.0.12> <ms-dns1 10.21.0.2> <ms-dns3 10.21.0.2>]
found interface vlan0 for proxy arp
local IP address 10.1.0.2
remote IP address 10.21.0.12
in the last (working) case, the windows-client sends out the lcp-confreq at first, before any lcp-packets from the wrt arrive (i saw this with ethereal). maybe the lcp-packets from the wrt make the windows-pptp stuck? i also tested the "silent" option, which prevents pppd from sending any lcp-packets. but turned out to be not working, too. (although it behaves a bit different: when the connection is established (only possible every 4th try) the thing gets stuck while checkig the password (according to windows)).
so the question is: why does windows sometimes send lcp-packets and sometimes not???
btw, it tested it today with another notebook, so i checked with three different computers (2x XP Pro, 1x XP home with SP2) and all with different wlan-adapters (also checked via cable, like mentioned above).
...and i just noticed some interesting fact: the connection seems to be possible *exactly* every 4th try. i think this "counter" must be somewhere in windows, because its independent from the wrt. i can try 2x to connect, reboot the wrt and then try another time and the try after that will succeed (scheme: fail, fail, fail, success or: fail, fail, (reboot wrt), fail, success, etc.). same thing is when connecting parallel from different computers- they all succeed on *their* own 4th connection-try. its also possible to increase this mystic-counter by executing vpn-connections to completely different servers like: (wrt)fail, (connect to different server, doesnt matter wether successful or not), (wrt)fail, (wrt)success and so on.
this is consistent with my logfile-observation above. windows behaves 3x in a passive way and initiates lcp every 4th time.
however, windows is working with my debian-pptp very well (everytime), so windows can't be the problem. i will compare my debian-pptp-debug-logs with the wrt-ones tomorrow, maybe i get a clue from that.