bigsml / get-a-robot-vpnc

Automatically exported from code.google.com/p/get-a-robot-vpnc
0 stars 0 forks source link

Can't find tun #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. insmod tun.ko
2. try to connect
3.

What is the expected output? What do you see instead?
Expect connection, but fails.  The log shows 'tun does not exist'.

What version of the product are you using? On what operating system?
0.96, Android 2.0.1, droid

Please provide any additional information below.

tun is shown as loaded by lsmod, and ls /dev/tun shows

crw-r----- vpn      vpn       10, 200 2009-12-18 21:18 tun

the code appears to be looking for "/dev/net/tun" if I am reading the right 
bit of it.  There is no "/dev/net" directory.  If I create /dev/net, 
nothing gets put in it when reloading the device.

Original issue reported on code.google.com by jkearne...@gmail.com on 19 Dec 2009 at 2:29

GoogleCodeExporter commented 9 years ago
Some progress... I made a symlink from /dev/tun to /dev/net/tun, and set the 
vpnc 
binary executable.  Now I get:

D/VPN_Connections(27715): NetworkDatabase:singleNetwork - Start
E/VPN_Connections(27715): While reading from / writing to process stream
E/VPN_Connections(27715): java.io.IOException: Broken pipe
E/VPN_Connections(27715):   at 
org.apache.harmony.luni.platform.OSFileSystem.writeImpl(Native Method)
E/VPN_Connections(27715):   at 
org.apache.harmony.luni.platform.OSFileSystem.write(OSFileSystem.java:178)
E/VPN_Connections(27715):   at 
java.io.FileOutputStream.write(FileOutputStream.java:297)
E/VPN_Connections(27715):   at 
java.io.FileOutputStream.write(FileOutputStream.java:253)
E/VPN_Connections(27715):   at 
org.codeandroid.vpnc_frontend.Util.writeLine(Util.java:85)
E/VPN_Connections(27715):   at 
org.codeandroid.vpnc_frontend.VpncProcessHandler.connect(VpncProcessHandler.java
:68)
E/VPN_Connections(27715):   at 
org.codeandroid.vpnc_frontend.VPNC$3.run(VPNC.java:210)

Original comment by jkearne...@gmail.com on 19 Dec 2009 at 2:41

GoogleCodeExporter commented 9 years ago
1- There is no need to create the symlink to /dev/net/tun or the /dev/net 
directory,
we take care of that.

2- Do you have a working su? In particular, please try running "su -c sh" from a
terminal on your phone and see if it works. That seems to be the problem.

Original comment by babak.mozaffari on 19 Dec 2009 at 8:56

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I did have a working su, but it turns out (as detailed on the droid page) that 
setting 
up busybox did the trick, so this issue can be closed.

Original comment by jkearne...@gmail.com on 26 Dec 2009 at 6:53