Openvpn on note? - Galaxy Note GT-N7000 Q&A, Help & Troubleshooting

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

Related

OpenVPN?

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

Steps to make OpenVPN Work

Here are the steps I took to make OpenVPN work. You HAVE to be rooted to make this work.
1) I am going to assume you already know how to configure the firewall side and export a legitmate config.
2) I am running TnT 4.2.2 (great ROM IMHO)
http://forum.xda-developers.com/showthread.php?t=842004
3) I had to run Clemsyn's kernel to get the tunnel to nail up. I don't beleive the stock kernel or any of the TnT mods will fix that.
http://forum.xda-developers.com/showthread.php?t=895825
4) Download from market OpenVPN Installer AND OpenVPN Settings.
5) Run OpenVPN Installer first. I selected /system/xbin option on all screens.
6) Make a folder /sdcard/openvpn. Copy your vpnconfigname.ovpn and vpnconfig.p12 files into it.
7) Run OpenVPN Settings. I unselected "Load tun kernel module" option, the "Fix HTC Routes" and (optional) "Show Ads". I did not alter the "TUN module settings in any manner.
No guarantees, but this worked for me without any fiddling.
-D
I'm not being so lucky - I installed Clemsyn's kernel and the same OpenVPN settings / key that I've installed on my Galaxy S so I know they're functional.
It connects and auth's, creates the TUN device, but shows "Connect to (myserver) as" and netcfg always shows:
tun0 DOWN 0.0.0.0 0.0.0.0 0x00001090
It never brings up the tunnel IP on it.
Well I got it working.
I had to install BusyBox from the market - the "FileBox" versions apparently installed in my rom wouldn't do it.
Then I created /system/xbin/bb/route and /system/xbin/bb/ifconfig linked to the /system/xbin/... versions installed by BusyBox.
I even downloaded and installed the statically linked executable from https://github.com/fries/android-external-openvpn/downloads and thought that fixed it, but turned out the MD5 of that and the market one were identical.
*** EDIT ***
Actually the OpenVPN I installed WAS different from the Market and appears to be the actual fix for me. I must have checked the wrong file the first time with md5sum because I double checked the backup I copied to the desktop and it was definitely different.

[Solved][Zeus v6.36+patch v2] : openvpn not complete ?

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.

[Q] TUN module for OpenVPN

tried to use an OpenVPN app, but apparently this phone doesn't have the required TUN module. i've already tried the TUN.ko Installer App, but there's no TUN module for this phone yet. anyone know if there's a current kernel that has the TUN module active or how i can get the TUN module for this phone??
TIA
phone model: HTCONE
build number: JZO54K
android version: 4.1.2
kernel version: 3.4.10-g30a4e11
1lazysheep said:
tried to use an OpenVPN app, but apparently this phone doesn't have the required TUN module.
Click to expand...
Click to collapse
I don't know the answer, but I've had it working on the 4.2.2 Sense version.
I'm not sure kernel modules are required. After firing up OpenVPN Connect and connecting, I don't have a tun module loaded, but it could be built into the kernel.
ip route show shows a dev tun0 whilst connected.
BenPope said:
I don't know the answer, but I've had it working on the 4.2.2 Sense version.
I'm not sure kernel modules are required. After firing up OpenVPN Connect and connecting, I don't have a tun module loaded, but it could be built into the kernel.
ip route show shows a dev tun0 whilst connected.
Click to expand...
Click to collapse
i use Private Internet Access's app, which uses OpenVPN. it works just fine when i'm using WiFi, but when I'm using 4G i can't load any videos from the youtube/vimeo app.
their tech support thought i may be something to do with my ROM lacking the TUN modules. that's why i tried the TUN.ko app, but apparently there aren't any TUN modules for my phone. i'm using the most current ROM for Sprint version, which was slightly modified (still Android 4.1.2) http://forum.xda-developers.com/showthread.php?t=2391234

[Q] Tun.ko module

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 !

Categories

Resources