Преглед на файлове

Add how to increase bantime

Xi Ruoyao преди 7 години
родител
ревизия
07744268fd
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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.