From 43ac9030852439ac46d45bada16810c6fe24292c Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Fri, 26 Jun 2020 16:55:39 -0700 Subject: [PATCH] Correct action dport implementation Signed-off-by: Tom Eastep --- Shorewall/Perl/Shorewall/Rules.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 27be3cb74..e9e8d6148 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -1033,7 +1033,7 @@ sub add_policy_rules( $$$$$ ) { # Policy action is a regular action -- jump to the action chain # if ( ( my $proto = determine_action_protocol( $action, '-' ) ) ne '-' ) { - if ( my $dport = determine_action_dport( $action, $proto, '-' ) ) { + if ( my $dport = determine_action_dport( $action, $proto, '' ) ) { add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto, dport => $dport ); } else { add_ijump( $chainref, j => use_policy_action( $paction, $chainref->{name} ), p => $proto );