[Q] Tethering via VPN? - Android Software/Hacking General [Developers Only]

Is there a way to pipe your tethering app through a VPN in android?
On my friends WinMo phone when he starts up his tethering he is asked what connection he wishes to use.
At this point he can choose a VPN connection which routes all of the tethering activity through it.
With the recent Tmobile blocks on tethering, which looks like it might be a combined useragent/traffic monitor, initiating a VPN through the phone would at least encrypt the data going through which should make it more difficult for them to see if the data originated from a tethered connection.
I was wondering if starting a VPN connection prior to tethering would cause a program such as Wifi Tether for Root Users to automatically use it?
Or could the user just initiate the VPN connection first on the pc once tethered. The only downfall there is that there may be a way for them to detect the initiation of the VPN connection from the PC versus the mobile.
I apologize if this is the wrong forum for this question, please move the thread if it is.

In a nutshell... HUH?

Related

G1 reverse teather

What i want to do is connect my g1 to share the computers internet connect then use the g1 wifi to transmit the signal out.. anyone know how to do this?
wow, wrong thread but if i follow you correctly, you have:
INTERNET----------COMPUTER
you want your g1 to be a wifi router? wtf just put one in between internet and computer... lolz
I know what does this,
but as you didn't read the forum rules,
I also see you have only one post, so you came in here and instead of easily finding an answer to your problem via google, you clog up our development thread
Because of these things I will refuse to answer your question, I implore any other members who see this to not answer as well.
bbuchacher said:
I know what does this,
but as you didn't read the forum rules,
I also see you have only one post, so you came in here and instead of easily finding an answer to your problem via google, you clog up our development thread
Because of these things I will refuse to answer your question, I implore any other members who see this to not answer as well.
Click to expand...
Click to collapse
But can you explain to me what is reverse tether?
I only know of wifi tether and usb tether.
Ace42 said:
But can you explain to me what is reverse tether?
I only know of wifi tether and usb tether.
Click to expand...
Click to collapse
Reverse tether is the exact opposite of USB tether. Say you are at work/school and you have a desktop that has network access but you don't have access to infrastructure. You have a laptop but either don't have access to the network or don't have the network key. You want to plug in your G1 to the desktop and share its connection over Ad-Hoc that other devices (laptop, etc.) can access to have internet.
Geniusdog254 said:
Reverse tether is the exact opposite of USB tether. Say you are at work/school and you have a desktop that has network access but you don't have access to infrastructure. You have a laptop but either don't have access to the network or don't have the network key. You want to plug in your G1 to the desktop and share its connection over Ad-Hoc that other devices (laptop, etc.) can access to have internet.
Click to expand...
Click to collapse
if this is what he is referring to as reverse tether, i'm also interested.
Here at work I have no kind of data signal, and connecting through my computer would be great!
Is there a way? Without having to go through our WIFI? Maybe a wired-reverse tether?
you could share your PCs WIRED internet connection wirelessly with an ad-hoc wireless connection. google is your friend.
http://www.google.co.uk/search?hl=e...c+wireless+network&btnG=Search&meta=&aq=f&oq=
Normally you can use the internet from t-mobile (G1) on your computer. He is looking to use the internet from a computer on a G1
Why call it reverse, isnt it ICS?
it 'd be great to have the opportunity to use the G1 as a wi-fi repeater , in case of low signal between wi-fi spot and your pc, as the follows:
WIFI ROUTER <------> G1 <------> PC
maybe it's possible to implement or only a dream?
it 'd be great to have the opportunity to use the G1 as a wi-fi repeater , in case of low signal between wi-fi spot and your pc, as the follows:
WIFI ROUTER <------> G1 <------> PC
maybe it's possible to implement or only a dream?
Ace42 said:
Why call it reverse, isnt it ICS?
Click to expand...
Click to collapse
Tethering is a term used to describe connecting your phone to your laptop so that you laptop can use your phone's internet connection.
http://en.wikipedia.org/wiki/Tethering
Reverse tethering would be using another device to supply internet to a G1.
By this definition, connecting a G1 to a WiFi hotspot could technically be considered "reverse tethering" however we don't generally use the term in that sense.
I understand reverse tethering, but reverse TEATHERING? WTF?
go suck your mother's teat(hering)
Ad-Hoc connection
Whoops missread what you were saying...
Anyways... you shouldn't be using your phone as a modem to connect the rest of your house to the internet... It's painful and could possibly kill your phone from the heat it will generate from sending and receiving the packets. But if you really wanted to.. You can use your phone to tether to a laptop or a machine via USB and then bridge the connection to a NIC device. Then from there.. allow your computer to route the packets and assign IP to DHCP.
I think it would be nice to create an app to easily setup reverse tethering via usb. That said, don't post a thread about it here unless you are a developer creating one. Even so, it would be better to post in the apps forum. A mod will move this thread soon, I'm sure. I just wish there were some restriction requiring mod approval of new threads by junior members before they can be posted, at least in dev forums.
If your using windows 7 there is an program that could work for you.
I use it as i dont have a data connection on my phone.
http://www.connectify.me/
It can turn your Wifi from your PC/Laptop into an access point.
Which i believe is what your after.
Instructions on how to tether in either direction are already posted here
http://forum.xda-developers.com/showpost.php?p=4537421&postcount=15
http://forum.xda-developers.com/showpost.php?p=4537421&postcount=14

Connectivity while on internetless ad hoc network

I have a htpc build in in my car. As internet connection, I want to use my phone as internet-gateway but I do not want it to serve dhcp, dns, instead of the pc that hosts the ad-hoc network (reason is battery issues... ). These tasks are all done by my htpc in my car. So I need to connect with my phone on my ad-hoc wifi network while my phone internet connection must be on and open for use by my htpc.
I added a diagram in attachment (png)
When android is on Wifi, the 3g connection doesn't get used. Tether apps actually achieve this, if I get it right. Could somebody point me in the right direction or aid me with code, so I have internet connectivity while on a ad hoc network? Thanks
i would need this as well... anybody?

VPNs and tethering (oh my)

Hi
I'm just making this post as I can't really see any solutions for this.
Let me first explain the situation we're in, we have a bunch of laptops that need access to the internet and this building provides free wifi, YAY. The problem is, the wifi is unstable where we are, randomly doesn't allow computers to connect to it, and drops computers from the network for no reason. The landlord is pretty much unhelpful here, and we're only here for 2 weeks so we're just living with it right now.
I have a contracted phone with unlimited data that I tether with USB to my computer and then run a VPN on the computer which works fine for me, but I want to get the other laptops connected too.
The problem is my phone hasn't got tethering, so as soon as it detects a user agent that corresponds with a desktop based browser, it blocks the data connection until the signal is completely reestablished.
This is even a problem for my laptop as sometimes theres a random HTTP request that blocks the connections before the VPN can connect.
So the solution I really want for this is a VPN to be running on the phone, and then a hotspot to run on the phone. Then the laptops can connect to the phone and theoretically be behind the VPN, so everything can be connected and the connection won't get blocked.
I've tried all the iptables forwarding and masquerade rules to no avail, OpenVPN with "Use default route" to force all routes through the VPN also does not allow any computer on the hotspot to connect to get a data connection.
For more info, the phone is a SGS3 i9300 which is currently running the latest CM10.1 nightlies. The VPN is from HMA.
Does anyone have any suggestions for this?
Thanks for the time.

Using VPN with Tether Seems to Break Tether

I have the Tmobile $70 plan with comes with 2.5 GB of tethering.
If I tether to my laptop and the laptop has a VPN, then I can look at the counter at ma.web2go.com and see that no tethering data is being used. This solution works very well for a laptop, where I can operate a VPN on the laptop.
When I use the VPN on the phone, not the laptop, the laptop will see the tether wifi signal, will register, but the internet will not work on the laptop.
Or, other times, the VPN will disconnect on the phone after a few seconds and cannot be reconnected.
I would like to be able to use the VPN on the phone so that I can use a Roku and Chromecast where I cannot set up a VPN on the device.
Yes, I have added the line in the database file.
I have seen a solution elsewhere which involves switching the APN to use IPv4, but the APN is already set that way.
It seems as if Tmobile has some measures in place to stop people from doing what I want to do - anyone else experience this and anyone find any ways around it?

[Q] Long-range Wifi repeater with auto hotspot authentication?

Hi All,
At this point, I'm just brainstorming, and would like some input. (I hope this thread is in the right place)
I'm trying to find a setup to connect to free wifi hotspots that are far away, and share that connection to a group of devices locally. For example, this solution may be useful in a boat or an RV, when you're not particularly close to a free access point.
There are commercial solutions like the Rogue Wave however, this doesn't do anything to authenticate through the Terms of Service (TOS) pages that are frequently used at free access points.
This is what brings me to using Android. There are Android apps which automate the process of accepting the terms of service. My favorite right now is WebWifiLogin (I'm familiar with the security risks involved in using public wifi; and may also have the Android device to also establish a VPN connection when doing this.) (I can't find an equivalent macro-authentication solution that will run on a PC, which would make this much easier.)
So here's my proposed solution:
1. Start with a powerful omnidirectional wifi antenna (Possibly add an in-line amp if needed. Also perhaps a directional antenna may be better for non-mobile use.)
2. Connect the antenna to any Android device that supports an external Wifi antenna. I found several Android TV devices which should work. Like This, or possibly this.
3. Set up some kind of local access point/bridge. One option may be to use fqrouter2 which supposedly uses the same Wifi radio for the local WLAN, while it also connects to the remote one. Another option may be to USB or Ethernet tether to a DD-WRT Router.
Result:
The Android device has a range to connect to a free hotspot up to a mile or two away, then automatically accepts the TOS using the WebWifiLogin app, and shares that connection locally to a handful of devices.
So am I crazy? Is this too complex to work correctly? Is there a simpler solution that I'm missing?
Can anyone confirm whether I've posted this in the correct sub-forum?
Thanks.
I use a slightly different method which yields the same results.
I have a Linksys WRT54GL router (with high gain antennas) which runs DD-WRT and a script called AutoAP. The script scans for unencrypted WIFI access points, makes sure they're live, and automatically connects to the strongest one in range.
I set up a second WPA2 encrypted WIFI SSID in the router which I connect to with my Android tablet. Once WebWifiLogin on the tablet handles the TOS login, the remote access point allows web access for any device that connects to the WRT54GL router (either by WIFI to the secondary SSID or through one of the ports)! This happens because the remote access point usually checks/remembers TOS acceptance by the MAC address of the connected device. Since it only sees the MAC address of my router, anything behind the router now gets access.
ssenemosewa said:
Once WebWifiLogin on the tablet handles the TOS login, the remote access point allows web access for any device that connects to the WRT54GL router
Click to expand...
Click to collapse
This is great information; thanks!
I would not have thought WebWifiLogin would work when connecting through another router. When WebWifiLogin is running, its status says "Listening for WiFi events" (Or something similar) so I was under the impression that WebWifiLogin would only work if the connection to the AP is made directly by the Android WiFi interface, and not through a intermediary router.
This makes things much easier.

Categories

Resources