mirror of
https://gh.llkk.cc/https://github.com/WeblateOrg/scripts.git
synced 2025-10-03 15:01:00 +08:00
Enable aggressive mode on fail2ban
This commit is contained in:
parent
23a129e403
commit
46d564de7d
1 changed files with 5 additions and 0 deletions
|
@ -5,3 +5,8 @@ systemctl restart sshd
|
||||||
|
|
||||||
apt update
|
apt update
|
||||||
apt install -y fail2ban
|
apt install -y fail2ban
|
||||||
|
|
||||||
|
cat > /etc/fail2ban/jail.d/sshd.conf <<EOT
|
||||||
|
[sshd]
|
||||||
|
mode = aggressive
|
||||||
|
EOT
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue