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:
teastep 2008-04-06 22:46:53 +00:00
parent 0064bcb5b5
commit 2cfe94c879
2 changed files with 9 additions and 3 deletions

View File

@ -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';

View File

@ -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
#