Created
February 17, 2020 08:02
-
-
Save iKlotho/583719fde7ab08a554532c9277366b8b to your computer and use it in GitHub Desktop.
FreeSWITCH Invite DOS Attack Fail2ban Filter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It only works if you are accepting users from domain address not ip. Otherwise it will ban all your users. | |
# add this line to /etc/fail2ban/filter.d/freeswitch.conf | |
# in failregex line | |
%(_pref_line)s \[WARNING\] sofia_reg\.c:\d+ SIP auth challenge \(INVITE\) on sofia profile \'internal\' for \[\+?(\d+|\w+)@(?:[0-9]{1,3}\.){3}[0-9]{1,3}\] from ip <HOST>$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment