Hi, Now that the official android repository are back online, I gave it another try. I managed again to go through all the steps, this time with Froyo to be sure to have maximum compatibility. This time I get connectivity and everything with the emulator and the strongswan frontend. I still get some .orig files after patching although no .rej file is produced and no error messages are given when I patch. Problem is that it looks like when I try to use the VPN, charon doesn't start. Here is the logcat from abd:
D/VpnManager( 129): succeeded to connect to VPN service D/com.android.settings.vpn.AuthenticationActor( 129): ~~~~~~ connect() succeeded! I/SProxy_mtpd( 277): Stop VPN daemon: mtpd D/VpnSettings( 129): received connectivity: Test: connected? CONNECTING err=0 D/SProxy_mtpd( 277): mtpd is stopped after 0 msec D/SProxy_mtpd( 277): stopping mtpd, success? true I/SProxy_racoon( 277): Stop VPN daemon: racoon D/SProxy_racoon( 277): racoon is stopped after 0 msec D/SProxy_racoon( 277): stopping racoon, success? true I/SProxy_charon( 277): Stop VPN daemon: charon D/SProxy_charon( 277): charon is stopped after 0 msec D/SProxy_charon( 277): stopping charon, success? true D/VpnService( 277): Local IP: 10.0.2.15, if: eth0 D/VpnService( 277): VPN UP: down I/SProxy_charon( 277): Start VPN daemon: charon D/dalvikvm( 60): GC_FOR_MALLOC freed 9258 objects / 439544 bytes in 113ms E/VpnService( 277): onError() E/VpnService( 277): java.io.IOException: cannot start service: charon E/VpnService( 277): at com.android.server.vpn.DaemonProxy.start(DaemonProxy.java:75) E/VpnService( 277): at com.android.server.vpn.VpnDaemons.startDaemon(VpnDaemons.java:115) E/VpnService( 277): at com.android.server.vpn.VpnDaemons.startIkev2ForIpsec(VpnDaemons.java:78) E/VpnService( 277): at com.android.server.vpn.Ikev2IpsecService.connect(Ikev2IpsecService.java:36) E/VpnService( 277): at com.android.server.vpn.VpnService.onConnect(VpnService.java:135) E/VpnService( 277): at com.android.server.vpn.VpnServiceBinder$2.run(VpnServiceBinder.java:115) E/VpnService( 277): at java.lang.Thread.run(Thread.java:1096) I/VpnService( 277): disconnecting VPN... D/VpnSettings( 129): received connectivity: Test: connected? DISCONNECTING err=0 I/SProxy_mtpd( 277): Stop VPN daemon: mtpd D/SProxy_mtpd( 277): mtpd is stopped after 0 msec D/SProxy_mtpd( 277): stopping mtpd, success? true I/SProxy_racoon( 277): Stop VPN daemon: racoon D/SProxy_racoon( 277): racoon is stopped after 0 msec D/SProxy_racoon( 277): stopping racoon, success? true I/SProxy_charon( 277): Stop VPN daemon: charon D/SProxy_charon( 277): charon is stopped after 0 msec D/SProxy_charon( 277): stopping charon, success? true D/VpnService( 277): onFinalCleanUp() I/VpnService( 277): restore original suffices --> null D/VpnSettings( 129): received connectivity: Test: connected? IDLE err=101 D/VpnSettings( 129): create reconnect dialog for event 101 Any ideas? Thanks in advance, Federico -----Opprinnelig melding----- Fra: [email protected] [mailto:[email protected]] På vegne av [email protected] Sendt: 11. oktober 2011 11:08 Til: [email protected] Emne: Re: [strongSwan] Strongswan on android gingerbread Hi again, Thanks a lot for the previous answers and sorry to having to bother you again with a question probably not even related to StrongSwan. I suddenly found out that the emulator I use, that is probably created after the build of the modified android source tree (in out/host/linux_x86/bin), apparently has no connectivity. It says that "no SIM card" is present and no 3G icon appears. In other words, no internet access. Other android emulators from the SDK work perfectly. So, trying to understand the source of the problem, can you confirm that this strange behavior should not depend on the StrongSwan integration/patches? (I know I could recompile everything without strongswan and try the emulator, but it took me 3 weeks to get a "working" patched android and I'd rather not touch it unless really necessary :). Thanks again, Federico -----Opprinnelig melding----- Fra: Tobias Brunner [mailto:[email protected]] Sendt: 10. oktober 2011 09:59 Til: Mancini, Federico Kopi: [email protected] Emne: Re: [strongSwan] Strongswan on android gingerbread Hi Federico, > We are planning to use IPsec on a IPv6 network. Does the StrongSwan > IKEv2 port for android fully support IPv6, or only IPv4? It should (although I did not test it) if the corresponding modules are activated in the kernel (see [1]). > Also, by using the IKEv2 protocol I will not need to use the > l2tp/ppp tunneling anymore, right? Correct! Regards, Tobias _______________________________________________ Users mailing list [email protected] https://lists.strongswan.org/mailman/listinfo/users _______________________________________________ Users mailing list [email protected] https://lists.strongswan.org/mailman/listinfo/users
