Jump to content

get-a-robot-vpnc on Desire


Guest alphagamma

Recommended Posts

Guest alphagamma

Anyone got this working already?

This is the the number 1 reason I rooted my Desire, but I can't get it working for now.

When I try to connect with the app it crashes out of the app.

I think it has something to do with tun support.

Can somebody help?

Link to comment
Share on other sites

Guest alphagamma

Nobody else that wants this?

Easiest would be that somebody makes a flash zip out of it, I think it needs write access to system.

Link to comment
Share on other sites

Guest Richard Trip
I have ask paul for help to make the tun work on desire , it's on the todo list now :-)

hope to get so soon...

Already did that: hxxp://android.modaco.com/content/htc-desire-desire-modaco-com/307594/openvpn-update-zip-tun-ko/

Link to comment
Share on other sites

Guest trauter

first: Im new here and wanna thank all great developers here for their work.

so now the business stuff:

ive installed the tun.ko did a insmod/restart etc.

when i'm connecting via adb and go to

/data/data/org.codeandroid.vpnc_frontend/files

and run

./vpnc --script ./vpnc-script

and put in the config, everything seems to work fine (vpnc is starting through)

Connecting via the VPNC Gui doesn't seem to work for me("Failed to connect").

Logcat says:

D/VPN_Connections:
enter gateway: [gateway]
...
enter password for [user]:******
done interacting with vpnc
process stderr
Attempt to read vpnc process id did not return anything
proess had died, return as failed connection[/codebox]

someone got it work with the gui?

Link to comment
Share on other sites

Guest Mihai2
Attempt to read vpnc process id did not return anything

proess had died, return as failed connection
someone got it work with the gui?
Actually it sort of works from the GUI, but the feedback is missing. When you hit "Connect" the vpnc is started succesfully, however the piece of code that checks if the process is running is failing...
writeLine( os, null, "ps | grep 'vpnc$' | cut -c 10-14" );

... because the "grep" and "cut" binaries are missing. The "toolbox" binary doesn't provide them and the default search path makes a little difficult to create some symlinks to workaround this.

I see 2 choices here:

  1. edit the Java source file and insert the full path for the "grep" and "cut" commands (considering one already has a proper busybox installed somewhere). Or even better: get rid of those commands alltogether and parse the "ps" output internally.
  2. make some signed zip file that includes the "grep" and "cut" symlinks directly into /system/xbin/ (again, you need a busybox installed)

I'm new to android hacking, maybe there is another easier aproach to this. But at least now you know why you're getting that "Failed to connect" message.

Best regards,

Mihai

Link to comment
Share on other sites

Guest Valmar

Dear All,

thanks to what people pointed out here I could get it working from the console, and I am trying to create scripts that connect and disconnect from vpn. However, does anyone know if someone is working on a gui for the HTC desire. I downloaded the SDK and the vpnc frontend. However, I don't know Java, so it could take some time before I come up with something

Thanks for all hints

Valerio

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.