Share VPN through Android WIFI hotspot
After installing DroidVPN to use a free VPN. (or other VPN).
Enable tethering on your phone.
Open a terminal such as connectbot or terminal.(must be rooted)
su
iptables --flush
iptables -A POSTROUTING -o tun0 -j MASQUERADE -t nat
iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j RETURN
iptables -A FORWARD -i wlan0 -o tun0 -m state --state INVALID -j DROP
iptables -A FORWARD -i wlan0 -o tun0 -j RETURN
Written by Emilio Blanco
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vpn
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#