[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 hauck.kaci
4 hours ago
Last post by kendrick15
4 hours ago
Last post by amir64
1 hour ago
Last post by bkozey
2 hours ago
Last post by marmstrong
4 hours ago
Last post by rquitzon
4 hours ago
Last post by wuckert.idell
4 hours ago
Last post by wklocko
2 hours ago
Last post by yshields
4 hours ago
Last post by grayce98
41 minutes ago
Last post by ola.simonis
4 hours ago