5,594,805 Members 36,481 Now Online
XDA Developers Android and Mobile Development Forum

Tethering through Android VPN connection

Tip us?
 
jjc5891
Old
(Last edited by jjc5891; 4th December 2013 at 03:05 AM.)
#1  
Senior Member - OP
Thanks Meter 138
Posts: 257
Join Date: Feb 2012
Default Tethering through Android VPN connection

I'm grandfathered on the at&t unlimited data plan and I'm looking to tether but hide it from at&t by tunneling the tethered traffic through the VPN connection on android. I've read that android doesn't work with tethering and VPN enabled at the same time due to problems with the routing in the IP tables. I found a script which "fixes" this and tunnels the traffic through the VPN connection. So theoretically the steps would be to
1) connect to VPN on android
2) setup WiFi tether
3) run as script or type the following commands manually with root:
/system/bin/iptables -t filter -F FORWARD
/system/bin/iptables -t nat -F POSTROUTING
/system/bin/iptables -t filter -A FORWARD -j ACCEPT
/system/bin/iptables -t nat -A POSTROUTING -j MASQUERADE

Only issue is that I don't want to buy the VPN service if this doesn't work and I have nothing to test with. Can anyone with a VPN verify if this works for them?
 
ttsaon
Old
#2  
Junior Member
Thanks Meter 0
Posts: 5
Join Date: Oct 2012
Quote:
Originally Posted by jjc5891 View Post
I'm grandfathered on the at&t unlimited data plan and I'm looking to tether but hide it from at&t by tunneling the tethered traffic through the VPN connection on android. I've read that android doesn't work with tethering and VPN enabled at the same time due to problems with the routing in the IP tables. I found a script which "fixes" this and tunnels the traffic through the VPN connection. So theoretically the steps would be to
1) connect to VPN on android
2) setup WiFi tether
3) run as script or type the following commands manually with root:
/system/bin/iptables -t filter -F FORWARD
/system/bin/iptables -t nat -F POSTROUTING
/system/bin/iptables -t filter -A FORWARD -j ACCEPT
/system/bin/iptables -t nat -A POSTROUTING -j MASQUERADE

Only issue is that I don't want to buy the VPN service if this doesn't work and I have nothing to test with. Can anyone with a VPN verify if this works for them?

I test strongswan vpn on android ..
 
jenenser83
Old
#3  
Junior Member
Thanks Meter 5
Posts: 24
Join Date: Jan 2012
Just do this and u should be good.

https://www.youtube.com/watch?v=VIHX...e_gdata_player
 
jjc5891
Old
#4  
Senior Member - OP
Thanks Meter 138
Posts: 257
Join Date: Feb 2012
Quote:
Originally Posted by jenenser83 View Post
Not sure what this will do to hide tethering? They will still be able to detect it through TTL or deep packet inspection.
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes