diff --git a/Shorewall/Perl/Shorewall/Rules.pm b/Shorewall/Perl/Shorewall/Rules.pm index 57ec63816..179fe1329 100644 --- a/Shorewall/Perl/Shorewall/Rules.pm +++ b/Shorewall/Perl/Shorewall/Rules.pm @@ -2094,6 +2094,7 @@ sub process_actions() { } } elsif ( /^proto=(.+)$/ ) { fatal_error "Unknown Protocol ($1)" unless defined( $proto = resolve_proto( $1 ) ); + fatal_error "A protocol may not be specified on the REJECT_ACTION ($action)" if $action eq $config{REJECT_ACTION}; } else { fatal_error "Invalid option ($_)" unless $options{$_}; $opts |= $options{$_};