How can I automictic IP Block in csf, unauthorized registration request in asterisk?

I am using asterisk 18 and csf firewall. How can I automatic IP Block unauthorized registration request…?

My log has given below.
[Jan 7 11:50:43] NOTICE[94814]: chan_sip.c:29053 handle_request_register: Registration from ‘“5009” sip:5009@my_host’ failed for ‘185.16.38.53:5070’ - Wrong password

[Jan 7 11:50:43] NOTICE[94814]: chan_sip.c:29053 handle_request_register: Registration from ‘“5009” sip:5009@my_host’ failed for ‘185.16.38.53:5070’ - Wrong password

[Jan 7 11:50:43] NOTICE[94814]: chan_sip.c:29053 handle_request_register: Registration from ‘“5009” sip:5009@my_host’ failed for ‘185.16.38.53:5070’ - Wrong password

Have a look at fail2ban.

That will solve this for you.

The OP has posted more than one thread on essentially the same topic. My feeling is that he is expecting that, if he asks often enough, someone will tell him how to do it with CSF, even though I suspect that those who do do it, all do it with fail2ban.

I don’t think fail2ban is ever going to be an acceptable answer.

Ah, thank you.
I dont visit the forum that much anymore.
I must say, my respect to you guys/gals that keep on answering questions.
And this might be a shitty remark, a lot of questions make me think, wtf…
But then again, I started here too, just hope my questions were not that sh…

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.