Catch 'routefilter' with provider interfaces.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2017-01-11 11:47:10 -08:00
parent a15b2918a4
commit 50d09e76cb
No known key found for this signature in database
GPG Key ID: 96E6B3F2423A4D10

View File

@ -616,8 +616,16 @@ sub process_a_provider( $ ) {
fatal_error "MARK not allowed with 'tproxy'" if $mark ne '-';
fatal_error "'persistent' is not valid with 'tproxy" if $persistent;
$mark = $globals{TPROXY_MARK};
} elsif ( $interfaceref->{options}{routefilter} ) {
if ( $config{USE_DEFAULT_RT} ) {
fatal_error "Provider interfaces may not specify 'routefilter' when USE_DEFAULT_RT=Yes";
} else {
fatal_error "Provider interfaces may not specify 'routefilter' without 'balance' or 'primary'" unless $balance;
}
}
my $val = 0;
my $pref;