Please consider to make a small contribution
|A 2€ contribution can be done to support developer. Your money will be used for:
This app enables/disables WiFi tethering with one click. Fix an issue on Android 4.2.2 (Cyanognenmod, AOKP and maybe other ROMs) for some devices (i.e. Samsung Galaxy S2 branded vodafone).
What it does:
- Activate WiFi thether
- Fix iptables not working rules
Tested only on few devices.
Unfortunately some configuration are device dependent and I haven’t the possibility to purchase all possible android devices, even with your donations. So there may be devices (or network operators customized devices) that will not work. You may try to fix yourself editing the iprules file described below and changing rmnet0 and rmnet1 as appropriate.
Something you might want to know
After uninstall, you need to reboot your device.
Editing <aplication directory>/files/iprules file (used by iptables standard command) you can build your own firewall.
In any case, if you edit iprules file you need to keep the first line (#Version….) or the file will be generated
Note: from version 1.6 iprules has been renamed to wifi_rules.
Example of iprules file
#File_version 2 -tfilter -F natctrl_FORWARD -tfilter -A natctrl_FORWARD -i rmnet0 -o wlan0 -m state –state RELATED,ESTABLISHED -j RETURN -tfilter -A natctrl_FORWARD -i rmnet1 -o wlan0 -m state –state RELATED,ESTABLISHED -j RETURN -tfilter -A natctrl_FORWARD -i wlan0 -o rmnet1 -m state –state INVALID -j DROP -tfilter -A natctrl_FORWARD -i wlan0 -o rmnet0 -m state –state INVALID -j DROP -tfilter -A natctrl_FORWARD -i wlan0 -o rmnet1 -j RETURN -tfilter -A natctrl_FORWARD -i wlan0 -o rmnet0 -j RETURN -tfilter -A natctrl_FORWARD -j DROP -tnat -F natctrl_nat_POSTROUTING -tnat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet0 -j MASQUERADE -tnat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet1 -j MASQUERADE -tnat -A natctrl_nat_POSTROUTING -o rmnet1 -j MASQUERADE
Each line of the file (excluding those starting with “#”) are passed as parameters to iptables, in the form iptables $line. E.g. iptables “-tfilter -F natctrl_FORWARD”.
Note that any time tethering is enabled or disabled, the sistem (i.e. android) will reset all rules.
New version and beta
2.0 “New approach”
This version is using a different approach for detecting tetherable devices. It uses “reflection” java technique to identify “hidden” or with non-standard name devices. Since is not documented in android, custom implementation may be different on specific devices and therefore not working, so is not yet available on play.google. It may work on devices where 1.3 or 1.8 are not working. You can install and try it. In the worst case you will need to uninstall and download from play.google
Remember to disable automatic update if you want to keep the “new approach”.
Download here fixTether 2.0: Download
Using old version of application
To use old version of application, please be sure to firstly completely remove (uninstall) any installed version.
Download old versions apk:
Download here fixTether 1.3: Download