Hello all,

I am trying to setup a VPN connection on Android v2.2.2. I am
currently unable to connect to my VPN server.

The VPN server is Openswan which is running with xl2tpd. I am using X.
509 certificates to identify clients.

Android does not seem to initiate a connection to the VPN server, the
logs on the server show no entries of any clients connecting. This
setup works on my telephone when running windows mobile 6.5, or when
connecting with computers running windows or OSX.

The logs from android show that racoon is not able to create a key
socket.

Can anyone please point me in the right direction to solve this
problem?

Greetings,

Bart

The logs below are from android:


I/ActivityManager( 1331): Starting activity: Intent
{ act=android.intent.action.MAIN
cmp=com.android.settings/.vpn.VpnSettings }
D/VpnManager( 1409): succeeded to connect to VPN service
D/VpnSettings( 1409): received connectivity: 129.125.102.34:
connected? IDLE   err=0
I/ActivityManager( 1331): Displayed activity
com.android.settings/.vpn.VpnSettings: 480 ms (total 480 ms)
I/keystore( 1315): uid: 1000 action: t -> 1 state: 1 -> 1 retry: 4
I/keystore( 1315): uid: 1000 action: e -> 1 state: 1 -> 1 retry: 4
I/keystore( 1315): uid: 1000 action: e -> 1 state: 1 -> 1 retry: 4
D/dalvikvm( 1649): GC_EXPLICIT freed 3326 objects / 192224 bytes in
130ms
D/VpnManager( 1409): succeeded to connect to VPN service
D/com.android.settings.vpn.AuthenticationActor( 1409): ~~~~~~
connect() succeeded!
I/SProxy_mtpd( 1734): Stop VPN daemon: mtpd
D/SProxy_mtpd( 1734): mtpd is stopped after 0 msec
D/SProxy_mtpd( 1734): stopping mtpd, success? true
I/SProxy_racoon( 1734): Stop VPN daemon: racoon
D/SProxy_racoon( 1734): racoon is stopped after 0 msec
D/SProxy_racoon( 1734): stopping racoon, success? true
D/VpnService( 1734):   Local IP: 10.15.104.141, if: ppp0
D/VpnService( 1734):        VPN UP: down
I/SProxy_racoon( 1734): Start VPN daemon: racoon
D/VpnSettings( 1409): received connectivity: 129.125.102.34:
connected? CONNECTING   err=0
D/SProxy_racoon( 1734): racoon is running after 200 msec
D/SProxy_racoon( 1734): service not yet listen()ing; try again
D/dalvikvm( 1396): GC_EXTERNAL_ALLOC freed 2710 objects / 121312 bytes
in 100ms
D/racoon  ( 2025): Waiting for control socket
D/racoon  ( 2025): Received 5 arguments
E/racoon  ( 2025): Cannot create KEY socket
I/SProxy_racoon( 1734): got data from control socket: -1
E/VpnService( 1734): onError()
E/VpnService( 1734): java.io.IOException: socket error, result from
service: -1
E/VpnService( 1734): at
com.android.server.vpn.DaemonProxy.sendCommand(DaemonProxy.java:89)
E/VpnService( 1734): at
com.android.server.vpn.VpnDaemons.startIpsecForL2tp(VpnDaemons.java:
70)
E/VpnService( 1734): at
com.android.server.vpn.L2tpIpsecService.connect(L2tpIpsecService.java:
37)
E/VpnService( 1734): at
com.android.server.vpn.VpnService.onConnect(VpnService.java:135)
E/VpnService( 1734): at com.android.server.vpn.VpnServiceBinder
$2.run(VpnServiceBinder.java:114)
E/VpnService( 1734): at java.lang.Thread.run(Thread.java:1096)
I/VpnService( 1734): disconnecting VPN...
D/VpnSettings( 1409): received connectivity: 129.125.102.34:
connected? DISCONNECTING   err=0
I/SProxy_mtpd( 1734): Stop VPN daemon: mtpd
D/SProxy_mtpd( 1734): mtpd is stopped after 0 msec
D/SProxy_mtpd( 1734): stopping mtpd, success? true
I/SProxy_racoon( 1734): Stop VPN daemon: racoon
D/SProxy_racoon( 1734): racoon is stopped after 0 msec
D/SProxy_racoon( 1734): stopping racoon, success? true
D/VpnService( 1734): onFinalCleanUp()
I/VpnService( 1734): restore original suffices --> null
D/VpnSettings( 1409): received connectivity: 129.125.102.34:
connected? IDLE   err=101
D/VpnSettings( 1409): create reconnect dialog for event 101
E/Tethering( 1331): attempting to remove unknown iface (usb0),
ignoring
E/Tethering( 1331): attempting to remove unknown iface (usb0),
ignoring
D/VpnSettings( 1409):    onIdle()

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to