[Q] how can i add a iptables rule in a rom?

hi, all
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.
br

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by elfrieda45
1 hour ago
Last post by liza31
3 hours ago
Last post by ucorkery
4 hours ago
Last post by fkohler
14 minutes ago
Last post by delores.quigley
2 hours ago
Last post by treutel.jesse
3 hours ago
Last post by qkemmer
41 minutes ago
Last post by maggio.alphonso
3 hours ago
Last post by marilou.lehner
56 minutes ago
Last post by dillan29
1 hour ago
Last post by isaias06
35 minutes ago
Last post by vhahn
1 hour ago