Guest Mihai2 Posted May 2, 2010 Report Posted May 2, 2010 (edited) In order to make the Cisco VPN client work on HTC Desire you must do the following:root the phone as per Paul's instructionscopy the http://xcyb.org/android/busybox_tun_desire_signed.zip file to the root of your SD cardboot the phone into recovery mode and execute "./step2" as in Paul's procedure; however instead of flashing the rootedupdate.zip you will need to flash the busybox_tun_desire_signed.zip filerebootget and install the VPN_Connections_v097.apk packageconfigure your accountenjoyThe busybox_tun_desire_signed.zip update actually provides:busybox together with all the symlinks directly in your PATH (i.e. /system/xbin/); this is needed because the "VPN Connections" applications expects to find "grep" and "cut" in order to properly detect if the connection was started or nottun.ko module for the Desire kernel (thanks Richard Trip); the module is needed in order to be able to create the VPNfind /system/xbin -type l -maxdepth 1 | while read file; do if [ `readlink "$file"` == "busybox" ]; then rm "$file"; fi; done PS: If you already have busybox installed and the "grep" and "cut" commands available in your PATH then use the following file instead: http://xcyb.org/android/tun_desire_signed.zip. It contains only the tun.ko module. LATER EDIT: Important posts from this thread:If the "VPN Connections" application crashes see this postIf you installed A2SD or you intend to install it see this postIf you are using a custom ROM and the connection is failing see this postBest regards, Mihai Edited May 14, 2010 by Mihai2
Guest modacorule Posted May 2, 2010 Report Posted May 2, 2010 Sorry doesn't work for me... during flashing zip file "E:Can't symlink /system/xbin/[ E: Failure at line 6: ..." maybe it's due to installed vpnupdatedesire_signed.zip a few hours before? Is it possible to remove flashed .zip files in recovery? Thanks in advance
Guest gforums Posted May 2, 2010 Report Posted May 2, 2010 (edited) Sorry doesn't work for me... during flashing zip file "E:Can't symlink /system/xbin/[ E: Failure at line 6: ..." maybe it's due to installed vpnupdatedesire_signed.zip a few hours before? Is it possible to remove flashed .zip files in recovery? Thanks in advance Same here...but didn't try antoher vpn thing yet. Any idea? thanks! EDIT: May this be because of busy box already beeing installed? (from A2SD) Can we have a new cisco vpn file signed without busybox? thanks! EDIT2: tun.ko does exists, so probably it will anyhow work. gonna try it tomorrow! Edited May 2, 2010 by gforums
Guest wellsgz Posted May 3, 2010 Report Posted May 3, 2010 Many thx mihai, ipsec vpn access is the main purpose that i root my desire~ now you make it works finally~
Guest Mihai2 Posted May 3, 2010 Report Posted May 3, 2010 Sorry doesn't work for me... during flashing zip file "E:Can't symlink /system/xbin/[ E: Failure at line 6: ..." maybe it's due to installed vpnupdatedesire_signed.zip a few hours before? Yes, it is because you already have the symlinks in place. Anyway, the "VPN Connections" applications should work as long as you: have the tun.ko module copied to your /system/lib/modules/have the /system/xbin/grep and /system/xbin/cut symlinks pointing to a busybox installation (either from this update or another one) Best regards, Mihai
Guest modacorule Posted May 3, 2010 Report Posted May 3, 2010 (edited) Yes, it is because you already have the symlinks in place. Anyway, the "VPN Connections" applications should work as long as you:have the tun.ko module copied to your /system/lib/modules/have the /system/xbin/grep and /system/xbin/cut symlinks pointing to a busybox installation (either from this update or another one)Best regards, Mihai First of all Multumesc :huh: But how can I have /grep and /cut pointing to busybox? Obviously it doesn't work through a2sd or openvpn update :P ... When I try to connect through "VPN Connections" it crashes.... Can this be done manually, or is there a working update that can do this for me? I think tun.ko is in the right place due to openvpn update... Edited May 3, 2010 by modacorule
Guest Mihai2 Posted May 3, 2010 Report Posted May 3, 2010 Same here...but didn't try antoher vpn thing yet. Any idea? thanks! EDIT: May this be because of busy box already beeing installed? (from A2SD) Can we have a new cisco vpn file signed without busybox? Yes, you're probably right. I added a file that contains only the tun.ko module in case you already have busybox. Check the initial post for the link. EDIT2: tun.ko does exists, so probably it will anyhow work. gonna try it tomorrow! Yes, probably it will work if it is the proper tun.ko (compiled against the kernel of Desire).
Guest modacorule Posted May 3, 2010 Report Posted May 3, 2010 (edited) Yes, you're probably right. I added a file that contains only the tun.ko module in case you already have busybox. Check the initial post for the link. Yes, probably it will work if it is the proper tun.ko (compiled against the kernel of Desire). Just flashed your tun.ko Still "vpn connection" crashes - I thinks it's due to the busybox and not due to the tun.ko ? Edited May 3, 2010 by modacorule
Guest Mihai2 Posted May 3, 2010 Report Posted May 3, 2010 Just flashed your tun.ko Still "vpn connection" crashes - I thinks it's due to the busybox and not due to the tun.ko ? It is possible. Try to issue an "adb logcat" command and check the logs. Maybe you'll see some usefull information and find the reason of the crash. Also a good idea would be to check if you can run the "grep" and "cut" commands directly from a local shell on you phone.
Guest modacorule Posted May 3, 2010 Report Posted May 3, 2010 It is possible. Try to issue an "adb logcat" command and check the logs. Maybe you'll see some usefull information and find the reason of the crash. Also a good idea would be to check if you can run the "grep" and "cut" commands directly from a local shell on you phone. this is what logcat says: D/VPN_Connections( 851): process stderr: /data/data/org.codeandroid.vpnc_fronte nd/files/vpnc-script: /system/bin/make-tun-device: not found D/VPN_Connections( 851): can't open /dev/net/tun, check that it is either devic e char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): N o such file or directory D/VPN_Connections( 851): can't initialise tunnel interface: No such file or dir ectory D/VPN_Connections( 851): Attempt to read vpnc process id did not return anythin g D/VPN_Connections( 851): process had died, return as failed connection
Guest Mihai2 Posted May 3, 2010 Report Posted May 3, 2010 this is what logcat says: D/VPN_Connections( 851): process stderr: /data/data/org.codeandroid.vpnc_fronte nd/files/vpnc-script: /system/bin/make-tun-device: not found D/VPN_Connections( 851): can't open /dev/net/tun, check that it is either devic e char 10 200 or (with DevFS) a symlink to ../misc/net/tun (not misc/net/tun): N o such file or directory D/VPN_Connections( 851): can't initialise tunnel interface: No such file or dir ectory D/VPN_Connections( 851): Attempt to read vpnc process id did not return anythin g D/VPN_Connections( 851): process had died, return as failed connection Make a symlink in order to create the /dev/net/tun: mkdir /dev/net ln -s /dev/tun /dev/net/tun
Guest modacorule Posted May 3, 2010 Report Posted May 3, 2010 Make a symlink in order to create the /dev/net/tun: mkdir /dev/net ln -s /dev/tun /dev/net/tun ...still crash - I think I'll try to reflash Image and try installing busybox before a2sd...
Guest Mihai2 Posted May 3, 2010 Report Posted May 3, 2010 ...still crash - I think I'll try to reflash Image and try installing busybox before a2sd... In case you are still trying to fix it without reflashing then please provide me the output of the following commands: echo $PATH type ps type grep type cut type insmod ls -l /system/xbin/ ls -l /system/lib/modules/ md5sum /system/lib/modules/* ls -l /dev/tun ls -l /dev/net/tun find / -type f -name vpnc\* -print0 | xargs -0 md5sum
Guest Ecstacid Posted May 4, 2010 Report Posted May 4, 2010 Works! Thank you very much! The only ?bug? I have is that I need to uncheck my VPN enable checkbox but in the meanwhile not disconnect my VPN-connection to get/stay connected. Else I get a time out. Kinda strange but hey it works :huh:
Guest bcmobile Posted May 4, 2010 Report Posted May 4, 2010 Hey nice work. One less reason to buy an iPhone :P
Guest gforums Posted May 4, 2010 Report Posted May 4, 2010 Hi Mihai2, I still have problems getting a connection to my VPN - no idea what is wrong, but my settings look right so far. Here's the output, which is hopefully helpful: (in the order of the commands, you posted): Any idea what could be wrong? Thank you! gforums /sbin:/system/sbin:/system/bin:/system/xbin type ps ps is /system/bin/ps[/codebox] [codebox]type grep grep is /system/xbin/grep type cut cut is /system/xbin/cut[/codebox] [codebox]type insmod insmod is /system/bin/insmod lrwxrwxrwx root root 2010-04-29 13:31 stty -> busybox lrwxrwxrwx root root 2010-04-29 13:31 date -> busybox lrwxrwxrwx root root 2010-04-29 13:31 od -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ipcrm -> busybox lrwxrwxrwx root root 2010-04-29 13:31 wc -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sh -> busybox lrwxrwxrwx root root 2010-04-29 13:31 bzcat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 more -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ifconfig -> busybox lrwxrwxrwx root root 2010-04-29 13:31 unlzma -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rx -> busybox lrwxrwxrwx root root 2010-04-29 13:31 envuidgid -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mdev -> busybox lrwxrwxrwx root root 2010-04-29 13:31 gunzip -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cut -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 reformime -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lpd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fold -> busybox lrwxrwxrwx root root 2010-04-29 13:31 bunzip2 -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tail -> busybox lrwxrwxrwx root root 2010-04-29 13:31 poweroff -> busybox lrwxrwxrwx root root 2010-04-29 13:31 length -> busybox lrwxrwxrwx root root 2010-04-29 13:31 envdir -> busybox lrwxrwxrwx root root 2010-04-29 13:31 strings -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cttyhack -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nslookup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ipcalc -> busybox lrwxrwxrwx root root 2010-04-29 13:31 watchdog -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setuidgid -> busybox lrwxrwxrwx root root 2010-04-29 13:31 brctl -> busybox lrwxrwxrwx root root 2010-04-29 13:31 modprobe -> busybox lrwxrwxrwx root root 2010-04-29 13:31 id -> busybox lrwxrwxrwx root root 2010-04-29 13:31 unix2dos -> busybox lrwxrwxrwx root root 2010-04-29 13:31 runsvdir -> busybox lrwxrwxrwx root root 2010-04-29 13:31 env -> busybox lrwxrwxrwx root root 2010-04-29 13:31 md5sum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 grep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cryptpw -> busybox lrwxrwxrwx root root 2010-04-29 13:31 touch -> busybox lrwxrwxrwx root root 2010-04-29 13:31 realpath -> busybox lrwxrwxrwx root root 2010-04-29 13:31 losetup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 findfs -> busybox lrwxrwxrwx root root 2010-04-29 13:31 blkid -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tac -> busybox lrwxrwxrwx root root 2010-04-29 13:31 popmaildir -> busybox lrwxrwxrwx root root 2010-04-29 13:31 last -> busybox lrwxrwxrwx root root 2010-04-29 13:31 eject -> busybox lrwxrwxrwx root root 2010-04-29 13:31 stat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 crontab -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nohup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ipaddr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 watch -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setsid -> busybox lrwxrwxrwx root root 2010-04-29 13:31 beep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mktemp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hwclock -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uniq -> busybox lrwxrwxrwx root root 2010-04-29 13:31 runsv -> busybox lrwxrwxrwx root root 2010-04-29 13:31 egrep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 man -> busybox lrwxrwxrwx root root 2010-04-29 13:31 getty -> busybox lrwxrwxrwx root root 2010-04-29 13:31 crond -> busybox lrwxrwxrwx root root 2010-04-29 13:31 top -> busybox lrwxrwxrwx root root 2010-04-29 13:31 readprofile -> busybox lrwxrwxrwx root root 2010-04-29 13:31 logread -> busybox lrwxrwxrwx root root 2010-04-29 13:31 find -> busybox lrwxrwxrwx root root 2010-04-29 13:31 bbconfig -> busybox lrwxrwxrwx root root 2010-04-29 13:31 syslogd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pkill -> busybox lrwxrwxrwx root root 2010-04-29 13:31 klogd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ed -> busybox lrwxrwxrwx root root 2010-04-29 13:31 start-stop-daemon -> busy box lrwxrwxrwx root root 2010-04-29 13:31 cpio -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nmeter -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ip -> busybox lrwxrwxrwx root root 2010-04-29 13:31 volname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setlogcons -> busybox lrwxrwxrwx root root 2010-04-29 13:31 basename -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkswap -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hush -> busybox lrwxrwxrwx root root 2010-04-29 13:31 unexpand -> busybox lrwxrwxrwx root root 2010-04-29 13:31 runlevel -> busybox lrwxrwxrwx root root 2010-04-29 13:31 echo -> busybox lrwxrwxrwx root root 2010-04-29 13:31 makemime -> busybox lrwxrwxrwx root root 2010-04-29 13:31 getopt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 timeout -> busybox lrwxrwxrwx root root 2010-04-29 13:31 readlink -> busybox lrwxrwxrwx root root 2010-04-29 13:31 logname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fgrep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 awk -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sysctl -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pivot_root -> busybox lrwxrwxrwx root root 2010-04-29 13:31 killall5 -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dumpkmap -> busybox lrwxrwxrwx root root 2010-04-29 13:31 split -> busybox lrwxrwxrwx root root 2010-04-29 13:31 comm -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nice -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ionice -> busybox lrwxrwxrwx root root 2010-04-29 13:31 vlock -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setkeycodes -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ash -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkpasswd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 httpd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uncompress -> busybox lrwxrwxrwx root root 2010-04-29 13:31 run-parts -> busybox lrwxrwxrwx root root 2010-04-29 13:31 du -> busybox lrwxrwxrwx root root 2010-04-29 13:31 makedevs -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fuser -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cmp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 time -> busybox lrwxrwxrwx root root 2010-04-29 13:31 readahead -> busybox lrwxrwxrwx root root 2010-04-29 13:31 login -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fdisk -> busybox lrwxrwxrwx root root 2010-04-29 13:31 arping -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sync -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pipe_progress -> busybox lrwxrwxrwx root root 2010-04-29 13:31 killall -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dos2unix -> busybox lrwxrwxrwx root root 2010-04-29 13:31 zcip -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sort -> busybox lrwxrwxrwx root root 2010-04-29 13:31 clear -> busybox lrwxrwxrwx root root 2010-04-29 13:31 netstat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 install -> busybox lrwxrwxrwx root root 2010-04-29 13:31 vi -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setfont -> busybox lrwxrwxrwx root root 2010-04-29 13:31 arp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mknod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hostname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rtcwake -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dnsdomainname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lzopcat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ftpput -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cksum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tftpd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rdev -> busybox lrwxrwxrwx root root 2010-04-29 13:31 logger -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fdformat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ar -> busybox lrwxrwxrwx root root 2010-04-29 13:31 switch_root -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ping6 -> busybox lrwxrwxrwx root root 2010-04-29 13:31 kill -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dnsd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 zcat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 softlimit -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chvt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nc -> busybox lrwxrwxrwx root root 2010-04-29 13:31 insmod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 vconfig -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setconsole -> busybox lrwxrwxrwx root root 2010-04-29 13:31 adjtimex -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkfs.vfat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hostid -> busybox lrwxrwxrwx root root 2010-04-29 13:31 umount -> busybox lrwxrwxrwx root root 2010-04-29 13:31 route -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dmesg -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lzop -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ftpget -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chrt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tftp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rdate -> busybox lrwxrwxrwx root root 2010-04-29 13:31 loadkmap -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fdflush -> busybox lrwxrwxrwx root root 2010-04-29 13:31 adduser -> busybox lrwxrwxrwx root root 2010-04-29 13:31 swapon -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ping -> busybox lrwxrwxrwx root root 2010-04-29 13:31 kbd_mode -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dirname -> busybox lrwxrwxrwx root root 2010-04-29 13:31 yes -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sleep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chroot -> busybox lrwxrwxrwx root root 2010-04-29 13:31 nameif -> busybox lrwxrwxrwx root root 2010-04-29 13:31 init -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uuencode -> busybox lrwxrwxrwx root root 2010-04-29 13:31 setarch -> busybox lrwxrwxrwx root root 2010-04-29 13:31 addgroup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkfs.minix -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hexdump -> busybox lrwxrwxrwx root root 2010-04-29 13:31 udpsvd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rmmod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 diff -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lzmacat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ftpd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chpst -> busybox lrwxrwxrwx root root 2010-04-29 13:31 test -> busybox lrwxrwxrwx root root 2010-04-29 13:31 raidautorun -> busybox lrwxrwxrwx root root 2010-04-29 13:31 loadfont -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fbsplash -> busybox lrwxrwxrwx root root 2010-04-29 13:31 [[ -> busybox lrwxrwxrwx root root 2010-04-29 13:31 swapoff -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pidof -> busybox lrwxrwxrwx root root 2010-04-29 13:31 iptunnel -> busybox lrwxrwxrwx root root 2010-04-29 13:31 df -> busybox lrwxrwxrwx root root 2010-04-29 13:31 xargs -> busybox lrwxrwxrwx root root 2010-04-29 13:31 slattach -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chpasswd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mv -> busybox lrwxrwxrwx root root 2010-04-29 13:31 inetd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uudecode -> busybox lrwxrwxrwx root root 2010-04-29 13:31 seq -> busybox lrwxrwxrwx root root 2010-04-29 13:31 [ -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkfifo -> busybox lrwxrwxrwx root root 2010-04-29 13:31 head -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tunctl -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rmdir -> busybox lrwxrwxrwx root root 2010-04-29 13:31 devmem -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lsmod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fsync -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chown -> busybox lrwxrwxrwx root root 2010-04-29 13:31 telnetd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pwd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ln -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fbset -> busybox -rwsr-xr-x root root 1083568 2008-08-01 14:00 busybox lrwxrwxrwx root root 2010-04-29 13:31 svlogd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pgrep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 iprule -> busybox lrwxrwxrwx root root 2010-04-29 13:31 depmod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 whoami -> busybox lrwxrwxrwx root root 2010-04-29 13:31 showkey -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chmod -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ifup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 usleep -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sendmail -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkdosfs -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hdparm -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ttysize -> busybox lrwxrwxrwx root root 2010-04-29 13:31 rm -> busybox lrwxrwxrwx root root 2010-04-29 13:31 deluser -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lsattr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fsck.minix -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chgrp -> busybox lrwxrwxrwx root root 2010-04-29 13:31 telnet -> busybox lrwxrwxrwx root root 2010-04-29 13:31 pscan -> busybox lrwxrwxrwx root root 2010-04-29 13:31 linuxrc -> busybox lrwxrwxrwx root root 2010-04-29 13:31 false -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sv -> busybox -rw-r--r-- root root 22188 2008-08-01 14:00 wireless_modem lrwxrwxrwx root root 2010-04-29 13:31 patch -> busybox lrwxrwxrwx root root 2010-04-29 13:31 iproute -> busybox lrwxrwxrwx root root 2010-04-29 13:31 delgroup -> busybox lrwxrwxrwx root root 2010-04-29 13:31 who -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sha512sum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chattr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 msh -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ifplugd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 uptime -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sed -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mkdir -> busybox lrwxrwxrwx root root 2010-04-29 13:31 hd -> busybox -rwsr-xr-x root root 26248 2008-08-01 14:00 su lrwxrwxrwx root root 2010-04-29 13:31 tty -> busybox lrwxrwxrwx root root 2010-04-29 13:31 resize -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ls -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fsck -> busybox lrwxrwxrwx root root 2010-04-29 13:31 chat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tee -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ps -> busybox lrwxrwxrwx root root 2010-04-29 13:31 linux64 -> busybox lrwxrwxrwx root root 2010-04-29 13:31 fakeidentd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 passwd -> busybox -rw-r--r-- root root 5540 2008-08-01 14:00 crasher lrwxrwxrwx root root 2010-04-29 13:31 iplink -> busybox lrwxrwxrwx root root 2010-04-29 13:31 deallocvt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 which -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sha256sum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 catv -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mountpoint -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ifenslave -> busybox lrwxrwxrwx root root 2010-04-29 13:31 unzip -> busybox lrwxrwxrwx root root 2010-04-29 13:31 scriptreplay -> busybox lrwxrwxrwx root root 2010-04-29 13:31 microcom -> busybox lrwxrwxrwx root root 2010-04-29 13:31 halt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 true -> busybox lrwxrwxrwx root root 2010-04-29 13:31 reset -> busybox lrwxrwxrwx root root 2010-04-29 13:31 lpr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 freeramdisk -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cat -> busybox lrwxrwxrwx root root 2010-04-29 13:31 tcpsvd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 printf -> busybox lrwxrwxrwx root root 2010-04-29 13:31 linux32 -> busybox lrwxrwxrwx root root 2010-04-29 13:31 expr -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sulogin -> busybox lrwxrwxrwx root root 2010-04-29 13:31 openvt -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ipcs -> busybox lrwxrwxrwx root root 2010-04-29 13:31 dd -> busybox lrwxrwxrwx root root 2010-04-29 13:31 wget -> busybox lrwxrwxrwx root root 2010-04-29 13:31 sha1sum -> busybox lrwxrwxrwx root root 2010-04-29 13:31 cal -> busybox lrwxrwxrwx root root 2010-04-29 13:31 mount -> busybox lrwxrwxrwx root root 2010-04-29 13:31 ifdown -> busybox lrwxrwxrwx root root 2010-04-29 13:31 unlzop -> busybox lrwxrwxrwx root root 2010-04-29 13:31 script -> busybox lrwxrwxrwx root root 2010-04-29 13:31 expand -> busybox #[/codebox] [codebox]-rw-r--r-- root root 219254 2008-08-01 14:00 bcm4329.ko -rw-r--r-- root root 162228 2008-08-01 14:00 tun.ko md5sum /system/lib/modules/* ca6fcdcf85851b78c4dff90c6c08d577 /system/lib/modules/bcm4329.ko 065ed65312fa82a4566c41009226fd09 /system/lib/modules/tun.ko[/codebox] [codebox]# ls -l /dev/tun ls -l /dev/tun crw-r----- vpn vpn 10, 200 2010-05-04 12:41 tun # ls -l /dev/net/tun ls -l /dev/net/tun lrwxrwxrwx root root 2010-05-04 12:41 tun -> /dev/tun # find / -type f -name vpnc\* -print0 | xargs -0 md5sum find / -type f -name vpnc\* -print0 | xargs -0 md5sum 6cd757190f6fa582bc632b8be4926606 /data/data/org.codeandroid.vpnc_frontend/files /vpnc-script 256d1b2c1bf93c683233802871d5a571 /data/data/org.codeandroid.vpnc_frontend/files /vpnc 84b4cd977051f540a7f93ade8784191d /data/data/org.codeandroid.vpnc_frontend/share d_prefs/vpnc.xml
Guest modacorule Posted May 4, 2010 Report Posted May 4, 2010 Hi! Well had to flash the ROM again... Is there a possibility or installation method to flash both a2sd AND busybox so that "VPN Connections" works? Flashing one of the apps prevents installing the other (E:Can't symlink /system/xbin/[ E: Failure at line.... ). Has anyone achieved to install both? Cheers
Guest Mihai2 Posted May 5, 2010 Report Posted May 5, 2010 I still have problems getting a connection to my VPN - no idea what is wrong, but my settings look right so far. Any idea what could be wrong? The output of the commands looks fine, I only imagine that you don't have the tun module loaded. Run "lsmod" in order to check if tun is loaded or not. # lsmod tun 11200 0 - Live 0xbf000000 If you don't see a line starting with "tun" then you must load the kernel module: insmod /system/lib/modules/tun.ko You will need to do this only once per session, before your first connection attempt. "Once per session" means that if you reboot your phone you will need to do it again. You can automate the running of this command by using an application like "GScript", ConnectBot... etc.
Guest Mihai2 Posted May 5, 2010 Report Posted May 5, 2010 Well had to flash the ROM again... Is there a possibility or installation method to flash both a2sd AND busybox so that "VPN Connections" works? Flashing one of the apps prevents installing the other (E:Can't symlink /system/xbin/[ E: Failure at line.... ). Has anyone achieved to install both? If you installed A2SD first then you already have busybox and the needed symlinks in place. You only need the tun kernel module so you will have to flash this file instead: http://xcyb.org/android/tun_desire_signed.zip . This zip file does not include busybox so you won't get those errors while flashing. If anyone installed busybox_tun_desire_signed.zip first and then wants to try A2SD then he will have to clean up the /system/xbin/ directory first: find /system/xbin -type l -maxdepth 1 | while read file; do if [ `readlink "$file"` == "busybox" ]; then rm "$file"; fi; done...and then install A2SD. Anyways, see my previous post regarding checking/loading the tun module.
Guest modacorule Posted May 5, 2010 Report Posted May 5, 2010 If you installed A2SD first then you already have busybox and the needed symlinks in place. You only need the tun kernel module so you will have to flash this file instead: http://xcyb.org/android/tun_desire_signed.zip . This zip file does not include busybox so you won't get those errors while flashing. If anyone installed busybox_tun_desire_signed.zip first and then wants to try A2SD then he will have to clean up the /system/xbin/ directory first: find /system/xbin -type l -maxdepth 1 | while read file; do if [ `readlink "$file"` == "busybox" ]; then rm "$file"; fi; done...and then install A2SD. Anyways, see my previous post regarding checking/loading the tun module. Well done! Thanks for your support! Finally works :P
Guest gforums Posted May 5, 2010 Report Posted May 5, 2010 Mihai2, thanks for having a look at it. However, tun.ko is already loaded. So everything is right...? Probably then it just won't work properly with our Cisco VPN? Is there another VPN tool on the market which I could try? thanks!
Guest Mihai2 Posted May 5, 2010 Report Posted May 5, 2010 thanks for having a look at it. However, tun.ko is already loaded. So everything is right...? Probably then it just won't work properly with our Cisco VPN? Try to issue an "adb logcat" command after the application crashes and look for the lines related to "VPN Connections". Is there another VPN tool on the market which I could try? I don't know, in my case it worked and I didn't look further.
Guest _Dejan_ Posted May 5, 2010 Report Posted May 5, 2010 Mihai2 I need little help with VPN for Cisco. 1.)Im install tun_desire_signed.zip because I already have A2SD. 2.)Im install VPN_Connections_v097.apk package 3.)Configure it(Im not shure if Im right configure it) 4.)Connect VPN(Status is connected) But I can't open http page from Phone. From PC with Cisco VPN client and same wireless connection work ok. In windows VPN client I use next settings: Host: 123.123.123.123 Authentication: Group Authentication - Checked name: somename1 Password: somepassword1 Transport: Enable Transparent Tunneling IPSec over UDP - Checked This is all what Im setup in windows. When I click connect I get dialog for username and password: Username: someusername2 Password: somepassword2 In VPN Connections in phone Im setup next: Connection name: Work IPSec gateway address: 123.123.123.123 IPSec ID: somename1 IPSec Secret: somepassword1 Username: someusername2 Password: somepassword2 Password + Tokens Digits: Unchecked Timeout: 30 What I doing wrong? I dont have linux where I can test commands...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now