mirror of
https://gitlab.com/shorewall/code.git
synced 2025-08-18 12:47:25 +02:00
Make 'nosmurfs' work with Address Type Match on IPv6
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
@@ -475,7 +475,12 @@ sub add_common_rules() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ( have_capability( 'ADDRTYPE' ) ) {
|
if ( have_capability( 'ADDRTYPE' ) ) {
|
||||||
add_rule $chainref , '-s 0.0.0.0 -j RETURN';
|
if ( $family == F_IPV4 ) {
|
||||||
|
add_rule $chainref , '-s 0.0.0.0 -j RETURN';
|
||||||
|
} else {
|
||||||
|
add_rule $chainref , '-s ::' -j RETURN';
|
||||||
|
}
|
||||||
|
|
||||||
add_jump( $chainref, $smurfdest, 1, '-m addrtype --src-type BROADCAST ' ) ;
|
add_jump( $chainref, $smurfdest, 1, '-m addrtype --src-type BROADCAST ' ) ;
|
||||||
} else {
|
} else {
|
||||||
if ( $family == F_IPV4 ) {
|
if ( $family == F_IPV4 ) {
|
||||||
|
Reference in New Issue
Block a user