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!
 
     
    