Files
WPIQ/wo/cli/templates/fail2ban.mustache

21 lines
540 B
Plaintext
Raw Permalink Normal View History

2019-09-02 18:56:34 +02:00
[DEFAULT]
ignoreip = 127.0.0.1/8 ::1
2019-04-07 12:57:35 +02:00
[recidive]
enabled = true
{{#ols}}[wo-wordpress]
2019-04-07 12:57:35 +02:00
enabled = true
filter = wo-wordpress
action = iptables-multiport[name="wo-wordpress", port="http,https"]
logpath = /usr/local/lsws/logs/access.log
/usr/local/lsws/conf/vhosts/*/logs/ols.access_log
2019-04-07 12:57:35 +02:00
maxretry = 5
[ols-forbidden]
2019-04-07 12:57:35 +02:00
enabled = true
filter = nginx-forbidden
action = iptables-multiport[name="ols-forbidden", port="http,https"]
logpath = /usr/local/lsws/logs/error.log
/usr/local/lsws/conf/vhosts/*/logs/ols.error_log{{/ols}}