Files
SkyArtShop/fail2ban-skyartshop.conf

37 lines
760 B
Plaintext
Executable File

# Fail2ban jail for SkyArtShop
# Protects against brute force attacks and malicious access
[DEFAULT]
bantime = 3600
findtime = 600
maxretry = 5
banaction = iptables-multiport
[nginx-skyartshop]
enabled = true
port = http,https
filter = nginx-skyartshop
logpath = /var/log/nginx/skyartshop_access.log
/var/log/nginx/skyartshop_error.log
maxretry = 10
findtime = 300
bantime = 3600
[nginx-skyartshop-admin]
enabled = true
port = http,https
filter = nginx-skyartshop-admin
logpath = /var/log/nginx/skyartshop_access.log
maxretry = 3
findtime = 600
bantime = 7200
[nginx-skyartshop-sql-injection]
enabled = true
port = http,https
filter = nginx-sql-injection
logpath = /var/log/nginx/skyartshop_access.log
maxretry = 2
findtime = 300
bantime = 86400