fusionpbx-install.sh/freebsd/resources/fail2ban/jail.local

98 lines
2.1 KiB
Plaintext
Raw Normal View History

2018-07-12 03:51:08 +02:00
[freeswitch]
2017-03-25 19:39:05 +01:00
enabled = true
2018-07-12 03:51:08 +02:00
port = 5060:5091
2017-03-25 19:39:05 +01:00
protocol = all
filter = freeswitch
2018-08-11 23:21:14 +02:00
logpath = /var/log/freeswitch/freeswitch.log
#logpath = /usr/local/freeswitch/log/freeswitch.log
2017-03-25 19:39:05 +01:00
maxretry = 5
findtime = 600
2017-04-03 06:44:45 +02:00
banaction = pf
2018-07-12 03:51:08 +02:00
bantime = 3600
2017-03-25 19:39:05 +01:00
# sendmail-whois[name=FreeSwitch, dest=root, sender=fail2ban@example.org] #no smtp server installed
2018-07-12 03:51:08 +02:00
[freeswitch-ip]
2017-06-07 07:16:25 +02:00
enabled = false
2018-07-12 03:51:08 +02:00
port = 5060:5091
2017-06-07 07:16:25 +02:00
protocol = all
filter = freeswitch-ip
2018-08-11 23:21:14 +02:00
logpath = /var/log/freeswitch/freeswitch.log
#logpath = /usr/local/freeswitch/log/freeswitch.log
2017-06-07 07:16:25 +02:00
maxretry = 1
findtime = 30
banaction = pf
bantime = 86400
2017-03-25 19:39:05 +01:00
2018-07-12 03:51:08 +02:00
[sip-auth-challenge-ip]
2017-06-07 07:16:25 +02:00
enabled = false
2018-07-12 03:51:08 +02:00
port = 5060:5091
2017-06-07 07:16:25 +02:00
protocol = all
2018-07-12 03:51:08 +02:00
filter = sip-auth-challenge-ip
2018-08-11 23:21:14 +02:00
logpath = /var/log/freeswitch/freeswitch.log
#logpath = /usr/local/freeswitch/log/freeswitch.log
2017-06-07 07:16:25 +02:00
maxretry = 1
findtime = 30
banaction = pf
bantime = 86400
2017-03-25 19:39:05 +01:00
2018-07-12 03:51:08 +02:00
[sip-auth-challenge]
2017-03-25 19:39:05 +01:00
enabled = true
2018-07-12 03:51:08 +02:00
port = 5060:5091
2017-03-25 19:39:05 +01:00
protocol = all
2018-07-12 03:51:08 +02:00
filter = sip-auth-challenge
2018-08-11 23:21:14 +02:00
logpath = /var/log/freeswitch/freeswitch.log
#logpath = /usr/local/freeswitch/log/freeswitch.log
2017-03-25 19:39:05 +01:00
maxretry = 50
findtime = 30
2017-04-03 06:44:45 +02:00
banaction = pf
2018-07-12 03:51:08 +02:00
bantime = 7200
2017-03-25 19:39:05 +01:00
[freeswitch-404]
enabled = true
2018-07-12 03:51:08 +02:00
port = 5060:5091
2017-03-25 19:39:05 +01:00
protocol = all
filter = freeswitch-404
2018-08-11 23:21:14 +02:00
logpath = /var/log/freeswitch/freeswitch.log
#logpath = /usr/local/freeswitch/log/freeswitch.log
2017-03-25 19:39:05 +01:00
maxretry = 3
findtime = 300
2017-04-03 06:44:45 +02:00
banaction = pf
2017-03-25 19:39:05 +01:00
bantime = 86400
[fusionpbx]
enabled = true
port = 80,443
protocol = tcp
filter = fusionpbx
logpath = /var/log/auth.log
# sendmail-whois[name=fusionpbx, dest=root, sender=fail2ban@example.org] #no smtp server installed
maxretry = 10
findtime = 600
2017-04-03 06:44:45 +02:00
banaction = pf
2018-07-12 03:51:08 +02:00
bantime = 3600
2017-03-25 19:39:05 +01:00
[nginx-404]
enabled = true
port = 80,443
protocol = tcp
filter = nginx-404
logpath = /var/log/nginx/access*.log
findtime = 60
maxretry = 120
2018-07-12 03:51:08 +02:00
banaction = pf
bantime = 3600
2017-03-25 19:39:05 +01:00
[nginx-dos]
# Based on apache-badbots but a simple IP check (any IP requesting more than
# 240 pages in 60 seconds, or 4p/s average, is suspicious)
# Block for two full days.
enabled = true
port = 80,443
protocol = tcp
filter = nginx-dos
logpath = /var/log/nginx/access*.log
findtime = 60
2018-07-12 03:51:08 +02:00
maxretry = 240
2017-04-03 06:44:45 +02:00
banaction = pf
2017-03-25 19:39:05 +01:00
bantime = 172800