Hello
I'm testing this nice rom since 3 days.
After an update from googleplay, openvpnsetting now opens a prerequisite screen and check my device for root, busybox tun.ko and openvpn binary.
It's all ok , just TUN device driver isn't installed . Is this device mandatory for using openvpn ?
[edit] Okay, after searching a bit on openvpn, it seems that tun is not mandatory. Explanations here
Most of openvpn settings use TAP device, so missing TUN should not be a problem...
sksbir said:
Hello
I'm testing this nice rom since 3 days.
After an update from googleplay, openvpnsetting now opens a prerequisite screen and check my device for root, busybox tun.ko and openvpn binary.
It's all ok , just TUN device driver isn't installed . Is this device mandatory for using openvpn ?
[edit] Okay, after searching a bit on openvpn, it seems that tun is not mandatory. Explanations here
Most of openvpn settings use TAP device, so missing TUN should not be a problem...
Click to expand...
Click to collapse
It just need to copy tun.ko from /etc/modules to /system/lib/modules... It will be done for next release, but anyway you can do it by yourself via root browser.
Regards.
Huexxx said:
It just need to copy tun.ko from /etc/modules to /system/lib/modules... It will be done for next release, but anyway you can do it by yourself via root browser.
Regards.
Click to expand...
Click to collapse
Tested : works fine, but had before to create /system/lib/modules with root permissions
Thanks a lot.
Related
Has anyone figured out how to get OpenVPN working on a Motorola Milestone?
I tried to using the OpenVPN Installer and OpenVPN Settings apps from the Android Market but was not able to get it working.
Made some progress but still not working...
I've managed to install the OpenVPN binary to /system/bin.
Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.
I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.
Then I started my connection and was able to obtain an IP address.
BUT... still not able to surf to Youtube or other China blocked sites.
The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).
Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
dysa said:
I've managed to install the OpenVPN binary to /system/bin.
Got a Motorola Milestone Tun.ko driver from, http://code.google.com/p/sbdtools/downloads/list. It's been copied to /system/lib/modules. I've been able to enable it using the insmod command in adb shell. Verified it was running with the lsmod command.
I've moved my openvpn .ovpn config files to my SD, /sdcard/openvpn folder. Started the OpenVPN Settings app, configured the tun and path settings.
Then I started my connection and was able to obtain an IP address.
BUT... still not able to surf to Youtube or other China blocked sites.
The upload & download stats appear to be not moving, even when I try to surf to one of these websites (up: 0.02kBps - down: 0.02 kBps).
Will continue at it for some more, but if anyone is able to help, that would be much appreciated.
Click to expand...
Click to collapse
Hi, same here.. I am based in China and have done the steps you mentioned... I can connect to OpenVPN but there is no traffic.. I subscribe to 12vpn and called the helpdesk, they told me it could be due to DNS poisoning.. but really doubt that.. I got it working like once the first time but never did again...
@ pointdexler & dysa
I've also installed open VPN to system/bin on the droid 2 running 2.2.19. My config and certs have been transfered to /mnt/sdcard/openvpn and I've also setup my config in the open VPN GUI (available on the droid market) to point to this directory for my config.
After launching the app and attempting to connect, I get an error message that the command was not successful (the error is a bit more verbose than that).
I did find another app on Droid market that got me a bit closer to connecting called openVPN settings. The error output on this app is much more verbose and aids troubleshooting better. I was able to workout all of the application problems, but my issue now is with the tun.ko module. It appears that the downloadable modules online are for 2.1 and prior as none seem to work with 2.2. I have the module copied to /system/lib/modules and the app (openvpn settings) has a feature that loads the module (either by modprobe or insmod, you can choose). My problem now is that the tun.ko module seems to be wrong as I keep getting the error "Fatal: cannot allocate tun/tap dev dynamically."
Have either of you come accross this same issue?
Hi, I have running OpenVPN without problems. I use OpenVPN Settings from market, tun.ko on /sdcard and openvpn binary in /system/xbin. Make symlink ln -s /system/xbin /system/xbin/bb. Both files are in this archive http://www.android-hilfe.de/attachm...openvpn-auf-dem-milestone-tun_und_openvpn.zip. Working openvpn.ovpn + CA files in /sdcard/openvpn. In OpenVPN Settings set up Load module using - insmod and Path to module /sdcard/tun.ko. And OpenVPN is working. If not, try run from konsole : insmod /sdcard/tun.ko
Motorola Light 2.1 ROM + JIT
On CyanogenMod 6 for Milestone you need only tun.ko. No openvpn binary, no create symlink. In OpenVPN Settings only set up insmod and path to tun.ko.
(and sorry for my english )
OpenVPN
No worries ZS-Man, your English is much better than some people who are born speaking the language.
I unfortunately already tried loading the kernel module by command line with root (#) access and it gives me this error message:
insmod: init_module '/data/tun2.ko' failed (Exec format error)
I've tried many different versions of the tun.ko file available online. None seem to work with 2.2.20 OS (2.6.32 kernel)
Android version (2.1 or 2.2) is not important, only tun.ko must be compiled from same sources as kernel. You must search module for milestone2, or compile it by yourself from milestone2 kernel sources. Another nice app is Tunneldroid , it has log viewer - good for debugging openvpn connection.
help help help vpn issue
iam from a country that google does not support the market within
i installed the vpn and all works great market apps every thing but 3days later
the market wont open looks like the ip address from us has been blocked(internet sharing device located in us) and i was unable to open market again any way that i can chage the ip or howoften the company changes the ip address (cause its the same every time i connect vpn) or is there a way to use the vpn settings with another server provider than the freeopenvpn.com
where i can download another zip file with configuration to another server
help me please i ll die
Hello! I'm a newbie around here and in the Android land in general so please have mercy if I'm saying or doing something wrong here!
I just bought an S5570 and did an OTA update to 2.3.5 with kernel 2.6.35.7-perf-CL650682.
The problem is when I've tried to install OpenVPN. I've used the apps, got superuser, busybox, tun.ko installer, openvpn-installer and openvpn-settings.
I've loaded the module tun.ko manually (and moved to /system/lib/modules ), it loads fine, but when I cd /mnt/sdcard/openvpn and do openvpn client.conf the connection is established but then the phone restarts instantly.
I don't know what could be the problem, the module (tun.ko), the openvpn binary, or what? The client.conf file is fine, it works for my laptop so I don't think there's a problem with the conf file.
Any ideas?
Thanks in advance!
Ok, problem solved by flashing with emanoN v4
Does anybody use openvpn with abyss kernel (3.6 in this case)? I have never used openvpn for Android and when I activate it, it gives me the error message below:
"Failed to load tun module. Device node /dev/tun/ or dev/net/tun did not show up."
I have the certs and Conf files in the openvpn folder, busybox installed, and according to the openvpn installer, openvpn is installed. I'm using abyss 3.6.
Can anybody tell me what I'm doing incorrectly or what I have failed to do?
Sent from my GT-N7000 using XDA App
baka2x said:
Does anybody use openvpn with abyss kernel (3.6 in this case)? I have never used openvpn for Android and when I activate it, it gives me the error message below:
"Failed to load tun module. Device node /dev/tun/ or dev/net/tun did not show up."
I have the certs and Conf files in the openvpn folder, busybox installed, and according to the openvpn installer, openvpn is installed. I'm using abyss 3.6.
Can anybody tell me what I'm doing incorrectly or what I have failed to do?
Sent from my GT-N7000 using XDA App
Click to expand...
Click to collapse
faced similar kind of problem when using abyss... restarting the phone helped it somehow and started working again... but my stock rom worked without any problem... download tun.ko app from market and try to install your tun module again... ticking insmod option in advanced settings also might help....
kvsandeepreddy said:
faced similar kind of problem when using abyss... restarting the phone helped it somehow and started working again... but my stock rom worked without any problem... download tun.ko app from market and try to install your tun module again... ticking insmod option in advanced settings also might help....
Click to expand...
Click to collapse
Tried your suggestions, but no luck. :-(
Sent from my GT-N7000 using XDA App
My config for Abyss 3.7
In openVPN Settings -> Advanced:
- 'Load tun kernel' module activated
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Hope it helps
jolillo said:
My config for Abyss 3.7
In openVPN Settings -> Advanced:
- 'Load tun kernel' module activated
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Hope it helps
Click to expand...
Click to collapse
Thanks for the ideas. For some strange reason it still won't work. I'm using abyss 3.7 as well and everything is installed and in the proper places.
> I just tried getting openvpn to work on a couple other roms, but same issue. FFFFFFFUUUUUUUUUUUU
Sent from my GT-N7000 using XDA App
old problem, I also tried to fix it but never found a solution. Also would like to have it working.
On older rocketrom versions I was able to connect to my openvpn server (or at least it seemed that way as openvpn showed me as connected and with no errors) but when I tested the connection my IP was still my own and not the one from the vpn server I was supposedly connected to, so I dun think it was really working
A quick summary about my openVPN installation
This is how I installed openVPN on Rocket ROM 22 with Abyss 3.7 (log enabled version, I don't know if it matters).
Maybe something it's different from what you did, or you see anything that can help you to solve your problem.
Download from market (sorry, I can't post links) openVPN Installer and openVPN Settings (Friedrich Schäuffelhut versions). I didn't download any other additional app, library....
Install openVPN with openVPN Installer. During installation set
- target directory to /system/xbin
- ifconfig route to /system/xbin/busybox ifconfig (recommended)
In openVPN Settings:
- 'Load tun kernel' module activated
- 'Path to openVPN binary' set to /system/xbin/openvpn (this was the default setting)
In openVPN Settings -> Advanced:
- 'TUN module settigns' -> 'Load module using' set to insmod
- 'TUN module settigns' -> 'Path to run module' set to /lib/modules/tun.ko
Copy ovpn config files, certificates, etc to your route and ready. With this setup openVPN is working ok for me.
I just had some minor "issues", but I think they're related to mi ovpn config not with the tun module.
1. I had to change some data in ovpn config files, but it's due they were ubuntu ready...
2. I need to apply the 'Fix DNS' option in openVPN Settings. If not applied browser can't solve urls.
Finally.. I have tested openVPN only over 3G connection. This setup is working too on Criskelo ROM.
First, thanks for the thorough explanation. I just flashed chrack v13 and tried both FM 2.0 and abyss 3.7 with success
Sent from my GT-N7000 using XDA App
waaaaa I finally got openvpn to work xD
I got the tun.ko installer from the market, it downloaded the correct module onto /months/sdcard/tun.ko then I used that path in the advanced settings of openvpn and voilá xD it's working! xD
Hello everybody
i downloaded openvpn on my galaxy note
then when i start to install it it opens then on the screen there is Binary not installed
it asks me for things like install or exit
i choose install a screen appeared asking to choose target directory
1: /system/xbin
2: /system/bin
if i choose 1
4 options appears
1: /system/xbin/busybox ifconfig
(recommended)
2: /system/xbin/ifconfig
3: /system/xbin/bb/ifconfig
4: /system/bin/ifconfig
i tried every thing but it insists on not to install
please provide me with any thing that helps me install it
or any program similar to it and doing the same job
if there is any video tutorial please post it
Are u rooted??? openvpn requires root...
If u r rooted and face difficulty installing openvpn try droidvpn from market... it is free and easy to use... go to their official site for getting a free account for logging in....
Sent from my GT-N7000 using XDA App
yes, i rooted it
okay i'll try to download that program
thanks
and waiting for anyone who had installed openvpn on his galaxy note to help
7esain said:
yes, i rooted it
okay i'll try to download that program
thanks
and waiting for anyone who had installed openvpn on his galaxy note to help
Click to expand...
Click to collapse
try this
http://vpnblog.info/android-openvpn-strongvpn.html
worked for me without any prob...
both openvpn and droidvpn are working fine in my note
---------- Post added at 12:45 AM ---------- Previous post was at 12:37 AM ----------
7esain said:
Hello everybody
i downloaded openvpn on my galaxy note
then when i start to install it it opens then on the screen there is Binary not installed
it asks me for things like install or exit
i choose install a screen appeared asking to choose target directory
1: /system/xbin
2: /system/bin
if i choose 1
4 options appears
1: /system/xbin/busybox ifconfig
(recommended)
2: /system/xbin/ifconfig
3: /system/xbin/bb/ifconfig
4: /system/bin/ifconfig
i tried every thing but it insists on not to install
please provide me with any thing that helps me install it
or any program similar to it and doing the same job
if there is any video tutorial please post it
Click to expand...
Click to collapse
i think u forgot to install busybox... try installing it first..
thanks mate for helping
now i did everything except one
i can't install the tap/tun driver
i don't knew where to find?
7esain said:
thanks mate for helping
now i did everything except one
i can't install the tap/tun driver
i don't knew where to find?
Click to expand...
Click to collapse
i dont think ul b needing it... i think its already compiled in stock firmware... if u r having any trouble... try installing abyss kernel from development section... then go to market and install tun.ko app and install tun.ko from there...
P.S. dont forget to check the insmod option in advanced options of openvpn...
hope it will work for u this tym
How to root galaxy note and install openvpn
Dear Sandeep,
Could you please share the steps to root the galaxy note and install openvpn on it?
Model: GT-N7000
Android Version: 2.3.6
Baseband Version: N7000XXLA4
Kernel Version: 2.6.35.7-N7000XXLA6-CL907341
[email protected] #2
Build Number:
GINGERBREAD.XXLA6
solved openvpn installer problem, solved routing issues
I just installed openvpn on my GNote N7105 running stock 4.1.1 but rooted
The problem I solved was that openvpn* installer couldn't find busybox, but I have a good on in /data/local/bin, so I remounted / as read-write and made a link at /system/xbin/busybox to /data/local/bin/busybox
Then the installed couldn't find the "cp" command to copy the binary over, so I made a in in /system/xbin from busybox to cp
And then the openvpn installer ran OK but didn't see my openvpn configs and keys.
Because I moved from non-samsung device I had to move my openvpn files from /storage/extSdCard to the "internal" card.
And then the openvpn installer allowed me to start up openvpn. And I saw a tun0 device. But no traffic flows over the VPN. I checked the routing tables (main, default, local) and tried adding routes but no luck
So I searched xda devs and found this thread.
Any idea please?
--EDIT--
I restarted the openvpn server on the remote linux box and everything started working. I realised there was a problem when I used tcpdump and could see ping requests going over the tunnel to the server and nothing coming back. My laptop could also bring up the tunnel and also not send/receive traffic.
* https://play.google.com/store/apps/details?id=de.schaeuffelhut.android.openvpn
Hello,
I am trying to create a tunnel interface on my phone( which has the latest Cyanogenmod 10.2 ) by using this command:
Code:
ip tuntap add dev tun0 mode tun
I get the following error: open: No such file or directory.
I did some research and, apparently, this happens because I don't have installed the tun/tap drivers( the tun.ko module ).
Does anyone have any idea on how to get/install the tun.ko module on my phone ?
Thank you !
vladtp said:
Hello,
I am trying to create a tunnel interface on my phone( which has the latest Cyanogenmod 10.2 ) by using this command:
Code:
ip tuntap add dev tun0 mode tun
I get the following error: open: No such file or directory.
I did some research and, apparently, this happens because I don't have installed the tun/tap drivers( the tun.ko module ).
Does anyone have any idea on how to get/install the tun.ko module on my phone ?
Thank you !
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.aed.tun.installer&hl=pl
I don't guarantee that there will be an module for your kernel, but you can still try
I tried it, but it says:
TUN support is possibly pre-loaded in your kernel.
Click to expand...
Click to collapse
This might suggest that the module might exist, but I double checked with lsmod and the /lib/modules directory.
If you have any idea about a kernel version for the phone that might make the Tun.ko app actually install the module, please share.
Also, if anyone else has a working tun.ko module, the Tun.ko app has an option where you can share your module( probably it's sent
to the droidvpn site ).
Thanks !