Fail2ban 설정은 configure 명령어에서 설정할 수 있습니다.
LYSH@MyHostName# configure configure# fail2ban -h usage: fail2ban [-h] {add,disable,enable} ... config fail2ban positional arguments: add Configure fail2ban disable Disable fail2ban service enable Enable fail2ban service optional arguments: -h, --help show this help message and exit
Basic Commands
configure# fail2ban add -h usage: fail2ban add [-h] [bantime] [findtime] [maxretry] positional arguments: bantime The number of seconds that a host is banned findtime The length of time between login attempts before a ban is set maxretry How many attempts can be made to access the server before a ban is imposed optional arguments: -h, --help show this help message and exit
configure# fail2ban add 3600 86400 5
원격 접속을 86400초 동안 5번 실패하면 3600초 동안 접속을 방지합니다.configure# fail2ban enable
fail2ban을 활성화 합니다.configure# fail2ban disable
fail2ban을 비활성화 합니다.