diff --git a/freebsd/resources/fail2ban/jail.local b/freebsd/resources/fail2ban/jail.local index d47dc0d..dadc96f 100755 --- a/freebsd/resources/fail2ban/jail.local +++ b/freebsd/resources/fail2ban/jail.local @@ -3,7 +3,8 @@ enabled = true port = 5060,5061,5080,5081 protocol = all filter = freeswitch -logpath = /var/log/freeswitch/freeswitch.log +#logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log action = iptables-multiport[name=freeswitch-udp, port="5060,5061,5080,5081", protocol=udp] maxretry = 5 findtime = 600 @@ -15,7 +16,8 @@ enabled = true port = 5060,5061,5080,5081 protocol = all filter = freeswitch -logpath = /var/log/freeswitch/freeswitch.log +#logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log action = iptables-multiport[name=freeswitch-tcp, port="5060,5061,5080,5081", protocol=tcp] maxretry = 5 findtime = 600 @@ -28,6 +30,7 @@ bantime = 600 #protocol = all #filter = freeswitch-ip #logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log #action = iptables-multiport[name=freeswitch-ip-tcp, port="5060,5061,5080,5081", protocol=tcp] #maxretry = 1 #findtime = 30 @@ -39,6 +42,7 @@ bantime = 600 #protocol = all #filter = freeswitch-ip #logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log #action = iptables-multiport[name=freeswitch-ip-udp, port="5060,5061,5080,5081", protocol=udp] #maxretry = 1 #findtime = 30 @@ -49,7 +53,8 @@ enabled = true port = 5060,5061,5080,5081 protocol = all filter = freeswitch-dos -logpath = /var/log/freeswitch/freeswitch.log +#logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log action = iptables-multiport[name=freeswitch-dos-udp, port="5060,5061,5080,5081", protocol=udp] maxretry = 50 findtime = 30 @@ -60,7 +65,8 @@ enabled = true port = 5060,5061,5080,5081 protocol = all filter = freeswitch-dos -logpath = /var/log/freeswitch/freeswitch.log +#logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log action = iptables-multiport[name=freeswitch-dos-tcp, port="5060,5061,5080,5081", protocol=tcp] maxretry = 50 findtime = 30 @@ -71,7 +77,8 @@ enabled = true port = 5060,5061,5080,5081 protocol = all filter = freeswitch-404 -logpath = /var/log/freeswitch/freeswitch.log +#logpath = /var/log/freeswitch/freeswitch.log +logpath = /usr/local/freeswitch/log/freeswitch.log action = iptables-allports[name=freeswitch-404, protocol=all] maxretry = 3 findtime = 300