This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
сервис_fail2ban [2024/12/28 11:55] val [Настройка] |
сервис_fail2ban [2025/10/20 12:00] (current) val [Мониторинг и управление] |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| # apt install fail2ban | # apt install fail2ban | ||
| - | ubuntu24# wget https://launchpad.net/ubuntu/+source/fail2ban/1.1.0-1/+build/28291332/+files/fail2ban_1.1.0-1_all.deb | + | ubuntu24# ###wget https://launchpad.net/ubuntu/+source/fail2ban/1.1.0-1/+build/28291332/+files/fail2ban_1.1.0-1_all.deb |
| - | ubuntu24# dpkg -i fail2ban_1.1.0-1_all.deb | + | ubuntu24# ###dpkg -i fail2ban_1.1.0-1_all.deb |
| </code> | </code> | ||
| Line 44: | Line 44: | ||
| #action = iptables-allports[blocktype=DROP] | #action = iptables-allports[blocktype=DROP] | ||
| #action = route[blocktype=blackhole] | #action = route[blocktype=blackhole] | ||
| + | |||
| + | #https://github.com/fail2ban/fail2ban/discussions/3836|Asterisk 20.6 on Ubuntu 24.04: Fail2Ban not working | ||
| + | #backend = auto | ||
| + | #logpath = /var/log/asterisk/messages.log | ||
| </code> | </code> | ||
| Line 59: | Line 63: | ||
| # fail2ban-client status asterisk | # fail2ban-client status asterisk | ||
| + | |||
| + | # iptables-save | ||
| + | # nft list ruleset | ||
| # fail2ban-client set asterisk unbanip 172.16.1.150 | # fail2ban-client set asterisk unbanip 172.16.1.150 | ||