[Q] TUN module for OpenVPN - One (M7) Q&A, Help & Troubleshooting

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

Related

[Q] CM6 for milestone with a working openvpn?

hi. I installed CM6.1.2 for milestone (thanks doshaska) beta on my milstone (not droid) mainly because I really want to use openvpn .
However there seems no tun/tap module in /system/lib/modules (i first looked /lib/modules hoping modules lies in the normal linux module path) and also can't connect to the openvpn server with the default vpn setting program.dmesg says "Cannot allocate TUN/TAP dev dynamically"
Is the missing tun module the reason ? If so , any possiblity in the future that someone can compile the tun module for the CM6 kernel?
btw, I heard something about 2nd-boot . Is there any possiblity to run a complete new kernel avoiding the the damn locked bootload using the 2nd-boot?
PS: sorry for my poor english....

Openvpn on note?

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

[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 driver for OpenVPN

tried to use an OpenVPN app, but apparently this phone doesn't have the required TUN driver. 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 driver active?
TIA
oops, just realized i placed this in the wrong forum. please move to Q/A forum

[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