[pve-devel] [PATCH manager 3/3] report: format iptables output for readability

Alexander Zeidler a.zeidler at proxmox.com
Tue Jan 9 15:23:56 CET 2024


Signed-off-by: Alexander Zeidler <a.zeidler at proxmox.com>
---
 PVE/Report.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index 10b28c79..9c46aa9b 100644
--- a/PVE/Report.pm
+++ b/PVE/Report.pm
@@ -85,7 +85,7 @@ my $init_report_cmds = sub {
 	    cmds => [
 		sub { dir2text('/etc/pve/firewall/', '.*fw') },
 		'cat /etc/pve/local/host.fw',
-		'iptables-save -c',
+		'iptables-save -c | column -t -l4 -o" "',
 	    ],
 	},
 	cluster => {
-- 
2.39.2





More information about the pve-devel mailing list