iptables error in android: iptables-save and iptables-restore not working

Discussion in 'Android Hacks and Help' started by preetb123, Apr 4, 2011.

  1. preetb123
    Offline

    preetb123 New Member

    Joined:
    Feb 13, 2011
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    0
    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 Google -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 Google -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!
Search tags for this page
android source compile netfilter enable
,
building android iptables
,
droid razr m iptables
,
fix me! implement getgrnam() bionic/libc/bionic/stubs.c
,

getsockopt for multiport failed strangely

,

getsockopt for multiport failed strangely: no such file or d

,
getsockopt no such file or directory
,
how to save iptables android
,
how to save iptables rules android
,
how to work with android iptable
,
iptables not found android
,
iptables restore android
,

no iptables binary found on your rom

,
save iptables android
,
where are the iptables on android phone