Firewalld - list tables?

Reindl Harald h.reindl at thelounge.net
Fri May 17 11:47:16 UTC 2013



Am 17.05.2013 13:26, schrieb John Horne:
> However, 'firewall-cmd' offers both the '--get-chains' and '--get-rules'
> options, but these both require specifying which table is to be used.
> How do I know what the tables are? There is no '--get-tables' option.
> I can run 'cat /proc/net/ip_tables_names' and this lists the standard
> iptables tables (nat ,mangle, filter). But if I use these names with
> 'firweall-cmd' all I get is a blank line displayed. E.g.
> 
>   firewall-cmd --direct --get-chains ipv4 nat
> 
> The same occurs with all the table names.
> 
> So, my question is this, is 'firewall-cmd' working correctly and simply
> stating that none of the tables have any chains (and so no rules)?
> Secondly, how do I find out what tables are defined for firewalld?

since these are all wrapper around netfilter/iptables you get
the truth with "iptables --list --numeric --verbose"

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20130517/fb1f1b2d/attachment.sig>


More information about the users mailing list