howto enable android tether on boot with init.d script

849 Views Asked by At

i'm having trouble running firewall rules on boot through init.d My current syntax is

21tether

#!/system/bin/sh

iptables -t nat -A natctrl_nat_POSTROUTING -s 192.168.0.0/16 -o rmnet0 -j MASQUERADE

enable from terminal works fine :S, thanks in advance for any help

1

There are 1 best solutions below

0
On

This answer may help you better, although for me it didn't work, probably because of some missing parameters.

If you succeeded please post the solution.