To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Fail2ban: Difference between revisions

From ZNC
Jump to navigation Jump to search
KindOne (talk | contribs)
m Restore fail2ban from archive.org - 2016/07/12
help
 
Line 10: Line 10:
| count = none to two
| count = none to two
| extra = The first argument is the time in minutes an IP is blocked after a failed login. The second argument is the number of allowed failed logins before an IP is blocked. The timeout is reset after each failed login. By default fail2ban allows two failed logins in one minute.}}
| extra = The first argument is the time in minutes an IP is blocked after a failed login. The second argument is the number of allowed failed logins before an IP is blocked. The timeout is reset after each failed login. By default fail2ban allows two failed logins in one minute.}}
== Commands ==
<pre>
[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+
[13 июня, 22:32:29] <*fail2ban> | Command          | Description                                                |
[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+
[13 июня, 22:32:29] <*fail2ban> | Attempts [count]  | The number of allowed failed login attempts.                |
[13 июня, 22:32:29] <*fail2ban> | Ban <hosts>      | Ban the specified hosts.                                    |
[13 июня, 22:32:29] <*fail2ban> | Help search      | Generate this output                                        |
[13 июня, 22:32:29] <*fail2ban> | List              | List banned hosts.                                          |
[13 июня, 22:32:29] <*fail2ban> | Timeout [minutes] | The number of minutes IPs are blocked after a failed login. |
[13 июня, 22:32:29] <*fail2ban> | Unban <hosts>    | Unban the specified hosts.                                  |
[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+
</pre>

Latest revision as of 21:33, 13 June 2017


This module implements a fail2ban-like behaviour. When a login fails, all logins from that IP are blocked for a configurable timespan.

Usage

Arguments

This global module takes none to two arguments. The first argument is the time in minutes an IP is blocked after a failed login. The second argument is the number of allowed failed logins before an IP is blocked. The timeout is reset after each failed login. By default fail2ban allows two failed logins in one minute.

Read loading modules to learn more about loading modules.

Commands

[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+
[13 июня, 22:32:29] <*fail2ban> | Command           | Description                                                 |
[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+
[13 июня, 22:32:29] <*fail2ban> | Attempts [count]  | The number of allowed failed login attempts.                |
[13 июня, 22:32:29] <*fail2ban> | Ban <hosts>       | Ban the specified hosts.                                    |
[13 июня, 22:32:29] <*fail2ban> | Help search       | Generate this output                                        |
[13 июня, 22:32:29] <*fail2ban> | List              | List banned hosts.                                          |
[13 июня, 22:32:29] <*fail2ban> | Timeout [minutes] | The number of minutes IPs are blocked after a failed login. |
[13 июня, 22:32:29] <*fail2ban> | Unban <hosts>     | Unban the specified hosts.                                  |
[13 июня, 22:32:29] <*fail2ban> +-------------------+-------------------------------------------------------------+