forked from extern/shorewall_code
Place sfilter jumps in the option chains
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
4b8fb130ba
commit
288c7b06dc
@ -761,26 +761,22 @@ sub add_common_rules ( $ ) {
|
|||||||
|
|
||||||
my @filters = @{$interfaceref->{filter}};
|
my @filters = @{$interfaceref->{filter}};
|
||||||
|
|
||||||
$chainref = $filter_table->{forward_chain $interface};
|
$chainref = $filter_table->{forward_option_chain $interface};
|
||||||
|
|
||||||
if ( @filters ) {
|
if ( @filters ) {
|
||||||
add_ijump( $chainref , @ipsec ? 'j' : 'g' => $target1, imatch_source_net( $_ ), @ipsec ), $chainref->{filtered}++ for @filters;
|
add_ijump( $chainref , @ipsec ? 'j' : 'g' => $target1, imatch_source_net( $_ ), @ipsec ), $chainref->{filtered}++ for @filters;
|
||||||
$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( $config{ROUTE_FILTER} eq 'on' ||
|
unless( $config{ROUTE_FILTER} eq 'on' ||
|
||||||
$interfaceref->{options}{routeback} ||
|
$interfaceref->{options}{routeback} ||
|
||||||
$interfaceref->{options}{routefilter} ||
|
$interfaceref->{options}{routefilter} ||
|
||||||
$interfaceref->{physical} eq '+' );
|
$interfaceref->{physical} eq '+' );
|
||||||
|
|
||||||
$interfaceref->{options}{use_forward_chain} = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if ( @filters ) {
|
if ( @filters ) {
|
||||||
$chainref = $filter_table->{input_chain $interface};
|
$chainref = $filter_table->{input_option_chain $interface};
|
||||||
add_ijump( $chainref , g => $target, imatch_source_net( $_ ), @ipsec ), $chainref->{filtered}++ for @filters;
|
add_ijump( $chainref , g => $target, imatch_source_net( $_ ), @ipsec ), $chainref->{filtered}++ for @filters;
|
||||||
$interfaceref->{options}{use_input_chain} = 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( option_chains( $interface ) ) {
|
for ( option_chains( $interface ) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user