Comments (17)
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.
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.
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.
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.
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.
Same here on liquid.
Original comment by [email protected]
on 29 Jan 2010 at 5:28
from get-a-robot-vpnc.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- How trustworthy can this client be?
- reboot xperia x10 mini
- Can't connect without Group login/password
- need tun.ko for 2.6.32.9 samsung galaxy 3 gt-i5800 HOT 2
- Is hybrid mode supported? HOT 1
- Internal addresses will not work without domain suffix HOT 1
- VPN Connection works, but no routes to the corporate network
- VPNC on Honeycomb (Acer A500) HOT 1
- If it's possible, need tun.ko module for Samsung Galaxy Tab gt-p1010 wifi only HOT 4
- Tablet/Landscape
- Motorola milestone tun.ko for kernel 2.6.32.9-g11068ed
- Wrong time format for last connected
- Fail To Connect - ps | grep 'vpnc$' | cut -c 10-14
- Samsung Galaxy Note HOT 2
- resolv.conf not getting VPN dns entry HOT 1
- CM9 Alpha 3 for Epic 4G Touch HOT 1
- Reboot phone when start vpnc HOT 1
- Can robot-vpnc work with config files
- Option Enable Single DES
- The FROYO tun.ko not works to load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from get-a-robot-vpnc.