소스 검색

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.