Raspberry Pi
fail2ban
우리별3호
2020. 1. 15. 11:16
install
$ sudo apt-get install fail2ban
$ sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
이 파일에서 [sshd]를 찾아 다음 2줄을 추가한다
enabled = true
filter = sshd
다음 3줄도 추가
banaction = iptables-multiport
bantime = -1
maxretry = 3
참고
1. https://pimylifeup.com/raspberry-pi-fail2ban/