[Xoom Q&A, Help & Troubleshooting] JDrewes:
me too, with a linux server

I have the same problem. Only that I am running a linux server with xl2tpd and openswan.

If connect from my phone, it first takes a while (up to 2minutes), then suddenly there is a bunch of messages on the server, all consistent with a successful connection. At the same time, the phone says "connected". Then, after 2-10secs, The phone reports disconnection, and at the same time, on the server, I see a disconnect sequence.

I don't know if it matters, but I am working via WIFI through my home internet connection.

If I just use L2TP to connect (no IPSec), everything works. I also have a PPTP server installed, which works (but my android-phone does not support mppe encryption, so the VPN is not very useful to me).

Server:

Ubuntu 10.04 server

openswan

xl2tpd

Phone:

Samsung Galaxy S with Gingerbread (original Samsung firmware installed via Kies)

I am attaching a server log. The critical section appears to be this:

Jun 6 03:31:14 v3-1055 pppd[6683]: rcvd [LCP TermReq id=0x2 "User request"]

Jun 6 03:31:14 v3-1055 pppd[6683]: LCP terminated by peer (User request)

which seems to indicate that my pppd on the server believes that the phone wanted to quit... or did it?

Hope someone can help... thanks...

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: control_finish: Peer requested tunnel 12040 twice, ignoring second one.

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: Connection established to 82.216.75.98, 59763. Local: 58750, Remote: 12040 (ref=0/0). LNS session is 'default'

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: start_pppd: I'm running:

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "/usr/sbin/pppd"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "passive"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "nodetach"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "192.168.1.21:192.168.1.11"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "refuse-pap"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "refuse-chap"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "auth"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "debug"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "file"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "/etc/ppp/options.xl2tpd"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: "/dev/pts/1"

Jun 6 03:31:01 v3-1055 xl2tpd[3116]: Call established with 82.216.75.98, Local: 60688, Remote: 9363, Serial: 1745665151

Jun 6 03:31:01 v3-1055 pppd[6683]: pppd 2.4.5 started by root, uid 0

Jun 6 03:31:01 v3-1055 pppd[6683]: using channel 20

Jun 6 03:31:01 v3-1055 pppd[6683]: Using interface ppp0

Jun 6 03:31:01 v3-1055 pppd[6683]: Connect: ppp0 <--> /dev/pts/1

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [LCP ConfReq id=0x1 <mru 1280> <asyncmap 0x0> <auth eap> <magic 0x5e5002d6> <pcomp> <accomp>]

Jun 6 03:31:01 v3-1055 pppd[6683]: rcvd [LCP ConfReq id=0x1 <mru 1400> <asyncmap 0x0> <magic 0x35565985> <pcomp> <accomp>]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [LCP ConfAck id=0x1 <mru 1400> <asyncmap 0x0> <magic 0x35565985> <pcomp> <accomp>]

Jun 6 03:31:01 v3-1055 pppd[6683]: rcvd [LCP ConfNak id=0x1 <auth chap MD5>]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [LCP ConfReq id=0x2 <mru 1280> <asyncmap 0x0> <auth chap MD5> <magic 0x5e5002d6> <pcomp> <accomp>]

Jun 6 03:31:01 v3-1055 pppd[6683]: rcvd [LCP ConfAck id=0x2 <mru 1280> <asyncmap 0x0> <auth chap MD5> <magic 0x5e5002d6> <pcomp> <accomp>]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [LCP EchoReq id=0x0 magic=0x5e5002d6]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [CHAP Challenge id=0x84 <ce0534c50cb9dd00e0be94a98dc608b0194d34c431>, name = "serverchenipsec"]

Jun 6 03:31:01 v3-1055 pppd[6683]: rcvd [LCP EchoRep id=0x0 magic=0x35565985]

Jun 6 03:31:01 v3-1055 pppd[6683]: rcvd [CHAP Response id=0x84 <3d83aedcbe64034b37713a4c2cd3b006>, name = "jan"]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [CHAP Success id=0x84 "Access granted"]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

Jun 6 03:31:01 v3-1055 pppd[6683]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.1.21>]

Jun 6 03:31:02 v3-1055 pppd[6683]: rcvd [CCP ConfReq id=0x1 <bsd v1 15>]

Jun 6 03:31:02 v3-1055 pppd[6683]: sent [CCP ConfAck id=0x1 <bsd v1 15>]

Jun 6 03:31:02 v3-1055 pppd[6683]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>]

Jun 6 03:31:02 v3-1055 pppd[6683]: sent [IPCP ConfNak id=0x1 <addr 192.168.1.11> <ms-dns1 80.244.244.244> <ms-dns2 80.244.244.244>]

Jun 6 03:31:02 v3-1055 pppd[6683]: rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]

Jun 6 03:31:02 v3-1055 pppd[6683]: Deflate (15) / BSD-Compress (15) compression enabled

Jun 6 03:31:02 v3-1055 pppd[6683]: rcvd [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.1.21>]

Jun 6 03:31:02 v3-1055 pppd[6683]: rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 192.168.1.11> <ms-dns1 80.244.244.244> <ms-dns2 80.244.244.244>]

Jun 6 03:31:02 v3-1055 pppd[6683]: sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 192.168.1.11> <ms-dns1 80.244.244.244> <ms-dns2 80.244.244.244>]

Jun 6 03:31:02 v3-1055 pppd[6683]: Cannot determine ethernet address for proxy ARP

Jun 6 03:31:02 v3-1055 pppd[6683]: local IP address 192.168.1.21

Jun 6 03:31:02 v3-1055 pppd[6683]: remote IP address 192.168.1.11

Jun 6 03:31:02 v3-1055 pppd[6683]: Script /etc/ppp/ip-up started (pid 6686)

Jun 6 03:31:02 v3-1055 pppd[6683]: Script /etc/ppp/ip-up finished (pid 6686), status = 0x0

Jun 6 03:31:14 v3-1055 pppd[6683]: rcvd [LCP TermReq id=0x2 "User request"]

Jun 6 03:31:14 v3-1055 pppd[6683]: LCP terminated by peer (User request)

Jun 6 03:31:14 v3-1055 pppd[6683]: Connect time 0.2 minutes.

Jun 6 03:31:14 v3-1055 pppd[6683]: Sent 0 bytes, received 0 bytes.

Jun 6 03:31:14 v3-1055 pppd[6683]: Script /etc/ppp/ip-down started (pid 6711)

Jun 6 03:31:14 v3-1055 pppd[6683]: sent [LCP TermAck id=0x2]

Jun 6 03:31:14 v3-1055 postfix/master[1387]: reload -- version 2.7.0, configuration /etc/postfix

Jun 6 03:31:14 v3-1055 pppd[6683]: Script /etc/ppp/ip-down finished (pid 6711), status = 0x0

Jun 6 03:31:14 v3-1055 xl2tpd[3116]: result_code_avp: avp is incorrect size. 8 < 10

Jun 6 03:31:14 v3-1055 xl2tpd[3116]: handle_avps: Bad exit status handling attribute 1 (Result Code) on mandatory packet.

Jun 6 03:31:14 v3-1055 xl2tpd[3116]: Terminating pppd: sending TERM signal to pid 6683

Jun 6 03:31:14 v3-1055 pppd[6683]: Terminating on signal 15

Jun 6 03:31:14 v3-1055 pppd[6683]: Modem hangup

Jun 6 03:31:14 v3-1055 pppd[6683]: Connection terminated.

Jun 6 03:31:14 v3-1055 pppd[6683]: Exit.

Jun 6 03:31:14 v3-1055 xl2tpd[3116]: pppd 6683 successfully terminated

Jun 6 03:31:14 v3-1055 xl2tpd[3116]: Connection 12040 closed to 82.216.75.98, port 59763 (Result Code: expected at least 10, got 8)

Jun 6 03:31:19 v3-1055 xl2tpd[3116]: Unable to deliver closing message for tunnel 58750. Destroying anyway.