Git initial commit
This commit is contained in:
commit
e319adc501
24 files changed
+790
No files matched your search
@@ -0,0 +1,5 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^<HOST> -.*GET .*/~.*
|
||||
|
||||
ignoreregex =
|
||||
@@ -0,0 +1,5 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^<HOST> -.*GET http.*
|
||||
|
||||
ignoreregex =
|
||||
@@ -0,0 +1,5 @@
|
||||
[Definition]
|
||||
|
||||
failregex = ^<HOST> -.*GET.*(\.asp|\.exe|\.pl|\.cgi|\.scgi)
|
||||
|
||||
ignoreregex =
|
||||
Executable
+34
@@ -0,0 +1,34 @@
|
||||
[DEFAULT]
|
||||
bantime = {{ fail2ban_bantime }}
|
||||
findtime = {{ fail2ban_bantime }}
|
||||
maxretry = {{ fail2ban_maxretry }}
|
||||
|
||||
[sshd]
|
||||
enabled = true
|
||||
port = 22,{{ ssh_port }},ssh
|
||||
|
||||
[nginx-http-auth]
|
||||
enabled = {{ 'nginx' in fail2ban_activate_modules }}
|
||||
port = http,https
|
||||
filter = nginx-noscript
|
||||
logpath = %(nginx_error_log)s
|
||||
maxretry = 6
|
||||
|
||||
{% for filter in fail2ban_nginx_default_filter %}
|
||||
[{{ filter }}]
|
||||
enabled = {{ 'nginx' in fail2ban_activate_modules }}
|
||||
port = http,https
|
||||
filter = {{ filter }}
|
||||
logpath = %(nginx_access_log)s
|
||||
maxretry = 2
|
||||
|
||||
{% endfor %}
|
||||
{% for filter in fail2ban_nginx_selfmade_filter %}
|
||||
[{{ filter }}]
|
||||
enabled = {{ 'nginx' in fail2ban_activate_modules }}
|
||||
port = http,https
|
||||
filter = {{ filter }}
|
||||
logpath = %(nginx_access_log)s
|
||||
maxretry = 2
|
||||
|
||||
{% endfor %}
|
||||
Reference in new issue
Block a user