Fix error in section 'Protection against syn-flooding'.

This commit is contained in:
2022-03-29 00:40:48 +02:00
parent 783be30197
commit ccb09d0095
2 changed files with 4 additions and 4 deletions

View File

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