I have a rooted Coolpad catalyst with no cwm. I plan on creating a workaround for cwm but, that's another project. Anyway I have MetroPCS I've tried apps like barnacle, but I get WAN interface not found. It seems newer phones have a guard against root tethering methods, I thought about changing the settings app but can't risk it yet. I am running Android 5.1.1
2 Answers
If you prefer doing this wirelessly, then you will to route your internet traffic via VPN.
You can obtain an Open VPN from playstore (e.g OpenVPN)
Basically whenever you wish to tether you will need to perform this code via terminal:
iptables -t filter -F FORWARD
iptables -t nat -F POSTROUTING
iptables -t filter -I FORWARD -j ACCEPT
iptables -t nat -I POSTROUTING -j MASQUERADE
ip rule add from 192.168.43.0/24 lookup 61
ip route add default dev tun0 scope link table 61
ip route add 192.168.43.0/24 dev wlan0 scope link table 61
ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61
Benefits include:
- Secured connections through the tunnel
- Re-routing of traffic simulates a local connection and not tethering
However connections may be slow depending on server chosen.
Alternately you can get Foxfi Wifi tether and is already configured to tether.
(Disclaimer: This is not a hacking proceedure, carefully read the Ts & Cs of your ISP if they allow tethering with 3rd party applications)