Archive for TAGs:

Asterisk daily restart script

I have always found that its a good idea to reboot Asterisk every now and again. However I found that sometimes my cron job got stuck or Asterisk didn’t restart cleanly. This is my original, standard cron job. 0 0 * * * root /usr/sbin/asterisk -rx ‘core restart gracefully’ So . . .

Read more

Fail2ban fail.

Ok so in my previous post about fail2ban I mentioned that it banned all hacking attempts. However I noticed it is only banning Registration attempts and not calls sent directly to the incoming context. So I introduced the little script to ban any call going through the Incoming context. You . . .

Read more

Asterisk Config for Fail2Ban

As promised in my previous Post [Fail2ban Installation for Debian/Ubuntu] here is the Asterisk Configuration how-to for Fail2Ban. Adding a Asterisk configuration file to Fail2Ban so that it can understand attacks against your Asterisk PBX. Create a new filter configuration for Asterisk: touch /etc/fail2ban/filter.d/asterisk.conf The contents of /etc/fail2ban/filter.d/asterisk.conf should be . . .

Read more