aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Desrosiers <setuid@gmail.com>2020-05-13 11:24:33 -0400
committerJake Hunsaker <jhunsake@redhat.com>2020-05-19 11:35:21 -0400
commit591cd4cf0c148500cf5287dc51580822c1551c37 (patch)
treee2240a97fc59cc3c69eb9cf521951511f81d0e7f
parent5c40af812a71129b770591aa9925352b10f34e31 (diff)
downloadsos-591cd4cf0c148500cf5287dc51580822c1551c37.tar.gz
[networking] Small change to produce more-useful, numbered ufw rule status
This allows inspection of the rule order, as well as insert/edit/delete of the rules by that numbered id (ufw delete 23). More details can be found here: https://help.ubuntu.com/community/UFW Resolves: #2065 Signed-off-by: David A. Desrosiers <setuid@gmail.com> Signed-off-by: Jake Hunsaker <jhunsake@redhat.com>
-rw-r--r--sos/report/plugins/networking.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sos/report/plugins/networking.py b/sos/report/plugins/networking.py
index 0948da75..cac6ccca 100644
--- a/sos/report/plugins/networking.py
+++ b/sos/report/plugins/networking.py
@@ -314,8 +314,8 @@ class UbuntuNetworking(Networking, UbuntuPlugin, DebianPlugin):
"/run/systemd/network"
])
self.add_cmd_output([
- "/usr/sbin/ufw status",
- "/usr/sbin/ufw app list"
+ "ufw status numbered",
+ "ufw app list"
])
if self.get_option("traceroute"):
self.add_cmd_output("/usr/sbin/traceroute -n %s" % self.trace_host)