Kaynağa Gözat

Add how to increase bantime

Xi Ruoyao 7 yıl önce
ebeveyn
işleme
07744268fd
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      content/post/script-kid.md

+ 4 - 0
content/post/script-kid.md

@@ -63,3 +63,7 @@ via SSH and use `iptables` to ban them automatically.
 `sudo apt install fail2ban`, `systemctl enable fail2ban` and
 `systemctl start fail2ban`.  The default configuration can ban the brute
 force attack on SSH.
+
+If you still think the kids are too noisy, modify `/etc/fail2ban/jail.conf`
+and set `bantime = 233333` to ban them for a longer time.  But I suggest
+you to set `.ssh/authorized_keys` at first so you won't ban yourself.