forked from saltstack-formulas/fail2ban-formula
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pillar.example
37 lines (37 loc) · 1.17 KB
/
pillar.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
fail2ban:
lookup:
config:
loglevel: 2
ignoreip: 127.0.0.1/8
bantime: 600
maxretry: 3
backend: auto
jails:
ssh:
action:
- iptables[name=SSH, port=ssh, protocol=tcp]
enabled: 'true'
filter: sshd
logpath: /var/log/auth.log
maxretry: 6
port: ssh
ssh_ddos:
action:
- iptables[name=SSH, port=ssh, protocol=tcp]
enabled: 'true'
filter: sshd-ddos
logpath: /var/log/auth.log
maxretry: 6
port: ssh
nginx-noscript:
action:
- iptables-multiport[name=NoScript, port="http,https"]
enabled: 'true'
filter: nginx-noscript
logpath: /var/log/nginx*/*access*.log
maxretry: 6
port: http,https
filters:
nginx-noscript:
Definition:
failregex: <HOST>.*(GET|POST).*(\.php|\.asp|\.exe|\.pl|\.cgi|\.scgi).*