浏览代码

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.