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"