forked from extern/shorewall_code
Set all interfaces's 'routefilter' option if ROUTE_FILTER=on
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
d3ed864daa
commit
7ed52360d5
@ -557,7 +557,11 @@ sub add_common_rules() {
|
|||||||
$interfaceref->{options}{use_forward_chain} = 1;
|
$interfaceref->{options}{use_forward_chain} = 1;
|
||||||
} elsif ( $interfaceref->{bridge} eq $interface ) {
|
} elsif ( $interfaceref->{bridge} eq $interface ) {
|
||||||
add_ijump( $chainref , @ipsec ? 'j' : 'g' => $target1, imatch_dest_dev( $interface ), @ipsec ), $chainref->{filtered}++
|
add_ijump( $chainref , @ipsec ? 'j' : 'g' => $target1, imatch_dest_dev( $interface ), @ipsec ), $chainref->{filtered}++
|
||||||
unless $interfaceref->{options}{routeback} || $interfaceref->{options}{routefilter} || $interfaceref->{physical} eq '+';
|
unless( $config{ROUTE_FILTER} eq 'on' ||
|
||||||
|
$interfaceref->{options}{routeback} ||
|
||||||
|
$interfaceref->{options}{routefilter} ||
|
||||||
|
$interfaceref->{physical} eq '+' );
|
||||||
|
|
||||||
$interfaceref->{options}{use_forward_chain} = 1;
|
$interfaceref->{options}{use_forward_chain} = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user