PACman HD2 v1.1 - NCP VPN not working - HD2 Android Q&A, Help & Troubleshooting and Genera

Hello Xylograph.
First i would like to say "Thank you". You save me a lot of money for a new Android tablet. :good:
I have only one problem: if i would like to connect to my VPN server, NCP VPN (payed version) say "This device is not supported by this VPN client. Access to TUN/TAP interface failed. (Cannot create interface)". With other 4.1.2 ROMs it works fine. :crying:

VPNCilla has the same problem with TUN device. Btw. I use NativeSD version.

meingott said:
Hello Xylograph.
First i would like to say "Thank you". You save me a lot of money for a new Android tablet. :good:
I have only one problem: if i would like to connect to my VPN server, NCP VPN (payed version) say "This device is not supported by this VPN client. Access to TUN/TAP interface failed. (Cannot create interface)". With other 4.1.2 ROMs it works fine. :crying:
Click to expand...
Click to collapse
In ADB shell or Terminal Emulator, type lsmod to see the currently loaded modules. If you don't see tun.ko there, load it by insmod /system/lib/hw/modules/tun.ko
Swyped from HTC HD2 using xda premium

I see following modules:
bcm4329
tun
msm rmnet

I reinstalled the ROM into NAND and now all works fine. It is a NativeSD problem.

Related

[SOLVED] openvpn on DHD? tun.ko?

Has anyone managed to get openvpn going? compiling custom tun.ko file for DHD?
It's probably possible, now that we have the source. Don't have a DHD just yet, so can't try
Sent from my HDfied HTC Desire
Thread moved to General.
hello
i'm interesting too for the kernel mod tun.ko for the DHD
any reponse ?
Hello,
i'm very interesting in this file too...
My NAS awaits the phone "call".
Hey everyone. First time poster, so hoping its a happy reply
Has anyone had any luck with this ? i also require the tun.ko file for DHD. been searching the net for hours
looking forward to your replies.
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Is it also linked to the radio version?
If we could have a link for kernel source, i might be able to follow tutorial and publish it here.
I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Lionel
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
thedji said:
Attached is tun.ko for the Desire HD (for kernel 2.6.32.21-gf3f553d). Built it today & it seems to insert OK and work fine with VPN Connections.
Click to expand...
Click to collapse
Perfect! Thanks!!
Very thanks for the module.
DHD - tun.ko for 2.6.32.21-g66cfb7a
EFCAugure said:
I heard that tun.ko file has to be specifically compiled for each kernel version. Is that right?
Click to expand...
Click to collapse
Yes. After trying other people's tun.ko modules, it wasn't until I checked the output of dmesg that I learnt this (got my first Android 3 weeks ago - so I'm still a n00b).
EFCAugure said:
If we could have a link for kernel source, i might be able to follow tutorial and publish it here. I have 2.6.32.21 -g66cfb7a kernel version and you? (not sure if the second part is part of the kernel version)
Click to expand...
Click to collapse
Lionel, it would appear that my Desire HD has the same kernel.
2.6.32.21-g66cfb7a
2.6.32 is the base kernel version
I assume 21 is the revision or build number.
The hex string on the end seems to vary by which ROM you have installed. This was what was stopping me from loading these other tun.ko modules - including the one posted by @thedji
I've just compiled the tun.ko module for 2.6.32.21-g66cfb7a (on a headless Pentium 2 400 MHz lol). It loads fine and can be seen in the output of lsmod. I've attached it below.
Edit: I was able to use this module successfully to connect to a Cisco VPN with vpnc.
Mike
@MikeMelbourne
Can you explain to me how and with what Software you connected to a Cisco VPN?
C.K. said:
Can you explain to me how and with what Software you connected to a Cisco VPN?
Click to expand...
Click to collapse
First - applications.
1) You're going to need a terminal/console app. I used one called Terminal Emulator.
2) You're going to want an app called "VPN Connections". I downloaded a patched APK in post #4 here:
hxxp://code.google.com/p/get-a-robot-vpnc/issues/detail?id=122&q=patch
Alternatively, you might get it from here: hxxp://code.google.com/p/get-a-robot-vpnc/downloads/list (although YMMV).
Second - setup.
1) You're phone needs to be rooted.
2) You need to have the appropriate tun.ko module (for your phone's kernel) loaded. Load up the Terminal Emulator then:
a) Type 'su' without quotes and hit enter.
b) Type 'insmod /path/to/tun.ko' without quotes and press enter. If your tun.ko is on your sdcard in the root, the path would be /mnt/sdcard/tun.ko
c) If the step above worked, you should be able to type 'lsmod' and see the tun module loaded.
Note: I didn't have any luck running the "VPN Connections" app directly - the connection kept failing (possible due to the configuration of the VPN I was connecting to). So I start it from the command line. You might want to try using the GUI first as it would make things so much easier if it works.
Third - connecting to the VPN by a command line.
1) The command to enter is quite long (and I got sick of typing it), so I put it into a file called 2.sh in the root of the sdcard.
2) Inside the file /mnt/sdcard/2.sh, I entered the following:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Note that the gateway is the IP address of the VPN you are connecting to. The username for me is just my username - it isn't prefixed by my company's active directory domain.
3) Open the Terminal Emulator.
4) Enter 'su' without quotes and press enter.
5) Enter 'sh /mnt/sdcard/2.sh' without quotes and press enter.
6) You will be asked to provide the group password, then the personal password for your username. Then it should attempt to connect.
You can change the debug value to 2 or 99 if you want to get more information (if it doesn't connect successfully).
If you want to know what command line options are available, enter the following at the Terminal Emulator:
Code:
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --long-help
I think that's it - I hope this helps. After disconnecting I tend to do a long reboot (takes 1-2 minutes) to get the network back to the way it was; although I'm not sure this is necessary.
Mike
Edit: seems like you need to create a directory and a symbolic link. This is my working script:
Code:
mkdir /dev/net
insmod /mnt/sdcard/download/tun.ko
lsmod
ln -s /dev/tun /dev/net/tun
/data/data/org.codeandroid.vpnc_frontend/files/vpnc --script /data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --natt-mode cisco-udp --debug 1 --gateway AAA.BBB.CCC.DDD --id groupid --username mike --enable-1des
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
C.K. said:
Damn I hoped it woulld be easier. As I have never worked with Android that sounds like a challenge to me. So there is no easy switching on and off of the VPN connection? I always have to use the scripts?
Click to expand...
Click to collapse
Because the "VPN Connections" GUI app didn't connect for me, I had to resort to the script - you may not need to (depending upon the configuration of your Cisco VPN box).
I just need to run the final script (the 5 liner above) to connect to the VPN - good enough for the time being. You just need to modify the path to tun.ko, set your gateway server, groupid & username.
I hadn't worked with Android before the weekend just past - I've just rooted my first Android phone. It's all a learning experience - I guess it depends how badly you want VPN access? Hopefully it will get easier in time as the apps improve.
Good luck!
Mike
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
For me personally, I use VPN Connections to connect (successfully) but the traffic is routed down the wrong interface (i.e. not tun0).
After connecting I have to run
Code:
ip ru del table wifi
or
Code:
ip ru del table gprs
to fix the issue.
You should definitely try VPN Connections first. If that doesn't work, try the long method above.
thedji said:
You can use something GScript to make it a two-click process (open app, click script). It's just as efficient as using VPN Connections (open app, click connect).
Click to expand...
Click to collapse
GScript is a great idea - it will save me doing any typing to connect to the VPN.
Once I added these VPNC flags (--natt-mode cisco-udp --enable-1des) to "VPN Connections" I was able to successfully connect after running the script in GScript.
It doesn't say I'm connected, however my IP address has been assigned and I can Remote Desktop to my work PC. My routing already seems to be ok, so I don't to run the 'ip ru del' commands that you do.
I'm pretty satisfied with this now... no typing - just point and press.
-Mike-
What about tap.ko? (needed for OpenVPN bridge mode)
Exposure said:
What about tap.ko? (needed for OpenVPN bridge mode)
Click to expand...
Click to collapse
What kernel version are you running? If you have '2.6.32.21-g66cfb7a' I could compile tap.ko for you?

[Q] Help from DEVELOPERS - WiFi sharing apps doesn't work. SMS via WiFi too :/

Hi
Simple question. Before HD2 I had Samsung Spica mad and I'm using there apps like:
EasySMS over WiFi - 100% working on Spica http://www.appbrain.com/app/easysms-desktop-sms-free/org.fireblade.easysms
WebSharing over WiFi - 100% working on Spica http://www.appbrain.com/app/websharinglite-file-media-sync/nextapp.websharing
and Samba Filesharing over WiFi - 100% working on Spica. http://www.appbrain.com/app/samba-filesharing/com.funkyfresh.samba
Gremote doesn't work too. It is strange becouse this app is different that listed above.
Since I have HD2 it doesn't work (and all alternative apps too). Samba see phone in workgroup but can't connect to it. EasySMS & WebSharing get connection timeout when i want to connect.
BTW: When i enter IP adress in HD2 browser i can log in to EasySMS or WebSharing. So what is the problem?
Maybe somebody can fix it? I try many roms (SD and NAND) = problem is on everyone :/
Sorry for bad english :<
we sharing lite works fine for me, enter your ip adress for the hd2 into your computer browser then enter the password
i have also iused other sharing programs without any problems
What ROM that you use?
I know how to use this program, and they don't work. It isn't the router issue cuz i can use that programs on my father LG Swift.
Here: WebSharing - connection timeout - http://screenshooter.net/2156127/ebuwvsv
I have HD2 with MDJ's CyanogenMod 7 v. 2.6 - Gingerbread 2.3.2 ROM, and I have similars problems. All programs like MyPhoneExplorer (can't find phone) Samba Filesharing (identical problem like Lanc1337) doesn't work.
I can't ping phone from computer connected to router. I check all on another router, problem is the same.
Before I have ZTE Blade and all work perfect!
I found ROM where sharing is working!
http://forum.xda-developers.com/showthread.php?t=912427 - all type of sharing is working here!
But i don't like sense -.- So, why this isn't working on all roms? Kernel or rom issues? I would like this to work on CM build...
Try this:
launch terminal and type:
su [ENTER]
iptables -P INPUT ACCEPT [ENTER]
iptables -F [ENTER]
of course [ENTER] mean press ENTER key
Doesn't work. After i enter second and third command i have error:
getsockopt for multiport failed strangely: No such file or directory
Errors is ok - don't worry. In my Ginger this is working for Samba (I'm using MDJ Cyan V2.7 NAND)...
Maybe try this at first (in terminal):
iptables -P INPUT ACCEPT [ENTER]
and after all this try ping your HD2 from computer (try ping -t ip_address to continous ping - it's good idea to ping -t your_hd2_ip from computer to see if and commands helped) and ping your computer from HD2.
Before I put all this my phone isn't visible in LAN (even with ping command). After putting this everything is ok (and ping is working ).
Put here yours output (after all commands) of "iptables --list [ENTER]" please. Maybe I'll figure someting out...
I check all, and:
I must enter commands:
1. su
2. iptables -P INPUT ACCEPT [ENTER]
and start pinging from phone to computer.
After this software like MyPhoneExplorer can connect to phone. If I enter only commands, and don't use ping command, computer can't connect to my phone.
It's very strange....
After enter iptables --list
chain INUPUT (policy ACCEPT)
chain FORWARD (policy ACCEPT)
chain UTPUT (policy ACCEPT)
I check all again from start to end.
I must enter to terminal su,
and start ping, after this i can exit ping, and I can connect to phone, and phone reply to pings. I don't must enter "iptables -P INPUT ACCEPT"
Any ideas for permamently solution ?
UP
Permament solution will be great!
Sorry for spam :/ Is nobody know how to solve this issue?
Bump!
Hi, also have this issue. Doing the iptables command doesnt do anything for me, it just gives me a bunch of errors. In my case it is enough to just ping my computer from HD2 using terminal emulator or other app (I use Net ping) and I can connect to phone via wifi immediately. After phone restarts I have to do that again.
i have just same issue,seems all CM based rom has this problem,anyone has any ideas?
anotherfullbowl said:
i have just same issue,seems all CM based rom has this problem,anyone has any ideas?
Click to expand...
Click to collapse
Not really.... Besides this one I am currently bumping another thread like this in hope that someone will show up with something, at least with a few pointers of how and where to look for the reason of this issue....
clyder said:
Not really.... Besides this one I am currently bumping another thread like this in hope that someone will show up with something, at least with a few pointers of how and where to look for the reason of this issue....
Click to expand...
Click to collapse
Is this problem Only comes with CM roms?Is there Anyone who use CM rom with sharing apps working?
I really like CM roms, it has some good features,but sharing apps also important for me.
how can i unlock my htc hd 2
anotherfullbowl said:
Is this problem Only comes with CM roms?Is there Anyone who use CM rom with sharing apps working?
I really like CM roms, it has some good features,but sharing apps also important for me.
Click to expand...
Click to collapse
Not only CM ROMs. I am using UltimateDroid based ROM and also have this issue. My guess was that it could be related to Gingerbread, but I could be wrong.
Has anyone solved this?
I just found out that by using tytung r6 kernel this issue is gone. When I turn the wifi on, connect to the router I can ping the phone immediately. Also Wifi tethering in settings menu works. I am currently having some issues with restoring apps but wifi works great. I have downloaded r6 CWM install from here.

[Working] OpenVPN TD2

Hi,
I hope that is going to the right forum. Otherwise apologize, and with the help of moderators should go on the right place.
After long trying period succeeded to install and (this was the hard part...) to make use of OpenVpn on my Diamond2.
Working constelation:
1. ROM of TD2 is official Vodafone-German: 2.16.162.3 (67041)
2. Main Gateway - openvpn server - is a Speedport w701v (should work with any openvpn server flavour with version > 2.0.5, including windows servers)
3. You need to install the openvpn for PPC version 2.0.5 (version 2.1.0 failed to be usable on the device) from the ziggurat29 dot com website.
4. Deploy the configuration files for the server and the client (in my case HTC TD2) - please do not ask me how, there are 1000 of sites full of configs
5. Disable (this is not so nice, but the openvpn is built on old PPC GUI) as shown on the untangle forum for the link to video how to connect - a video flash link on that forum). The video is showing as well how to connect from the GUI.
!!! ATTENTION !!!: USE VERSION 2.0.5 AND NOT 2.1.0 CABS ON THE TD2(the version 2.1.0 will not be able to bring up the TAP interface).
Notes:
1. On the communication was using "dev tap" and tcp - no idea if dev tun works.
2. VPN was established successfully on WiFi and as well on the Cellular Data Connection (depending on your provider, you may have issue on the Data Connection)
I am happy if this posts will help some other people and saved some time for them...
/Tolum
P.S. Sorry for not being able to add the external links, but these are the rules for the beginners.

Galaxy Ace + AnyConnect

Hi, i have a (rooted) Samsung Galaxy Ace with Gingerbread and i would like to use the internet at the university.
This is ONLY possible with a VPN-Connection via Cisco VPN.
I've already downloaded Cisco VPN and it also starts, but after the login i get get the following message:
"This device does not meet the minimum requirements to run this Software. A TUN/TAP driver could not be located. Please ensure a TUN/TAP module is compiled with your kernel or located in /data/local/kernel_modules"
What I've done already:
Downloaded the tun.ko from this Homepage:
http://forum.xda-developers.com/showthread.php?t=1207952
Put it in
/data/local/kernel_modules
/lib/modules
/system/lib/modules
but nothing works (after the reboot the tun.ko disappeared in /lib/modules and /system/lib/modules)
I already did "insmod tun.ko" but i got the message "insmod failed exec format error"
What can I do so that I can use VPN?
(I´m sorry for my bad englich but i´m german)

Configure HotspotShield on OpenVPN fro Android ICS

Hi,
Since we have OpenVPN for Andorid ICS client, and HostspotShield is OpenVPN-based service, I am sure we can configure OpenVPN for Android to connect to HotspotShield or ExpatShield service without installing the HotspotShield client.
I tried to get the config.hvpn file and import it in OpenVPN for Andorid, but unable to connect. It asks for Username and Pass.
Any ideas? How can we use OpenVPN for Android ICS to connect to HSS/ESS?
amalekh said:
Hi,
Since we have OpenVPN for Andorid ICS client, and HostspotShield is OpenVPN-based service, I am sure we can configure OpenVPN for Android to connect to HotspotShield or ExpatShield service without installing the HotspotShield client.
I tried to get the config.hvpn file and import it in OpenVPN for Andorid, but unable to connect. It asks for Username and Pass.
Any ideas? How can we use OpenVPN for Android ICS to connect to HSS/ESS?
Click to expand...
Click to collapse
HSS for Android with Android 4.x support released.
http://forum.xda-developers.com/showthread.php?t=1603618&page=5
google play: https://play.google.com/store/apps/details?id=hotspotshield.android.vpn
HotspotShield said:
HSS for Android with Android 4.x support released.
http://forum.xda-developers.com/showthread.php?t=1603618&page=5
google play: https://play.google.com/store/apps/details?id=hotspotshield.android.vpn
Click to expand...
Click to collapse
I noticed this, but I'm still looking to use OpenVPN instead.
i am too in need of this, maybe we need something that can convert the config files of HSS servers to the openvpn compatibles.

Categories

Resources