Fix missing origins and actions for more complex direct rules

This commit is contained in:
iliajie
2022-08-31 21:37:26 +03:00
parent 06483d9429
commit 8426c3b035

View File

@@ -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)));
}