mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-23 14:08:45 +01:00
Don't respond to IGMP with an ICMP
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@8396 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
0064bcb5b5
commit
2cfe94c879
@ -564,11 +564,12 @@ sub add_common_rules() {
|
||||
}
|
||||
}
|
||||
|
||||
add_rule $rejectref , '-p tcp -j REJECT --reject-with tcp-reset';
|
||||
add_rule $rejectref , '-p 2 -j DROP';
|
||||
add_rule $rejectref , '-p 6 -j REJECT --reject-with tcp-reset';
|
||||
|
||||
if ( $capabilities{ENHANCED_REJECT} ) {
|
||||
add_rule $rejectref , '-p udp -j REJECT';
|
||||
add_rule $rejectref, '-p icmp -j REJECT --reject-with icmp-host-unreachable';
|
||||
add_rule $rejectref , '-p 17 -j REJECT';
|
||||
add_rule $rejectref, '-p 1 -j REJECT --reject-with icmp-host-unreachable';
|
||||
add_rule $rejectref, '-j REJECT --reject-with icmp-host-prohibited';
|
||||
} else {
|
||||
add_rule $rejectref , '-j REJECT';
|
||||
|
@ -3644,6 +3644,11 @@ __EOF__
|
||||
run_iptables -A reject -s $address -j DROP
|
||||
done
|
||||
|
||||
#
|
||||
# Don't respond to IGMP with an ICMP
|
||||
#
|
||||
run_iptables -A reject -p 2 -j DROP
|
||||
|
||||
run_iptables -A reject -p tcp -j REJECT --reject-with tcp-reset
|
||||
run_iptables -A reject -p udp -j REJECT
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user