[Q] openvpn on skyraider 2.5.2 - Droid Incredible Q&A, Help & Troubleshooting

I am running unrevoked forever, have the skyraider kernel with tun support, installed the openvpn binary and have pointed to the /system/lib/modules location for the tun.ko in the openvpn settings app. I have also loaded the appropriate certs and conf files to my sdcard. when attempting to authenticate with my vpn I receive the following error message:
Cannot allocate TUN/TAP dev dynamically
Any suggestions on what I am doing wrong?
Are these instructions still valid with the skyraider ROM?:
hxxp://forum.xda-developers.com/showthread.php?t=702634&highlight=openvpn

bump..
no suggestions?

Related

how to add tun.ko to /system/lib/modules?

Since MoDaCo r2 now can't touch the system files,root explorer & adb could do nothing for it,please help me,thank you,I need to use openvpn to connect to my company network
Simply apply the attached zip file from recovery mode~
If you want to push it manually, place your phone in recovery mode and then adb push the files.
I test push it in recovery mode,it tell me sucessfully:
D:\>adb push tun.ko /system/lib/modules
adb server is out of date. killing...
* daemon started successfully *
1568 KB/s (162228 bytes in 0.101s)
but after I boot into the system,there is no tun.ko in the modules directory.
could anybody teach me how to put the tun.ko to /system/lib/modules?
thank you very much indeed
miyu-hitori said:
I test push it in recovery mode,it tell me sucessfully:
D:\>adb push tun.ko /system/lib/modules
adb server is out of date. killing...
* daemon started successfully *
1568 KB/s (162228 bytes in 0.101s)
but after I boot into the system,there is no tun.ko in the modules directory.
could anybody teach me how to put the tun.ko to /system/lib/modules?
thank you very much indeed
Click to expand...
Click to collapse
I believe you can only "push" via linux, right now at least. So, you're better off flashing it.
wellsgz said:
Simply apply the attached zip file from recovery mode~
Click to expand...
Click to collapse
thank you for the zip file,I flash it,but I find it still can't use openvpn ,so I test execute openvpn int the terminal,it tell me:
link_image[1721]: 1007 could not load needed library 'liblzo.so' for (load_library[1051]:Library 'liblzo.so' not found)CANNOT LINK EXECUTE
could you add liblzo.so to the zip file ?thank you.I use the openvpn bulitin in modaco r2 rom
eViL D: said:
I believe you can only "push" via linux, right now at least. So, you're better off flashing it.
Click to expand...
Click to collapse
thank you for the quick reply,I met the new issue:
I flash the zip file but I find it still can't use openvpn ,so I test execute openvpn int the terminal,it tell me:
link_image[1721]: 1007 could not load needed library 'liblzo.so' for (load_library[1051]:Library 'liblzo.so' not found)CANNOT LINK EXECUTE
could you add liblzo.so to the zip file ?thank you.I use the openvpn bulitin in modaco r2 rom
eViL D: said:
I believe you can only "push" via linux, right now at least. So, you're better off flashing it.
Click to expand...
Click to collapse
nop, paul's root kit r2 for windows is able to push stuff just fine, i'm using windows version. actually, i guess u may even place all openvpn's stuff on SDcard, even the kernel module and change the paths involved in openvpn settings app, so u will not loose stuff on reflash... (as far as i use statically linked openvpn binary i need the binary itself and kernel module) will try it on next one.
MarvinFS said:
nop, paul's root kit r2 for windows is able to push stuff just fine, i'm using windows version. actually, i guess u may even place all openvpn's stuff on SDcard, even the kernel module and change the paths involved in openvpn settings app, so u will not loose stuff on reflash... (as far as i use statically linked openvpn binary i need the binary itself and kernel module) will try it on next one.
Click to expand...
Click to collapse
I got my openvpn working,thank you

OpenVPN connects but no pages load...?

Hi,
I've been struggling with OpenVPN for quite some time now, but have finally got it connecting using DeFrost 2.0d. The joy ends there as no pages load for me. Have googled, and googled some more to figure out the issue.
I thought it could be DNS related or perhaps something mentioned in this thread with a fix in this post ?
"
wraithdu posted on 28th June 2010, 04:20 PM
I had the same problem, and it's due to the built in versions of ifconfig and route I think. I did this:
1) installed busybox 1.15.3 to /system/xbin and installed the links (busybox --install .)
2) reboot into recovery
3) mount /system and adb shell:
# cd /system/bin
mv ifconfig ifconfigoff
mv route routeoff
ln -s /system/xbin/busybox ./ifconfig
ln -s /system/xbin/busybox ./route
4) reboot
This creates the busybox ifconfig and route symlinks in /system/bin. After this, OpenVPN Settings works perfectly. Since OpenVPN uses hardcoded paths, this is the only workaround I can think of."
Related to ifconfig and route?
Anyone with any tips for me - much appreciated!
Cheers
(Sorry - can't post link to thread as new user - in Droid Incredible Android Development)
semi-fixed...
works fine over wifi...the problem above over 3G...connects fine but doesn't browse anything. very strange. could my provider be blocking vpn?
anybody on Hi/KPN in the netherlands and have this working over 3G? have seen reports of the same problem quite allot, fine over wifi but not over 3g.
In my case problem was that Desire didn't acquire IP address from DHCP. The same config file that worked on my laptop didn't work on my phone. VPN connected properly by could not open any page from my local network.
After I've added ifconfig line in ovpn config file - it started to work.
could you show me an example of your config please?

OpenVPN / tun.ko / Binary Galaxy Tab

Hi,
openvpn is up and running.
Install busybox via busybox-Installer (Market). Then install Openvpn via Openvpn-Installer (Market). I dont know if Openvpn-Installer is needed, as we are replacing the binary with another file - but as it takes care of dependencies just install it
Use tun.ko from there:
xxx.android-hilfe.de/samsung-galaxy-tab-forum/51007-openvpn-tun-ko-unionfs-ko.html
(replace the xxx with www)
Binary from here: (OpenVPN Installer won't work - its not able to recognize push options)
github.com/downloads/fries/android-external-openvpn/openvpn-static-2.1.1.bz2
Finally you have to provide the busybox-ifconfig in /system/xbin/bb/ifconfig and busybox-route in /system/xbin/bb/route (ln -s /system/bin/busybox /system/xbin/bb/ifconfig ...)
cheers
patrick
Can you give any hint how to install the additional binaries? Even with a rooted Tab and a terminal, I dot not get this working.
Sent from my GT-P1000 using Tapatalk
hi
just run openvpn installer from the market
I tried and got the connection established. But in opposite to my Desire, traffic is not routed that way.
Also, there is no /dev/tun
Addendum: Got it running, beside that I am using tap, doing a reinstall after having created the a.m. symlinks for busyboy, adding some push options on the server to force the routing did the trick (they were not required on my Desire).
I used the tun.ko module for the VPN Connections app and got it working great... except when I disable the VPN connection, it doesn't reset the dns servers to the values that where there before.
I don't believe it's the application since the same version on my Nexus One works correctly. If I turn off the data then turn it back on, I get my data back. I believe it to be the tun.ko not being written to reset the dns entries.
I think I could kiss someone, I now have working cisco vpn
How do we make the tun.ko module stay after a reboot? Mine disappeared from /modules/ when I restarted my tab? I copied it with root explorer.
Also if we can get it to stick will I have to run these commands each time?
insmod /modules/tun.ko
ln -s /system/bin/busybox/system/xbins/bb/ route
ln -s /system/bin/busybox/system/xbins/bb/ ifconfig
Hi, i am not getting this to work, is there any thing i am missing? What i did:
1. Rooted device and installed busybox
2. copying the tun.ko from the german site to /modules after remounting to r/w.
3. Running those three commands from previous post in terminal
4. Installing vpnc 0.99 and configuring connection
5. Connect
still get failed to connect.
any tips please?
Sent from my GT-P1000 using XDA App
trondjl said:
Hi, i am not getting this to work, is there any thing i am missing? What i did:
1. Rooted device and installed busybox
2. copying the tun.ko from the german site to /modules after remounting to r/w.
3. Running those three commands from previous post in terminal
4. Installing vpnc 0.99 and configuring connection
5. Connect
still get failed to connect.
any tips please?
Sent from my GT-P1000 using XDA App
Click to expand...
Click to collapse
I believe that's exactly what I did. Were all the commands successful?
works now.
I rebooted and reinstalled vpnc and busybox and recopied and reissued commands. Something must have been hanging from all my testing.
Tanks!
This is so great! Now I'm online with Sip, xmpp and RDP with work!
I know, get a life
Sent from my GT-P1000 using XDA App
I had to copy tun.ko to /system/lib/modules. I did have to create that directory but when I did, it was loaded every time.
You can make sure by using the lsmod command in the terminal emulator.
Yes, it works. Excellent!
Sent from my GT-P1000 using XDA App
sorry for noob question as i dont know that much about open vpn
i know its a virtual private network, and some ppl in my country offering a cheaper internet connection through them
what did this one do exactly?
Cisco vpn ftw
This is great! After reading everything and getting everything done I can connect through our Cisco VPN.
Question
What does this do that the Tabs built in VPN doesnt?
How can I use terminal emulator to run the two ln -s commands? I guess I need some prior commands to enable r/w to system?
I bought Better Terminal Emulator Pro in the Market to do this.
This is how I did it:
1. Install busybox from the Market into /system/bin,
2. Install root-explorer (to get r/w access to /system/xbin),
3. Create /system/xbin/bb,
4. Create symbolic links in /system/xbin/bb to busybox with the names ifconfig and route:
ln -s /system/bin/busybox /system/xbin/bb/route
ln -s /system/bin/busybox /system/xbin/bb/ifconfig
5. Copy tun.ko into /system/xbin with root-explorer,
6. Install OpenVPN from the Market into /system/xbin and set the paths to route/ifconfig to /system/xbin/bb,
7. Install OpenVPN Settings from the Market,
8. Configured to activate the TUN module via Menu / Advanced with insmod in path /system/xbin/tun.ko and to activate "Load tun kernel module"
9. Copied my existing and working OpenVPN-settings to the memory card and finally
10. Set the path to the OpenVPN configuration and to the OpenVPN binary.
After this, the OpenVPN connection could be established the data was rerouted via that connection.
@alias_neo
The internal Android functions do not support OpenVPN which can be quite easily installed on a Linux root server to establish a secure connection to that server. Setting the firewall rules on that server properly, the whole traffic can virtually enter the internet via the server and systems inbetween the Tab and the server cannot see what's going on anymore. So even an open WLAN hotspot can be safely used as well as all monitoring/logging/recording on forwarding systems sees only an encrypted connection.
Also OpenVPN is in my eyes more secure than a simple username/password encrypted connection (as PPTP offers). So, the secret to encrypt the connection is better protected as with PPTP.
If a VPN provider is used to tunnel the traffic into the internet (to hide it from the systems inbetween when there is no own server available), the encryption method of the VPN provider is relevant. For example, SwissVPN only offers PPTP or OpenVPN.
ipaqkiller said:
I had to copy tun.ko to /system/lib/modules. I did have to create that directory but when I did, it was loaded every time.
You can make sure by using the lsmod command in the terminal emulator.
Click to expand...
Click to collapse
I don't know if' I'm missing something, but I can't get the module to automatically load on a reboot. lsmod doesn't show tun.ko in the list. I have to issue insmod /system/lib/modules/tun.ko on each startup.
EDIT: Think I've sussed it, will post my details later for anyone who wishes to get this setup for cisco only without installing the openvpn installer.
ritdaw said:
I don't know if' I'm missing something, but I can't get the module to automatically load on a reboot. lsmod doesn't show tun.ko in the list. I have to issue insmod /system/lib/modules/tun.ko on each startup.
Click to expand...
Click to collapse
That's why I use the OpenVPN Settings app from the Market. It allows to activate the module with insmod when OpenVPN is started as this obviously cannot be done by the system automatically.
ipaqkiller said:
I had to copy tun.ko to /system/lib/modules. I did have to create that directory but when I did, it was loaded every time.
You can make sure by using the lsmod command in the terminal emulator.
Click to expand...
Click to collapse
akxak said:
That's why I use the OpenVPN Settings app from the Market. It allows to activate the module with insmod when OpenVPN is started as this obviously cannot be done by the system automatically.
Click to expand...
Click to collapse
Worked that out in the end, I thought it was only specific to OpenVPN connections.
Nevermind...?

About CIFS Manager, coutts kernel and CM7

Anyone has been able to mount any Window$ share with CIFS Manager?? When I try to do it I give "No such file or directory" error, module is rightly loaded (I checked this with "lsmod")
Also I tried to do with terminal emulator with "mount -t cifs //xxx.xxx.xxx.xxx /mnt/cifs/xxx...." and same in "/sdcard/X" folder, and the same error in all of the cases
Also I'm using the latest couttstech kernel from here and nightly build from Cyanogen (It also was occured same error with older RCs and nightlies)

[Q] OpenVPN for Asus Transformer

I just bought an Asus Transformer. It is currently rooted and using Prime 1.7 final. I am trying to get OpenVpn working on it, but have not been succesful. I have downloaded BusyBox, OpenVPN instaler, and OpenVPN Settings. It looks like its logging on but then it states Fatal:linux ifconfig failed: Could not excute external program.
What am I missing?
Download the updated OpenVPN for Honeycomb (Optional)
http://code.google.com/p/android-openvpn-settings-honeycomb/downloads/list
Follow these instructions:
http://forum.xda-developers.com/showthread.php?t=1071228

Categories

Resources