Jump to content


Cisco VPN client on HTC Desire (short howto)


58 replies to this topic

#1
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire
In order to make the Cisco VPN client work on HTC Desire you must do the following:The 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 not
  • tun.ko module for the Desire kernel (thanks Richard Trip); the module is needed in order to be able to create the VPN
If you later need to clean up the /system/xbin/ directory of all the busybox symlinks you can paste the following line into an "adb shell" session:

find /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/andr...sire_signed.zip. It contains only the tun.ko module.

LATER EDIT: Important posts from this thread:
  • If the "VPN Connections" application crashes see this post
  • If you installed A2SD or you intend to install it see this post
  • If you are using a custom ROM and the connection is failing see this post
Best regards,
Mihai

Edited by Mihai2, 14 May 2010 - 06:02 AM.


#2
oeozan

oeozan

    Newbie

  • Members
  • Pip
  • 2 posts
  • Devices:HTC DESIRE
  • Twitter:@oeozan
Great !!! worked for me


#3
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts
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


#4
gforums

gforums

    Regular

  • Members
  • PipPip
  • 120 posts
  • Gender:Male
  • Location:Germany
  • Devices:null

View Postmodacorule, on May 2 2010, 23:32, said:

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 by gforums, 02 May 2010 - 10:25 PM.


#5
wellsgz

wellsgz

    Newbie

  • Members
  • Pip
  • 18 posts
  • Devices:null
Many thx mihai, ipsec vpn access is the main purpose that i root my desire~ now you make it works finally~


#6
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postmodacorule, on May 3 2010, 00:32, said:

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


#7
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts

View PostMihai2, on May 3 2010, 05:18, said:

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 by modacorule, 03 May 2010 - 05:45 AM.


#8
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postgforums, on May 3 2010, 01:05, said:

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.

Quote

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).


#9
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts

View PostMihai2, on May 3 2010, 05:40, said:

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 by modacorule, 03 May 2010 - 06:05 AM.


#10
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postmodacorule, on May 3 2010, 09:04, said:

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.


#11
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts

View PostMihai2, on May 3 2010, 06:25, said:

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


#12
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postmodacorule, on May 3 2010, 16:30, said:

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


#13
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts

View PostMihai2, on May 3 2010, 14:41, said:

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...


#14
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postmodacorule, on May 3 2010, 19:24, said:

...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


#15
Ecstacid

Ecstacid

    Newbie

  • Members
  • Pip
  • 1 posts
  • Devices:HTC Desire
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:


#16
bcmobile

bcmobile

    I eat Apples

  • MoDaCo Ad Free
  • PipPip
  • 90 posts
  • Gender:Male
  • Location:Sydney, Australia
  • Devices:HTC Desire, HTC TouchPro
  • Twitter:@skitzandroid
Hey nice work.

One less reason to buy an iPhone :P

_______________
skitzandroid

#17
gforums

gforums

    Regular

  • Members
  • PipPip
  • 120 posts
  • Gender:Male
  • Location:Germany
  • Devices:null
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

type grep
grep is /system/xbin/grep

type cut
cut is /system/xbin/cut

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
#

-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

# 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


#18
alphagamma

alphagamma

    Newbie

  • Members
  • Pip
  • 5 posts
Fantastic!


#19
modacorule

modacorule

    Newbie

  • Members
  • Pip
  • 22 posts
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


#20
Mihai2

Mihai2

    Newbie

  • Members
  • Pip
  • 17 posts
  • Location:Bucharest
  • Devices:HTC Desire

View Postgforums, on May 4 2010, 18:09, said:

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users