ugoviti / izpbx

izPBX is a Turnkey Cloud Native Telephony System powered by Asterisk Engine and FreePBX Management GUI
GNU General Public License v3.0
179 stars 74 forks source link

Experimental newfeature autoban #46

Closed hobbit378 closed 1 year ago

hobbit378 commented 1 year ago

This experimental patch seeks to integrate AutoBan intrusion detection and prevention system (c.f. https://github.com/mlan/docker-asterisk/tree/master/src/autoban, credits @mlan) as a possibly more swift in response, yet also more lightweight alternative to Fail2Ban.

AutoBan listens and responds directly to Asterisk AMI events 'InvalidAccountID', 'InvalidPassword', 'ChallengeResponseFailed' and 'FailedACL' , a technically more straightforward approach (compared to Fail2Ban) that is also employed by SecAst(R).

I have successfully build an according image which I am currently testing (_docker.io/hobbit00378/izpbx-asterisk:20.16.6mwe).