From 8426c3b035ca2703ff20895014c065a037408a3f Mon Sep 17 00:00:00 2001 From: iliajie Date: Wed, 31 Aug 2022 21:37:26 +0300 Subject: [PATCH] Fix missing origins and actions for more complex direct rules --- firewalld/list_rules.cgi | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/firewalld/list_rules.cgi b/firewalld/list_rules.cgi index 0425fbb64..71304a4b6 100755 --- a/firewalld/list_rules.cgi +++ b/firewalld/list_rules.cgi @@ -138,19 +138,17 @@ while(<$fh2>) { } # Get address - if (/address=["'](.*?)["']/) { - } - push(@head, $text{'list_rules_ip'}); - push(@body, $ips); + push(@head, $text{'list_rules_ip'}); + push(@body, $ips); # Get origin - if (/(INPUT|OUTPUT)/) { + if (/(INPUT|OUTPUT|FORWARD|POSTROUTING)/) { push(@head, $text{'list_rules_origin'}); push(@body, ucfirst(lc($1))); } # Get action - if (/(ACCEPT|REJECT|DROP|MARK$)/) { + if (/(ACCEPT|REJECT|DROP|MARK|MASQUERADE$)/) { push(@head, $text{'list_rules_action'}); push(@body, ucfirst(lc($1))); }