Jump to content

Cisco VPN client on HTC Desire (short howto)


Guest Mihai2

Recommended Posts

Guest doktorko
Hello guys,

I'm trying to install the tun module on desire with the following kernel

2.6.32.9-bravo-froyo-r15

I can't find the right module, so when I try:

#insmod /system/lib/modules/tun.ko

smod /system/lib/modules/tun.ko

smod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)

Any suggestion?

Regards,

Daemon

probably you have it already, but here might be what you are looking for.

http://ip208-100-42-21.static.xda-develope...23&page=182

I use the same rom, got through that where you stacked, but still getting conection failed, need to debug, will see.

Edited by doktorko
Link to comment
Share on other sites

  • 2 weeks later...
Guest snowfine

when i connected, i got this error code

W/dalvikvm( 1162): threadid=10: thread exiting with uncaught exception (group=0x400259f8)

E/AndroidRuntime( 1162): FATAL EXCEPTION: Thread-12

E/AndroidRuntime( 1162): java.lang.NullPointerException

E/AndroidRuntime( 1162):		at org.codeandroid.vpnc_frontend.VpncProcessHandler.connect(VpncProcessHandler.java:85)

E/AndroidRuntime( 1162):		at org.codeandroid.vpnc_frontend.VPNC$3.run(VPNC.java:210)

W/ActivityManager(   97):   Force finishing activity org.codeandroid.vpnc_frontend/.VPNC

D/VPN_Connections( 1162): Monitoring will not start

Link to comment
Share on other sites

  • 2 weeks later...

For anyone that might still have problems connecting after finding a working tun.ko and a correct version of VPNC:

I had in my logcat:

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

D/Tethering( 140): tun0 is not a tetherable iface, ignoring

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

D/VPN_Connections( 1672): Read vpnc process id as 1722

D/VPN_Connections( 1672): vpnc still trying to connect. Will check again in 500 milliseconds

E/Tethering( 140): attempting to remove unknown iface (tun0), ignoring

D/VPN_Connections( 1672): process stderr: expected xauth packet; rejected: (ISAKMP_N_PAYLOAD_MALFORMED)(16)

D/VPN_Connections( 1672): Attempt to read vpnc process id did not return anything

D/VPN_Connections( 1672): process had died, return as failed connection

But then got a workaround from this site

http://www.gossamer-threads.com/lists/vpnc/devel/1546

i.e. add "--natt-mode force-natt" to VPNC flags (press menu button in VPNC).

Hope this helps :D

Link to comment
Share on other sites

Guest caipi123
when i connected, i got this error code

W/dalvikvm( 1162): threadid=10: thread exiting with uncaught exception (group=0x400259f8)

E/AndroidRuntime( 1162): FATAL EXCEPTION: Thread-12

E/AndroidRuntime( 1162): java.lang.NullPointerException

E/AndroidRuntime( 1162):		at org.codeandroid.vpnc_frontend.VpncProcessHandler.connect(VpncProcessHandler.java:85)

E/AndroidRuntime( 1162):		at org.codeandroid.vpnc_frontend.VPNC$3.run(VPNC.java:210)

W/ActivityManager(   97):   Force finishing activity org.codeandroid.vpnc_frontend/.VPNC

D/VPN_Connections( 1162): Monitoring will not start

same problem here, any suggestions? i tried the tun.ko from the vpnc page,

but did not help

Link to comment
Share on other sites

i have some problems with vpnc.

:

system

r8 baked with openvpn and installed VPN_Connections_v099.apk

connection to concentrator is established and i get my vpn routes:

xxx.xxx.xxx.xxx 192.168.100.254 255.255.255.255 UGH 0 0 0 eth0 <=my gateway

192.168.100.0 * 255.255.255.0 U 0 0 0 eth0

10.0.0.0 * 255.0.0.0 U 0 0 0 tun0

default 192.168.100.254 0.0.0.0 UG 0 0 0 eth0

but traceroute to 10.0.0.0 network always leads via wlan router to internet and not through tunnel interface.

what can i do?

Link to comment
Share on other sites

with aditional VPNC Flags "--natt-mode cisco-udp" the traffic seems to use tun interface but it is still not working:

ifconfig shows:

tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00

inet addr:10.1.1.2 P-t-P:10.1.1.2 Mask:255.255.255.255

UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:500

RX bytes:0 (0.0 :huh: TX bytes:0 (0.0 ;)

why is the HWaddr 00-00...? and it is 16 byte - my windows laptop has 6 bytes HWadress:

Beschreibung. . . . . . . . . . . : Cisco Systems VPN Adapter

Physikalische Adresse . . . . . . : 00-05-9A-3C-87-00

DHCP aktiviert. . . . . . . . . . : Nein

IP-Adresse. . . . . . . . . . . . : 10.1.1.3

Subnetzmaske. . . . . . . . . . . : 255.0.0.0

Standardgateway . . . . . . . . . :

if i edit concentrator settings to "no compression" i detect only "Bytes Tx" and no "Bytes Rx"

if compression lzo is configured i can't see traffic in both directions

and subnetmask is different in windows/android

any suggestions?

Edited by p-d
Link to comment
Share on other sites

here is the solution for r8 with baked openvpn and VPN_Connections_v099.apk

Additional VPNC Flags: --natt-mode cisco-udp - if you connect to cisco device :huh:

and you need to do this: http://code.google.com/p/get-a-robot-vpnc/...s/detail?id=114

execute these commands after VPNC says "connected":

ip ru del table wifi - if you are connected via WiFi

ip ru del table gprs - if you are connected via GPRS

Link to comment
Share on other sites

  • 2 months later...

Hi, I've been trying this whole day to get Cisco IPsec-VPN working on my HTC Desire. But when I try to establish the connection, the application stops with the 'proces org.codeandroid.vpnc_frontend' error.

What I've done:

1) I've followed http://forum.xda-developers.com/showthread.php?t=768256 to stock 2.1

2) http://unrevoked.com/rootwiki/doku.php/pub..._driver_install and http://unrevoked.com/recovery/ to get root access

3) http://android.modaco.com/content/htc-desi...re-short-howto/ to install busybox and VPN_connections_v097.apk (with v099.apk I had the same problem)

Some more information:

Bravo PVT3 SHIP S-ON

HBOOT-0.83.0001

MICROP-051d

Touch Panel-SYNW0101

Radio-4.08.00.09

Jun 10 2010,12:12:05

and

Kernel 2.6.29-0cb9f166

What's the next step I can do to make this work?

Link to comment
Share on other sites

  • 1 month later...
Guest almightybunghole

Hi,

I've been following this thread with interest - I have an HTC Desire HD running CM6.1 RC2 - does anyone know whether this procedure will work or whether it will do something nasty?

Thanks

George

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.