mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02:00
Catch 'routefilter' with provider interfaces.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
a15b2918a4
commit
50d09e76cb
@ -616,7 +616,15 @@ sub process_a_provider( $ ) {
|
|||||||
fatal_error "MARK not allowed with 'tproxy'" if $mark ne '-';
|
fatal_error "MARK not allowed with 'tproxy'" if $mark ne '-';
|
||||||
fatal_error "'persistent' is not valid with 'tproxy" if $persistent;
|
fatal_error "'persistent' is not valid with 'tproxy" if $persistent;
|
||||||
$mark = $globals{TPROXY_MARK};
|
$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 $val = 0;
|
||||||
my $pref;
|
my $pref;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user