I've been playing around with my rooted Chromecast, installing a debian-based chroot environment to make it easy to install applications with just 'apt install'. I've got OpenVPN client installed, but it's unable to actually connect due to the lack of a tun device.
Code:
Sat Jun 11 15:49:03 2016 ERROR: Cannot open TUN/TAP dev /dev/net/tun: No such device (errno=19)
Does anyone know if the Linux kernel compiled with Eureka ROM supports tun devices, or if it's possible to compile in tun devices as a separate kernel module to load in at run-time? Or maybe I'm just an OpenVPN noob and doing something obviously wrong?
I'd like to know this too. I have a couple of rooted chromecasts
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
Attached are cifs modules for use with the CIFS Manager application in the market. CIFS Manager lets you mount Windows SMB network shares on your filesystem. This allows you to stream content from Windows to your Xoom without having to download it first.
> You must have rooted your Xoom to install the cifs module and to use CIFS Manager.
> I am not the author of the cifs module or CIFS Manager. I merely compiled up the cifs module from the kernel source for your enjoyment.
There are two different zips attached. Use cifs.zip if you have rooted your Xoom and are running koush's kernel. Use cifs-overclock.zip if you have rooted your Xoom and are using coolbho3000's overclocked kernel.
Copy the cifs.ko module to /system/lib/modules using adb:
Code:
adb remount
adb push cifs.ko /system/lib/modules
adb reboot
Then install the CIFS Manager application and enjoy browsing content on your Windows server.
thanks much
I am just a newb to all this but can someone please explain how to setup cifs to see and work with shares?
Just curious, do I have to use a ADB to get the file there or will root explorer do?
Sent from my Xoom using XDA App
question 1)
- install cifs.ko
- install cifs manager or mount manager
- configure share to mount (server/share user/passwd if required)
and that's it
question 2)
root explorer will work just fine (remember to remount /system as rw)
is this working for anyone since the OTA? module loads for me, but just won't mount.
http://forum.xda-developers.com/showthread.php?t=994246
onicrom said:
http://forum.xda-developers.com/showthread.php?t=994246
Click to expand...
Click to collapse
I wonder if it has anything to do with why busybox can't handle domain names. 'wget' has to have an IP address, it won't resolve a name.
Well I don't use the fqdn just the hostname
# cat /system/etc/hosts
192.168.1.2. samba
mount doesn't use busybody afaik, but interesting thought
Sent from my Xoom using XDA Premium App
Sweet, thanks. Looking forward to trying it out.
I got all of it working but it just stopped. I can't mount anything. Twice I was about to reboot the server and the XOOM and started working again. I can use Scanshares and it can see my server and all the shares.
Will either of these work for any recent kernels? I'm trying to mount but I get "no such device" error.
jlaw904 said:
Will either of these work for any recent kernels? I'm trying to mount but I get "no such device" error.
Click to expand...
Click to collapse
The cifs module needs to be compiled against your kernel source. So if using a custom kernel ask your developer for a copy.
any chance to have a cfis file for the 3.1 Fw ?
Wondering the same thing -- anyone have any luck finding an updated version for the stock 3.1 kernel?
As a rooted user, on all Tiamat kernels, I found a method to mount my windows drives by doing the following:
http://forum.xda-developers.com/showthread.php?t=1036316&highlight=how+to+mount
Be sure to install Busybox (both versions from the market were install on my xoom since it kept asking for it) to make it work. I wrote the instructions using Mount Manager but Cifs Manager works the same.
Shameless thread bump -- anyone have any luck compiling the modules for 3.1 stock?
I'm using the 1.4.4 Tiamat kernel on my US 3G Xoom, and I couldn't use either of the above modules -- I got "invalid module format." I can't update to 3.2 yet, being a 3G user (grumble), so I downloaded the source for the Tiamat kernel 1.4.4 from the Git repository and compiled my own cifs.ko module using Nvidia's Tegra development kit's toolchain. But now it says "Unknown symbol in module or invalid parameter." Better, but still not working. Anybody know what I did wrong?
Are there any news about this?
i'm struggling to stream videos to my 3.1 rooted xoom...
No updatie
Since this requires a rooted Xoom and Tiamat has an awesome kernel that includes these modules, I am not updating them any more.
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....
Hi,
does the HTC One has CIFS support?
So that the CifsManager can be used on a rooted device?
THX
Well the app is showing as compatible on the Play Store, so I'd presume so.
No it does not.
Just because cifs manager can be downloaded doesn't mean it has Cifs support.
You need a custom rom / Kernel for that.
There are two kernels out there claiming cifs support, however I cant get either one to work.
http://forum.xda-developers.com/showthread.php?t=2235085&highlight=cifs
and
http://forum.xda-developers.com/showthread.php?t=2233665&highlight=cifs
Let me know if you get one working.
Update: there is a 3rd Kernel claiming Cifs support.
http://forum.xda-developers.com/showthread.php?t=2229300&highlight=cifs
I will try it our soon.
Any updates on this? Would love to have CIFS support and TAP network driver support. I'm thinking about trying to compile my own kernel modules but I have almost zero experience with doing this...
cifs.ko loads, but no success
jaybombz said:
Any updates on this? Would love to have CIFS support and TAP network driver support. I'm thinking about trying to compile my own kernel modules but I have almost zero experience with doing this...
Click to expand...
Click to collapse
I've gotten a cifs module to load on 3.4.10 after modifying the module final version string to reflect my specific kernel (3.4.10-geb45596) but still no success. I had success doing the exact same thing on my old EVO, but CifsManager on the HTC One throws "invalid argument", and the mount command (via terminal) says "no device", although lsmod confirms that cifs is loaded.
Any advice is welcome.
I'm also stuck trying to get CIFS.
Can you flash any kernel, regardless of ROM, or does it have to match? I'm using an Android Revolution HD GPE ROM, which doesn't appear to have CIFS support ("invalid argument", cifs.ko nowhere to be found in the filesystem according to ES File Explorer, /proc/filesystems/cifs (or something like that) does not exist, etc).
Maybe I could just flash one of the above kernels and see if it works, or does it not work like that, i.e. it has to be integrated with the ROM?
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