Skip to content

Commit

Permalink
fix(pillar.example): declare ignoreip (whitelist) in jail section (ng)
Browse files Browse the repository at this point in the history
  • Loading branch information
Irsute authored and myii committed Jan 10, 2020
1 parent d41fe3f commit 00661cb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pillar.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ fail2ban:
lookup:
config:
loglevel: ERROR
ignoreip: 127.0.0.1/8
bantime: 600
maxretry: 3
backend: auto
Expand All @@ -19,21 +18,24 @@ fail2ban:
filter: sshd
logpath: /var/log/auth.log
maxretry: 6
port: ssh
port: ssh
ignoreip: 127.0.0.1/8
ssh_ddos:
action: iptables[name=SSH, port=ssh, protocol=tcp]
enabled: 'true'
filter: sshd-ddos
logpath: /var/log/auth.log
maxretry: 6
port: ssh
ignoreip: 127.0.0.1/8
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
ignoreip: 127.0.0.1/8
filters:
nginx-noscript:
Definition:
Expand Down Expand Up @@ -74,13 +76,15 @@ fail2ban:
logpath: /var/log/auth.log
maxretry: 6
port: ssh
ignoreip: 127.0.0.1/8
ssh_ddos:
action: iptables[name=SSH, port=ssh, protocol=tcp]
enabled: 'true'
filter: sshd-ddos
logpath: /var/log/auth.log
maxretry: 6
port: ssh
ignoreip: 127.0.0.1/8

# action.d
actions:
Expand Down

0 comments on commit 00661cb

Please sign in to comment.