Fix error in section 'Protection against syn-flooding'.
This commit is contained in:
parent
783be30197
commit
ccb09d0095
@ -490,8 +490,8 @@ if $protect6_against_several_attacks ; then
|
||||
|
||||
echononl "\t Protection against syn-flooding.."
|
||||
|
||||
if $drop6_syn_flood || $log_syn_flood ; then
|
||||
$ip6t -N syn-flood
|
||||
if $drop6_syn_flood || $log_syn_flood || $log_all ; then
|
||||
$ip6t -N syn_flood
|
||||
$ip6t -A INPUT -p tcp --syn -j syn_flood
|
||||
$ip6t -A syn-flood -m limit --limit 1/second --limit-burst 3 -j RETURN
|
||||
fi
|
||||
@ -499,7 +499,7 @@ if $protect6_against_several_attacks ; then
|
||||
$ip6t -A syn-flood -j $LOG_TARGET $tag_log_prefix "$log_prefix SYN flood: "
|
||||
fi
|
||||
if $drop6_syn_flood ; then
|
||||
$ip6t -A syn-flood -j DROP
|
||||
$ip6t -A syn_flood -j DROP
|
||||
echo_done
|
||||
else
|
||||
echo_skipped
|
||||
|
@ -993,7 +993,7 @@ if $protect_against_several_attacks ; then
|
||||
# ---
|
||||
|
||||
echononl "\t Protection against syn-flooding.."
|
||||
if $drop_syn_flood || $log_syn_flood ; then
|
||||
if $drop_syn_flood || $log_syn_flood || $log_all ; then
|
||||
$ipt -N syn_flood
|
||||
$ipt -A INPUT -p tcp --syn -j syn_flood
|
||||
$ipt -A syn_flood -m limit --limit 1/s --limit-burst 3 -j RETURN
|
||||
|
Loading…
Reference in New Issue
Block a user