Disallow a protocol on the Reject Action

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-12-02 12:58:05 -08:00
parent ab12d63a4f
commit 7121a0f1b1
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -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{$_};