diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 77b10c365..ef1420738 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2095,6 +2095,8 @@ sub process_rule ( $$$$$$$$$$$$$$$$$$$ ) { if ( $inline_matches =~ /^(.*\s+)-j\s+(.+)$/ ) { $matches .= $1; $action = $2; + my ( $target ) = split ' ', $action; + fatal_error "Unknown jump target ($action)" unless $targets{$target}; fatal_error "INLINE may not have a parameter when '-j' is specified in the free-form area" if $param ne ''; } else { $matches .= "$inline_matches ";