public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH pve-manager 1/1] report: add packet counter to iptables output
@ 2024-01-03  8:53 Hannes Duerr
  2024-01-03 11:03 ` [pve-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Hannes Duerr @ 2024-01-03  8:53 UTC (permalink / raw)
  To: pve-devel

Signed-off-by: Hannes Duerr <h.duerr@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-03 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-03  8:53 [pve-devel] [PATCH pve-manager 1/1] report: add packet counter to iptables output Hannes Duerr
2024-01-03 11:03 ` [pve-devel] applied: " Wolfgang Bumiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal