FORUMS
Remove All Ads from XDA
Honor View 10

USB tethering without root (not SOCK5)

18 posts
Thanks Meter: 1
 
By aziwoqpd, Junior Member on 10th February 2009, 06:41 AM
Post Reply Email Thread
This is a program I wrote a while back that allows transparent tethering over USB without requiring root access. It works by simulating an unencrypted OpenVPN server and then internally running everything through a Java-based NAT. I get decent speeds off it, but your mileage may vary. It's a bit beta! Might explode! Wear eye protection!

It has a really basic website at http://lfx.org/azilink/, but to spare your eyes I'll just paste the instructions below:

Required files:
- ADB from the 1.1 SDK or from http://lfx.org/azilink/adb.zip
- OpenVPN 2.1 (not 2.0) from http://openvpn.net/index.php/downloads.html
- AziLink.apk from http://lfx.org/azilink/azilink.apk
- AziLink.ovpn from http://lfx.org/azilink/azilink.ovpn

Installation:

1) Install OpenVPN on the host. I use version 2.1_rc15, but any version should work. Apparently if you use version 2.0 you'll need to remove the NO_DELAY option from the AziLink.ovpn configuration file. You can find OpenVPN at:
http://openvpn.net/index.php/downloads.html

2) Enable USB debugging on the phone. From the home screen, this is under
Settings>Applications>Development>USB debugging.

3) Install the Android USB driver (if you don't already have one installed).
See http://code.google.com/android/intro...devicehardware

4) Install the program. You can either use ADB to install by typing
"adb install azilink.apk" with the file in the current directory, or you can browse (on the phone!) to: http://lfx.org/azilink/azilink.apk

Either way you might need to allow installation from unknown sources
under Settings>Applications>Unknown Sources.

Configuration steps:

1) On the host, run "adb forward tcp:41927 tcp:41927" to set up port forwarding. Be sure to use adb from the Android 1.1 SDK! The version from 1.0 will lock up under heavy load. If you don't want to download the entire SDK, you can get a copy of ADB+drivers from http://lfx.org/azilink/adb.zip

2) On the phone, run AziLink and make sure "Service active" is checked.

3) Right click AziLink.ovpn on the host (not in the web browser!) and select "Start OpenVPN on this configuration file." You can find this file at: http://lfx.org/azilink/azilink.ovpn. If you're using Linux or, god forbid, MacOS, you'll also need to manually set the nameserver to 192.168.56.1 (the phone's NAT IP address).
 
 
10th February 2009, 06:58 AM |#2  
Retired Moderator
Thanks Meter: 11
 
More
Nice work around.
10th February 2009, 09:36 AM |#3  
Junior Member
Thanks Meter: 0
 
More
Talking
Wow, amazing work! I'll definitely have to mess around with this tomorrow...
10th February 2009, 10:19 PM |#4  
Junior Member
Thanks Meter: 0
 
More
Talking OpenVPN 2.0.9
Thnx for the manual..!! Took me something to get it working, i'll find out, that it isn't working with OpenVPN version 2.0.9

OpenVPN 2.0.9 doesn't recognize the following rule in azilink.ovpn:

socket-flags TCP_NODELAY

And it worked with version 2.1rc15...

So no more Internet Sharing on Windows Mobile...
10th February 2009, 10:20 PM |#5  
Junior Member
Thanks Meter: 0
 
More
Talking OpenVPN 2.0.9
Thnx for the manual..!! Took me sometime to get it working, i'll find out, that it isn't working with OpenVPN version 2.0.9

OpenVPN 2.0.9 doesn't recognize the following rule in azilink.ovpn:

socket-flags TCP_NODELAY

And it worked with version 2.1rc15...

So no more Internet Sharing on Windows Mobile...
12th February 2009, 08:33 PM |#6  
Junior Member
Thanks Meter: 0
 
More
help
Ok I'm a complete noob and I've played about with this but can't get it to work. How do I run adb? As in the very first step? Where do I type that. Do I need to install adb and how do I do it?

Thanks
12th February 2009, 09:11 PM |#7  
Junior Member
Thanks Meter: 0
 
More
Got it working
Man this is awesome.

I realised i needed to run the adb from cmd. see when i tried to open adb.exe it just kept closing.

thanks alot. this rocks

ps im writing this off my tethered pc
12th February 2009, 09:14 PM |#8  
OP Junior Member
Thanks Meter: 1
 
More
Quote:
Originally Posted by zecbmo

Ok I'm a complete noob and I've played about with this but can't get it to work. How do I run adb? As in the very first step? Where do I type that. Do I need to install adb and how do I do it?

Thanks

Nah, you can just unzip adb and run it directly from that folder. It's a command line program, so you'd need to run it from a command prompt (cmd.exe). I'm not sure whether adb needs to run as an administrator or not (I disable all that UAC garbage in Vista). If you have the proper driver installed, then the ADB command should return immediately without saying anything. If it says "waiting for device..." that means it wasn't able to find the Android debug driver.

I know this is all a bit hacky, but now that we've got root and wifi tethering I figured that there wouldn't be too much interest.
12th February 2009, 11:18 PM |#9  
Junior Member
Thanks Meter: 0
 
More
cheers
its working great like. im using this cus i havent rooted my phone yet. tethering was the only reason why i wanted to root it but this is a great alternative
13th February 2009, 04:00 AM |#10  
hole423's Avatar
Junior Member
Flag Glen burnie
Thanks Meter: 0
 
More
Works Great. Thanks for the easy instructions.
13th February 2009, 11:53 AM |#11  
Member
Moscow
Thanks Meter: 72
 
More
Here is translation of post on Russian with images http://androidteam.ru/faq/azilink-te...droid-usb.html

I have repacked all in one zip, and make some command files to make process a little easy.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes