Skip to content

Instantly share code, notes, and snippets.

@iKlotho
Created February 17, 2020 08:02
Show Gist options
  • Save iKlotho/583719fde7ab08a554532c9277366b8b to your computer and use it in GitHub Desktop.
Save iKlotho/583719fde7ab08a554532c9277366b8b to your computer and use it in GitHub Desktop.
FreeSWITCH Invite DOS Attack Fail2ban Filter
# 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