iptables error in android: iptables-save and iptables-restore not working
I have compiled Linux for android emulator with full netfilter functionality enabled. And got a iptables binary after building android from source.
When i push this binary to the emulator i can execute commands like below successfully. iptables -L iptables -F iptables -A INPUT -s www.google.com -j DROP with this error: # # iptables -L getsockopt for multiport failed strangely: No such file or directory getsockopt for multiport failed strangely: No such file or directory Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination # and # iptables -A INPUT -s www.google.com -j DROP getsockopt for multiport failed strangely: No such file or directory getsockopt for multiport failed strangely: No such file or directory FIX ME! implement getgrnam() bionic/libc/bionic/stubs.c:344 but atleast the above commands they work! but when i try iptables-save or iptables-restore i get error saying iptables-save: not found In my config file CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m what is the problem..?? and how can i enable full iptables functionality in android or how can i save the current active iptables rules safely and reload them when next reboot. please help. thank you! |
4 days & no answers, I can move this to Linux - Networking, Linux - Wireless Networking, or Linux - Security if you think you'd get better exposure. Meanwhile, consider adding "Code:" blocks to your OP:
Quote:
|
Quote:
Actually i didn't know how to put code blocks. And regarding the question: I think android team has modified iptables source, to exclude iptables-save than they must have modified some source files which call functions in iptables-save. May be because of that, the error comes and also i checked iptables 1.3.7 sourcecode from netfilter. It seems that android source has its own modified iptables. Like, the file iptables-1.3.7/extension/libipt_connmark.c is changed to libipt_2connmark.c I don't think this can be done, if also i want to i will have to modify the source again for android specific iptables... |
Quote:
|
Quote:
|
Quote:
That's good, thank you; but I was asking you to fix your 1st post in this thread: http://www.linuxquestions.org/questi...6/#post4313606 |
All times are GMT -5. The time now is 01:23 AM. |