[pve-devel] [PATCH pve-manager 1/1] report: add packet counter to iptables output

Hannes Duerr h.duerr at proxmox.com
Wed Jan 3 09:53:30 CET 2024


Signed-off-by: Hannes Duerr <h.duerr at proxmox.com>
---

The additional information can help with debugging firewall rules, as
one can see how many times a specified rule got hit

 PVE/Report.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/PVE/Report.pm b/PVE/Report.pm
index 2024285e..10b28c79 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',
+		'iptables-save -c',
 	    ],
 	},
 	cluster => {
-- 
2.39.2





More information about the pve-devel mailing list