add ssh-ddos jail
This commit is contained in:
parent
14170ae297
commit
a04440c3b2
|
@ -12,6 +12,18 @@ logpath = /var/log/sshd/current
|
|||
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
|
||||
EOF
|
||||
|
||||
$OUT .= " smeserver-sendmail[name=\"SSH\",dest=$maildest]\n"
|
||||
if ($mail eq 'enabled');
|
||||
|
||||
$OUT .=<<"EOF";
|
||||
|
||||
[ssh-ddos]
|
||||
enabled = true
|
||||
filter = sshd-ddos
|
||||
logpath = /var/log/sshd/current
|
||||
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
|
||||
EOF
|
||||
|
||||
$OUT .= " smeserver-sendmail[name=\"SSH\",dest=$maildest]\n"
|
||||
if ($mail eq 'enabled');
|
||||
|
||||
|
|
Loading…
Reference in New Issue