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?
Related
I am fighting with these challenges, i am near to the final positive result,but still have problems...
I hope you can help me.
1) connect to internet via DUN
2) Connect to internet via PAN
3) Connect to internet via USB modem
4) Connect to internet via USB Internet sharing
5) Browsing and synchronizing the device
These are the little result so far :
1) Installed this cab :
http://forum.xda-developers.com/showpost.php?p=1351044&postcount=21 (thanx to the Author) and DUN is again available.
IT works without problems with Winzoz, but i am not succeeding with Linux.
I made the usual steps (like this post explain, i.e. : http://klamstwo.org/evad/archives/20 ) linux finds the modem but cannot make it call... (init strings for the modem perhaps?)
What the init string for the TyTN modem?
Any Hints?
( an A1000 works perfect via DUN and the same stick)
2) I followed this guide (thanks to the author) http://www.klamstwo.org/evad/archives/40
And the whole thing works (bnet is connected with IP address 192.168.0.187 and has gateway 192.168.0.1 ) except the fact that i cannot browse internet pages.
Could it be a DNS problem?
I'll try manual configuration and let you know.
3) I tried the connection using the ttyUSB0, modem is ready but does not initialize... HINTS ?
4) SYNCE or something easier?
5) I think Synce is the answer, but at the moment it does not work in my distribution (mandriva). A lot of problems during installation (RPMs and source compiled, non difference). I'll try again. I've followed the How to published around here, (http://forum.xda-developers.com/showpost.php?p=1550906&postcount=4) but i have problems with odccm... it does not install.
other ideas?
I hope this post could become a sort of "mini how to", combining different issues related to the same argument : TYTN and LINUX
Thanx in advance to everyone who will help.
Are these challenges so HARD?
No one here around uses linux and TYTN?
Let's try solving one by one,
let's start with USB.
I tried this one
http://www.mobile-stream.com/usbmodem_wm.html
with windoz it is immediately recognized as a usb mmodem, but with linux the ppp scripts waits for "OK" till timeout.
I also tried the old wirelessmodem, the one for WM5, posted here
http://forum.xda-developers.com/showthread.php?t=306041 ,
but it does not show the kind of connection in the box (it is blank).
I tried to start it even if the box is blank, Windows recognizes it as a serial device, linux gets a lot of "OK" (KPPP) and Tytn shows the message "Please end data call first!"
I also tried this:
http://www.myehud.com/xv6600/usbmodem.html
But when i hit start It says "Not registered to the network!".
This is about Linux and USB moden... perhaps someone of you has succedeed?
Please report.
The other issue would be having internet sharing working with linux and usb ...
So linux users, let's try...
i'm a ubuntu user, and i feel you.. i don't want to run virtual box, so i just deal with no direct pda syncing.
i tried synce, and failed twice, months apart. (probably my fault somehow)
i do however have to use windows at work, so i end up doing most of my flashing and such there.
though, if you find a good NATIVE solution, let me know!
I am using Kubuntu, and can browse the My Documents folder of my PDA, so at least everything is talking to each other. However, I have not got round to configuring the synchronisation side of things; hopefully it should be possible.
Neil,
did you install synceor is somethingnative in your distribution?
Ahd what about the point 1 to 4?
Whether as internet sharing or modem, usb o BT, are you using the Tytn to connect thelinux box to the net?
I am really coing mad, i feel i am so near but i still cannot...
I don't understant why the Pand does not work for example, bnet has the right IP, has it's gatewaqy but still i cannot browse the net...
devilman - no, it was not native; I think it was SynCE, although, I can't be sure. It took some tinkering to get it going, but, now the device is immediately recognised when it is plugged in (USB) and ActiveSync is run.
To get the next stage working, I need to override the choice of library, as it continually tries to use an old version (libsync, I think), even though a new one is installed.
I have not tried 1-4, and, would not be sure how to do them, other than just trying to mount the device as a modem, and then using *99# as the number. In terms of init strings, these vary slightly by service- for example, for Vodafone UK, it is:
Code:
z+cgdcont=1,”IP”,”internet”
(The "z" at front is the AT command for modem reset; it might or might be necessary, but, sometimes helps the connection to work.)
well, I tried, as said in the first post,to use tytn asmodem.
To have it working with BT you have to install the hack in order to have DUn again.
To have it recognizedas a modem you have to put in in in the "modem" status (again, in WM6 wireless modem is not available,so you have to use the old one or the third party product).
In both case the lnux box connects with modem but i son't succeed in having it call the number...
I used the "usual" AT commands, like the "z" and the cgdcount...
Ideas?
I saw you'd got as far as having the device recognised as a modem, but didn't know quite how far you'd got. However, my Linux skills are so poor, I honestly wouldn't know where to go if the standard init. script did not work.
If terms of calling a number, would that not be *99# though?
Please, has noone found out how to have it working?
I am going mad about this.
I need a way to connect my linux box via tytn, usb or bt...
Any hint?
Uhm, for the last one (browsing the pocket pc) I use wm5torage. That turns your pocket pc into a USB disk and Ubuntu easily recognizes that as a removable drive. It is not the perfect solution but it is easy, fast and works.
and...i have another question
can anyone install an embedded-linux on Tytn, i mean use dual-system ?
is it possible?
ss1271 said:
and...i have another question
can anyone install an embedded-linux on Tytn, i mean use dual-system ?
is it possible?
Click to expand...
Click to collapse
there is another 3d all for this issue.
devilman said:
Please, has noone found out how to have it working?
Click to expand...
Click to collapse
I'm on Ubuntu 7.10 and running the official T-Mobile Austria WM6 upgrade on my Vario 2, Bluetooth PAN works flawlessly:
Code:
sudo pand --connect XX:XX:XX:XX:XX:XX
sudo dhclient bnep0
Back in WM5 days Bluetooth DUN worked as well, using the following chatscript in /etc/chatscripts/provider which I created with pppconfig:
Code:
# This chatfile was generated by pppconfig 2.3.17.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ+cgdcont=1,"IP","gprsinternet"
# ispnumber
OK-AT-OK ATDT*99#
# ispconnect
CONNECT ''
# prelogin
# ispname
#ogin: replace_with_name
# isppassword
#ssword: \qreplace_with_password
# postlogin
'' \d\c
# end of pppconfig stuff
and the corresponding /etc/ppp/peers/provider:
Code:
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/provider"
debug
/dev/rfcomm0
115200
defaultroute
noipdefault
remotename provider
ipparam provider
usepeerdns
of course, for this solution to work you would have to set up the rfcomm port for your tytn in /etc/bluetooth/rfcomm.conf
Code:
rfcomm0 {
bind yes;
device XX:XX:XX:XX:XX:XX;
channel 4;
comment "T-Mobile Vario II Bluetooth Dial-Up";
}
you should now be able to connect using the "pon" command.
I hope this post is of some help to you... good luck!
http://forum.xda-developers.com/showthread.php?t=344396
ya, too bad ;(
i still can`t use calendar or contact sync functions.
greets, Nik
devilman said:
4) Connect to internet via USB Internet sharing
4) SYNCE or something easier?
I hope this post could become a sort of "mini how to", combining different issues related to the same argument : TYTN and LINUX
Thanx in advance to everyone who will help.
Click to expand...
Click to collapse
Depending on your kernel version (I think this applies to 2.6.21 and greater, but check other docs to be sure), there is a kernel module known as usb-rnds-lite. Get it (links from synce wikis), make it, use it, love it.
I have used it to ICS several devices, 8525, 8925, BlackJack I and II... only quirk is that is works best to start ICS _then_ connect the USB cable.
I suggest you to read this article:
http://ubuntu-utah.ubuntuforums.org/showthread.php?t=598890
You can also search by Google: "bnep0 pand pda linux"
Hi everyone,
i'm not sure if this should be posted here or someone did it before.
So please delete this thread if this is a known fact or does not belong here
During experiments with haret on various platforms, i thought about a simple method to get access to the haret console without the need of a host computer.
There's a little trick to make this work:
Every device with some networking features has a loopback IP-address.
The IP of this "network device" is 127.0.0.1 and can be used to access haret console locally, right on your mobile device.
1. Start a version of haret suitable for your mobile device.
2. Tap on the button "Listen for network connection".
3. Start a telnet client on your device (e.g pocketputty).
4. Connect to 127.0.0.1:9999.
That's it!
Works perfect with my hermes and universal, when i'm on the road and need to verify of some internal settings or some register settings
I hope this maybe helpful for anyone.
Cheers,
scholbert
scholbert said:
3. Start a telnet client on your device (e.g pocketputty).
Click to expand...
Click to collapse
you may provide a link to the putty .cab file here
It would be nice to at least tell the ignorant ones wtf is haret...
Hi,
thanks for the remarks!
So here's the pocketputty cab.
Have a look for updates here:
http://www.pocketputty.net/
aiiro said:
It would be nice to at least tell the ignorant ones wtf is haret...
Click to expand...
Click to collapse
O.K. nice entry
HaRET stands for Handheld Reverse Enginering Tool.
Have a look here to get deeply involved:
http://www.handhelds.org/moin/moin.cgi/HaRET
It may be used to debug and do other investigation on settings in the processor's registers, as well as start some binaries other than wince or winmob applications on windows based devices.
One of it's common purpose is to start a linux kernel on your mobile device for the first time (and much more often afterwards ).
At least it's mainly used by linux developers to check out what has to be done and set to make a linux kernel boot on your device!
Best regards,
scholbert
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.
Hi,
Just got myself some nice account at hidemyass_dot_com ... They dont support l2tp yet, and pptp just doesn't work (some encryption issue idk).
So I figured i'd try using openvpn. So I downloaded the market version of openvpn software.
Got the crt files, ovpn files and key file. Everything is in order. When I try to connect, I see that I can pass everything (even get a bloody IP). But the routes dont work. Meaning, I'm not routed through the tunnel but through the normal pdp0 interface.
I got into adb shell, adb logcat etc. This is what I figured out:
Routes are not "implemented" because it can't find the tun0 interface. Why? because its not in "up" mode. Since its not in "up" mode, openvpn software failed when it did "ifconfig IP MASK".
Now get this, if i manually (after openvpn authenticates, assigns an IP and says "connected") netcfg tun0 up, and then manually ifconfig tun0 IP MASK and then manually assign the routes which were automatically failed last time - it works.
Everything is routed properly.
What I figured was an issue with the netcfg tun0 up and ifconfig tun0 ip mask commands ... I read people tried tun.ko files (for each cfw) but couldn't find any for S2 (or lite'ning).
OMG I'm desperate. Help?
[SOLVED] - CHECK BELOW
advocator said:
Hi,
Just got myself some nice account at hidemyass_dot_com ... They dont support l2tp yet, and pptp just doesn't work (some encryption issue idk).
So I figured i'd try using openvpn. So I downloaded the market version of openvpn software.
Got the crt files, ovpn files and key file. Everything is in order. When I try to connect, I see that I can pass everything (even get a bloody IP). But the routes dont work. Meaning, I'm not routed through the tunnel but through the normal pdp0 interface.
I got into adb shell, adb logcat etc. This is what I figured out:
Routes are not "implemented" because it can't find the tun0 interface. Why? because its not in "up" mode. Since its not in "up" mode, openvpn software failed when it did "ifconfig IP MASK".
Now get this, if i manually (after openvpn authenticates, assigns an IP and says "connected") netcfg tun0 up, and then manually ifconfig tun0 IP MASK and then manually assign the routes which were automatically failed last time - it works.
Everything is routed properly.
What I figured was an issue with the netcfg tun0 up and ifconfig tun0 ip mask commands ... I read people tried tun.ko files (for each cfw) but couldn't find any for S2 (or lite'ning).
OMG I'm desperate. Help?
Click to expand...
Click to collapse
I've been trying to do this but just forgot about it when I first got the phone. You need to compile the tun.ko driver.
are you root?
you need root for OpenVPN
also the kernel needs to have tun.ko else it won't work
I wasn't able to test it myself yet but this is what I remembered from my Hero..
Gawis said:
are you root?
you need root for OpenVPN
also the kernel needs to have tun.ko else it won't work
I wasn't able to test it myself yet but this is what I remembered from my Hero..
Click to expand...
Click to collapse
I'm root.
Now not sure about the tun.ko in the kernel. I guess it has the default one (I do afterall, manage to netcfg tun0 up and ifconfig tun0 IP MASK if I do them manually ... they fail when openvpn does them by itself) ..
Maybe I need a special tun.ko? how can I compile my own?
I suddenly remembered thread in which I posted a while back about SGSII and OpenVPN
that member confirmed it as working, the link is here:
http://forum.xda-developers.com/showthread.php?t=1074492
I will root my SGSII somewhere this or next month and try it myself then..
SOLVED
Had to reinstall BusyBox (so I'd have /system/xbin/bb folder).
Now everything works with the default tun.
re-install openvpn when prompt ifconfig directory select /system/xbin/bb. then open console add sym link "ln -s /system/xbin /system/xbin/bb"
your openvpn should now able to up the tun0 interface and accept the push config from openvpn server
This guide teaches you to reverse tether your Android phone via WiFi. That is, it allows you to use your Ethernet connection of PC on your Android phone. It is useful for those who do not have WiFi routers and data connection. So if you have unlimited data plan for your computer, why not share the connection with your phone?
I am not the developer of the files supplied
Requirements:-
1.Rooted Phone
2.Wifi enabled Laptop or PC
3.Root explorer or any other application which gives system access
4.File in the attachement
Procedure :-
Phone:
Download Wpa_supplicant.zip and extract "wpa_supplicant" from it, save it on your SD card.
Open Root Explorer, and grant it superuser access when asked for.
Navigate to system -> bin and long press on wpa_supplicant; Select copy, and paste the file into any folder on your SD card.
Now navigate to the file you downloaded, copy it in same way, and paste it back to system -> bin. Note, you might need to mount the system as R/W instead of R/O by pressing a button on the top just before pasting the file.
Reboot.
▬▬Ubuntu (Must work for other Linux Distros too)▬▬:
Open Network Connections
Goto Wireless tab, select add, and set the following:
SSID:
Mode: Ad hoc
Leave other things unchanged, and go to Ipv4 settings tab
Set method to Shared to other computers
Go to Wireless security tab and set Security to WEP 40/128 bit key and set key to a numeric password (or hexadecimal one).
Check the connect automatically box on top of the tabs and press Save.
Your Android phone must now detect this network, and you can establish the connection by using your security key.
▬▬Windows XP, Vista, 7▬▬
Download and Install Connectify from www . connectify.me/download-lite/
Start Connectify Hotspot by giving a name and password to your hotspot and selecting the Ethernet connection to share. Make sure the security type is WEP or Open.
Disable your firewall (Simply adding it to exceptions doesn't work for AVG at least)
Now your phone should be able to see the hotspot and establish the connection using the password set.
Known Issues :
1.Random disconnections (Very less frequency)
2.Disconnections due to screen lock / sleep on laptop
3.For me Security mode does not works
HIT THANKS IF IT WORKED
ENJOY
Download the file here :-
http://db.tt/FdAVwebJ
If someone want mirror then post
Using this method you can download everything
From apps on Play Store to Media hosting websites link
Post your Review
Reserved for future update
@avilove4u
This is not a free solution , you need a wifi Pc (90 % of computers at work don't have wifi) and is too complicate for users.
Use my method : http://forum.xda-developers.com/showthread.php?t=1371345
It's a "One click free solution using USB cable" (no need to install other paids tools)
Not yet perfect, but still under development (I am the developper)
"This is a crap , as u cannot do much !"
Please stay on your thread next time before posting such kind of message on my thread.
No need to press "Thanks".
Ha ha lol !
Ur method has certain limitations :banghead:
Now adays every laptop and PC are wifi enabled !
I heard that connectify doesn't require root phone and we don't need that wpa_suplicant.
kurotsugi said:
I heard that connectify doesn't require root phone and we don't need that wpa_suplicant.
Click to expand...
Click to collapse
You heard correct (in most cases). If your device already supports ad-hoc network connections, then all you'd need to do is set up the hotspot with Connectify (or Virtual Router) and connect to it. Otherwise, this method's for you.
kurotsugi said:
I heard that connectify doesn't require root phone and we don't need that wpa_suplicant.
Click to expand...
Click to collapse
But some armv6 devices need that
Without wpa ad-hoc network wil nt be shown in our device
And to get access to system/bin to replace wpa ur device must be rooted na ?
avilove4u said:
And to get access to system/bin to replace wpa ur device must be rooted na ?
Click to expand...
Click to collapse
that doesn't necessary. we can push the file via update.zip
Yeah that's true too
VERY GOOD AND USEFULL GUIDE!!
I've successfully shared the LAN's network of my notebook (DELL) with my android tablet (Mediacom 852i with OMA ROM JB 4.1.1)
Thank you very much for sharing your information.
capslock66 said:
90 % of computers at work don't have wifi
Click to expand...
Click to collapse
[citation needed]
I'm pretty sure you're completely wrong. You're whole post sounds like it comes from a jealous, whiny little girl. And until you can back up this statement, I'm going to assume you are either a liar or an idiot.
Useful app especially for area with bad reception and no wifi.
Sent from my GT-I9100 using xda app-developers app
Avilove.Cullen said:
And to get access to system/bin to replace wpa ur device must be rooted na ?
Click to expand...
Click to collapse
no rooting, no software installation
http://forum.xda-developers.com/showthread.php?t=1133641
This is sooo useful...thank you.
I think my wifi router had broken a couple of hours ago. But now I can use ad-hoc connection from my PC.
I use Huawei Ideos S7 to connect to my windows XP sp3 wifi.