Giter Club home page Giter Club logo

Comments (17)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Update 15.12.2009:
vpnc works now, but it still says "Failed to connect".

Original comment by [email protected] on 15 Dec 2009 at 8:08

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
How do you mean, it works but says failed to connect? Would you look at / 
attach the
following file from your phone after reproducing the error:

/data/data/org.codeandroid.vpnc_frontend/files/lastConnection.log

Original comment by babak.mozaffari on 18 Dec 2009 at 7:01

  • Changed state: Started

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Ok!

Ok, sometimes it works, sometimes not but it says every time "Connection 
failed".

lastConnection.log:
------ Start file ------ 
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.code
android.vpnc_frontend/files/vpnc-script --no-detach
Enter IPSec gateway address:
129.27.200.1
Enter IPSec ID for 129.27.200.1:
default
Enter IPSec secret for [email protected]:
default
Enter username for 129.27.200.1:
neuholdb
Enter password for [email protected]:
********



process stderr

process had died, return as failed connection
------ End File ------ 



Original comment by [email protected] on 21 Dec 2009 at 6:39

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
I can confirm this on another hero rom, the log file is the same but the 
connection
is established every time with the connection failed message so in order to
disconnect I have to close the wifi/data connection.


Original comment by [email protected] on 28 Dec 2009 at 6:55

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
I can also confirm this on a hero rom eViL (nano SenSe v2.0.1 with BusyBox 
v1.15.0).

I found that the grep-regex in Util.java: "ps | grep 'vpnc$' | cut -c 10-14" 
doesn't
catch the vpnc process and so the gui assumes that vpnc has failed.

A better way might be to create a pid file for example in /dev and read it.

Android log:
----------------
D/VPN_Connections(10583): done interacting with vpnc
D/VPN_Connections(10583): process stderr:
D/VPN_Connections(10583):
D/VPN_Connections(10583): Attempt to read vpnc process id did not return 
anything
D/VPN_Connections(10583): process had died, return as failed connection
----------------

Original comment by [email protected] on 14 Jan 2010 at 6:16

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Same here on liquid.

Original comment by [email protected] on 29 Jan 2010 at 5:28

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Same for me on Modaco Hero. I  believe the grep regex should just need changing 
to 
"/system/xbin/pidof vpnc" which I've done so now I'm just tryign to get my head 
around 
what needs doing to rebuild that into an APK as I haven't done any Android dev 
/ build 
work before.

Original comment by [email protected] on 12 Feb 2010 at 1:37

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Right I've built it and it is now working for me, feel free to give the 
attached a try 
:-)

Original comment by [email protected] on 12 Feb 2010 at 2:03

Attachments:

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
It works great, thanks for this patched version.

Original comment by [email protected] on 12 Feb 2010 at 3:09

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Excellent - glad its of use to someone else :-)

Original comment by [email protected] on 12 Feb 2010 at 9:28

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Here's a tiny patch which uses pidof if it exists and otherwise uses the old 
grep
command.  That way there shouldn't be any backward compatibility issues or other
worries that might stop the maintainers from including it.

Original comment by [email protected] on 6 Mar 2010 at 2:01

Attachments:

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Hey crpalmer,

I have the pidof.patch and reviewed it.  How do I implement this?  Do I have to 
take 
apart the apk and patch it?

thanks, prscott1

Original comment by [email protected] on 19 Mar 2010 at 2:18

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Adam, 

what did you change in your debug version?  

I have similar issues depending on which busybox build is installed on my ROM 
of the 
day.  I connect, but it shows disconnect.  this is okay, except I can't 
disconnect 
easily (must reboot to reset the default route).  I wrote a little script that 
mimics the vpnc-script to delete the tun interface, etc. but not always clean.

Original comment by [email protected] on 19 Mar 2010 at 2:22

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
prscott1,

My patch is against the source repository.  You would need to download the 
source and
apply the patch and then build the source.

Original comment by [email protected] on 20 Mar 2010 at 9:44

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Connection works for me too as mentioned by benedikt.neuhold with status 
"Failed to
connect" and logcat shows the same error messages as Comment 3.

Also noticed that closing and reopening VPN Connections shows the last connected
status as "Jan 1 1970 05:30" and 'm in IST.

Original comment by [email protected] on 10 May 2010 at 6:44

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Hi,
I have the same issue as described in comment 3 with my HTC Hero, running 
VillainROM
6.2 and vpnc v98. I tried the debug version provided in comment 8 with no 
success. 

Original comment by [email protected] on 2 Jun 2010 at 7:21

from get-a-robot-vpnc.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 19, 2024
Same issue here, Acer Liquid E, a little bit more in deep:

./vpnc --script vpnc-script --no-detach
Enter IPSec gateway address: <ip>
<ip>
Enter IPSec ID for <ip>: <id>
<id>
Enter IPSec secret for <group>@<ip>: <secret>

Enter username for <ip>: <user>
<user>
Enter password for <user>@<ip>m: <passwd>

vpnc-script: not found
can't initialise tunnel interface: Device or resource busy

Original comment by [email protected] on 5 Mar 2011 at 1:26

from get-a-robot-vpnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.