notes:fail2ban
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
notes:fail2ban [2014/08/28 08:59] – created admin | notes:fail2ban [2014/09/08 14:12] (current) – [fail2ban for Nginx] admin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== fail2ban | + | ====== |
To install fail2ban type | To install fail2ban type | ||
Line 7: | Line 7: | ||
fail2ban-client -h | fail2ban-client -h | ||
to see if everything is all right. You should always use fail2ban-client and never call fail2ban-server directly. | to see if everything is all right. You should always use fail2ban-client and never call fail2ban-server directly. | ||
+ | |||
+ | ===== fail2ban for postfix/ssh ===== | ||
Now edit jail.conf, which contains the declaration of your jails. Set | Now edit jail.conf, which contains the declaration of your jails. Set | ||
Line 15: | Line 17: | ||
fail2ban-client reload | fail2ban-client reload | ||
- | ===== Nginx ===== | + | ===== fail2ban for Nginx ===== |
Scanning in search of broken script is quite frequent. My nginx '' | Scanning in search of broken script is quite frequent. My nginx '' | ||
- | 2014/05/28 21:59:00 [error] 17394#0: *105 open() "/ | + | 2014/05/28 21:59:00 [error] 17394#0: *105 open() "/ |
- | 2014/05/28 21:59:00 [error] 17394#0: *105 open() "/ | + | 2014/05/28 21:59:00 [error] 17394#0: *105 open() "/ |
- | 2014/05/28 21:59:01 [error] 17393#0: *111 "/ | + | 2014/05/28 21:59:01 [error] 17393#0: *111 "/ |
- | 2014/05/28 21:59:01 [error] 17393#0: *109 open() "/ | + | 2014/05/28 21:59:01 [error] 17393#0: *109 open() "/ |
Create new filter / | Create new filter / | ||
Line 58: | Line 60: | ||
bantime | bantime | ||
maxretry = 240 | maxretry = 240 | ||
- | |||
- | More advanced filters available at [1]. | ||
Remember to reload rules with | Remember to reload rules with | ||
fail2ban-client reload | fail2ban-client reload | ||
+ | |||
+ | More advanced filters for Nginx available at [1]. | ||
[1] [[http:// | [1] [[http:// |
notes/fail2ban.1409216368.txt.gz · Last modified: 2014/08/28 08:59 by admin