Difference between revisions of "Fail2Ban installation"
From Kolmisoft Wiki
Jump to navigationJump to search
(Created page with 'This is small guide how to install http://en.wikipedia.org/wiki/Fail2ban Fail2Ban which will fight against brute-force attacks to your Asterisk server. Our script is made by…') |
|||
Line 1: | Line 1: | ||
This is small guide how to install | This is small guide how to install [http://en.wikipedia.org/wiki/Fail2ban Fail2Ban] which will protect against brute-force attacks to your Asterisk server. | ||
Our script is made by instructions made in | Our script is made by instructions made in [http://www.voip-info.org/wiki/view/Fail2Ban+%28with+iptables%29+And+Asterisk this manual]. | ||
To install this script execute following commands: | To install this script execute following commands: |
Revision as of 18:14, 31 August 2010
This is small guide how to install Fail2Ban which will protect against brute-force attacks to your Asterisk server.
Our script is made by instructions made in this manual.
To install this script execute following commands:
- cd /usr/src/mor/sh_scripts/
- ./upgrade_install_script.sh
- ./fail2ban_install.sh
It will install Fail2Ban and iptables (if they were not present).
You can check log at /var/log/fail2ban.log to see what IPs were blocked.
IP will be blocked if it tries to register to your Asterisk server 5 times without luck.
It will be unbanned after 10 minutes. Most of the times this is enough for attacker to forget about your server.