I have compiled Linux for android emulator with full netfilter functionality. And I got the iptables binary after building the android from the source.
When I click this binary code on the emulator
I can successfully execute commands like below.
iptables -L
iptables -F
iptables -A INPUT -s www.google.com -j DROP
with this error:
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
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 at least the above teams that they work!
but when i try
iptables-save or
iptables-restore
I get an error
iptables-save: not found
In my configuration file
CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
what is the problem..?? and how can I enable the full iptables functionality in Android and how can I safely save the current active iptables rules and reload them the next time I reboot.
please, help. thank!