forked from extern/shorewall_code
Don't generate rules from link local net to vserver zones
This commit is contained in:
parent
eff84ae8a6
commit
59189d6324
@ -91,9 +91,9 @@ our $validate_host;
|
|||||||
use constant { ALLIPv4 => '0.0.0.0/0' ,
|
use constant { ALLIPv4 => '0.0.0.0/0' ,
|
||||||
ALLIPv6 => '::/0' ,
|
ALLIPv6 => '::/0' ,
|
||||||
IPv4_MULTICAST => '224.0.0.0/4' ,
|
IPv4_MULTICAST => '224.0.0.0/4' ,
|
||||||
IPv6_MULTICAST => 'FF00::/10' ,
|
IPv6_MULTICAST => 'FF00::/8' ,
|
||||||
IPv6_LINKLOCAL => 'FF80::/10' ,
|
IPv6_LINKLOCAL => 'FE80::/10' ,
|
||||||
IPv6_SITELOCAL => 'FFC0::/10' ,
|
IPv6_SITELOCAL => 'FEC0::/10' ,
|
||||||
IPv6_LOOPBACK => '::1' ,
|
IPv6_LOOPBACK => '::1' ,
|
||||||
IPv6_LINK_ALLNODES => 'FF01::1' ,
|
IPv6_LINK_ALLNODES => 'FF01::1' ,
|
||||||
IPv6_LINK_ALLRTRS => 'FF01::2' ,
|
IPv6_LINK_ALLRTRS => 'FF01::2' ,
|
||||||
|
@ -2042,9 +2042,11 @@ sub generate_matrix() {
|
|||||||
add_jump $filter_table->{INPUT}, $inputchainref, 0, match_source_dev($interface) unless $input_jump_added{$interface}++;
|
add_jump $filter_table->{INPUT}, $inputchainref, 0, match_source_dev($interface) unless $input_jump_added{$interface}++;
|
||||||
$use_input = 1;
|
$use_input = 1;
|
||||||
|
|
||||||
for my $vzone ( @vservers ) {
|
if ( uc $net ne IPv6_LINKLOCAL ) {
|
||||||
my $target = rules_target( $zone, $vzone );
|
for my $vzone ( @vservers ) {
|
||||||
generate_dest_rules( $inputchainref, $target, $vzone, $source . $ipsec_in_match ) if $target;
|
my $target = rules_target( $zone, $vzone );
|
||||||
|
generate_dest_rules( $inputchainref, $target, $vzone, $source . $ipsec_in_match ) if $target;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$inputchainref = $filter_table->{INPUT};
|
$inputchainref = $filter_table->{INPUT};
|
||||||
|
Loading…
Reference in New Issue
Block a user