mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02:00
Routeback corrections
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
e4d667ca6a
commit
6c3163cc27
@ -636,8 +636,6 @@ sub apply_policy_rules() {
|
|||||||
sub complete_standard_chain ( $$$$ ) {
|
sub complete_standard_chain ( $$$$ ) {
|
||||||
my ( $stdchainref, $zone, $zone2, $default ) = @_;
|
my ( $stdchainref, $zone, $zone2, $default ) = @_;
|
||||||
|
|
||||||
add_rule $stdchainref, "$globals{STATEMATCH} ESTABLISHED,RELATED -j ACCEPT" unless $config{FASTACCEPT};
|
|
||||||
|
|
||||||
run_user_exit $stdchainref;
|
run_user_exit $stdchainref;
|
||||||
|
|
||||||
my $ruleschainref = $filter_table->{rules_chain( ${zone}, ${zone2} ) } || $filter_table->{rules_chain( 'all', 'all' ) };
|
my $ruleschainref = $filter_table->{rules_chain( ${zone}, ${zone2} ) } || $filter_table->{rules_chain( 'all', 'all' ) };
|
||||||
@ -1217,11 +1215,16 @@ sub prevent_hairpins() {
|
|||||||
for my $interface (all_interfaces) {
|
for my $interface (all_interfaces) {
|
||||||
my $interfaceref = find_interface( $interface );
|
my $interfaceref = find_interface( $interface );
|
||||||
|
|
||||||
|
if ( $interfaceref->{bridge} eq $interface ) {
|
||||||
|
#
|
||||||
|
# It is not possible to block these attempts on a bridge :-(
|
||||||
|
#
|
||||||
add_jump( $filter_table->{forward_chain $interface},
|
add_jump( $filter_table->{forward_chain $interface},
|
||||||
$target,
|
$target,
|
||||||
1,
|
1,
|
||||||
match_dest_dev( $interface ) )
|
match_dest_dev( $interface ) )
|
||||||
unless $interfaceref->{routefilter} || $interfaceref->{options}{routeback} || $interfaceref->{options}{ignore};
|
unless $interfaceref->{optiones}{routefilter} || $interfaceref->{options}{routeback} || $interfaceref->{options}{ignore};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user