Iptables Facts

See also: Iptables Operations.

iptables.Ip6tablesChains

host.get_fact(Ip6tablesChains, table='filter')

Returns a dict of ip6tables chains & policies:

{
    "NAME": "POLICY",
}

iptables.Ip6tablesRules

host.get_fact(Ip6tablesRules, table='filter')

Returns a list of ip6tables rules for a specific table:

[
    {
        "chain": "PREROUTING",
        "jump": "DNAT",
    },
]

iptables.IptablesChains

host.get_fact(IptablesChains, table='filter')

Returns a dict of iptables chains & policies:

{
    "NAME": "POLICY",
}

iptables.IptablesRules

host.get_fact(IptablesRules, table='filter')

Returns a list of iptables rules for a specific table:

[
    {
        "chain": "PREROUTING",
        "jump": "DNAT",
    },
]