diff options
author | Patrick Talbert <ptalbert@redhat.com> | 2018-11-28 09:56:32 +0100 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2019-03-19 12:08:15 +0000 |
commit | bea596f34382f353be3a9a3589e21e571793e15c (patch) | |
tree | fa81d812905b775c5e9deb50e978dcbb466bd4a2 | |
parent | 3bc04b0e6e00bdabc786fc9f00739465f3636865 (diff) | |
download | sos-bea596f34382f353be3a9a3589e21e571793e15c.tar.gz |
[firewalld] Collect direct rules, overall state and logging setting
Direct Rules are an increasingly common way to control the firewall,
but current sos plugin output does not get these.
Update the plugin to grab firwall-cmd output about Direct Rules, and
also pick up the 'state' output and newer logging settings.
Resolves: #1486
Signed-off-by: Patrick Talbert <ptalbert@redhat.com>
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r-- | sos/plugins/firewalld.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py index 7185b5d4..26731fd3 100644 --- a/sos/plugins/firewalld.py +++ b/sos/plugins/firewalld.py @@ -39,7 +39,15 @@ class FirewallD(Plugin, RedHatPlugin): # docker containers. self.add_cmd_output([ "firewall-cmd --list-all-zones", - "firewall-cmd --permanent --list-all-zones" + "firewall-cmd --direct --get-all-chains", + "firewall-cmd --direct --get-all-rules", + "firewall-cmd --direct --get-all-passthroughs", + "firewall-cmd --permanent --list-all-zones", + "firewall-cmd --permanent --direct --get-all-chains", + "firewall-cmd --permanent --direct --get-all-rules", + "firewall-cmd --permanent --direct --get-all-passthroughs", + "firewall-cmd --state", + "firewall-cmd --get-log-denied" ], timeout=10) # vim: set et ts=4 sw=4 : |