Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Updated using 4PSA automated script

...

Code Block
[Definition]
failregex = ^L.+ Pike block from <HOST>:.*
ignoreregex =

Edit /etc/fail2ban/jail.conf and add:

...

Code Block
[kamailio]
enabled  = true
filter   = kamailio
action  = iptables-allports[name=kamailio, protocol=all]
logpath  = /var/log/kamailio/abuse.log
maxretry = 5
bantime  = 3600
ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
protocol = all

 You can check the rules using the following command: 

...

Content by Label
showLabelsfalse
max5spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@5d4a10c1
sortmodified
showSpacefalse
reversetrue
typepage
labelsfail2ban firewalld voipnow centos7 rhel7 epel
cqllabel in ("fail2ban","firewalld","centos7","epel","rhel7","voipnowepel") and type = "page" and space = "4PSAKB"

...

hiddentrue

...

space = currentSpace()


Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.