Make 'routefilter' and 'sfilter' mutually exclusive

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2012-07-15 10:37:56 -07:00
parent 65b16a1acf
commit e1e7ab42c1

View File

@ -1169,7 +1169,9 @@ sub process_interface( $$ ) {
if ( $options{rpfilter} ) {
require_capability( 'RPFILTER_MATCH', q(The 'rpfilter' option), 's' ) ;
fatal_error q(The 'routefilter' and 'rpfilter' options are mutually exclusive) if $options{routefilter};
fatal_error q(The 'routefilter', 'sfilter' and 'rpfilter' options are mutually exclusive) if $options{routefilter} || @$filterref;
} else {
fatal_error q(The 'routefilter', 'sfilter' and 'rpfilter' options are mutually exclusive) if $options{routefilter} && @$filterref;
}
if ( supplied( my $ignore = $options{ignore} ) ) {