diff --git a/Shorewall/Perl/Shorewall/Chains.pm b/Shorewall/Perl/Shorewall/Chains.pm index b0e54a130..6b3c5c5b2 100644 --- a/Shorewall/Perl/Shorewall/Chains.pm +++ b/Shorewall/Perl/Shorewall/Chains.pm @@ -728,6 +728,8 @@ sub format_option( $$ ) { sub format_rule( $$;$ ) { my ( $chainref, $ruleref, $suppresshdr ) = @_; + return $ruleref->{cmd} if exists $ruleref->{cmd}; + my $rule = $suppresshdr ? '' : "-A $chainref->{name}"; for ( qw/ p i s o d / ) {