I want to add a iptables rule in Rom so that it can take effect after android phone is reset. But i don't know how to do it. I have a chance to ask rom factory to custome a rom for me. I want to make it clear
firstyly in my side so that i can tell factory guys very clearly. By now, I don't know how to do.
my iptables commadn is: iptables -t nat -A PREROUTING -p 6 -d 192.168.66.1 --dport 80 -j DNAT --to 192.168.66.1:8080
after that, i create and append -t nat -A PREROUTING -p 6 -d 192.168.66.1 --dport 80 -j DNAT --to 192.168.66.1:8080 into a /etc/iptables/rules.v4 or /etc/sysconfig/iptables.
After phone reset, no rules is set.
Anyone can tell me how to do it?
thanks very much in advance.