How To Prevent Brute Force Attacks With Brutelock

Brutelock是一款开源软件,能够主动监控系统日志并立即封锁试图攻击服务器的恶意IP。它不仅能防御SSH攻击,还能保护FTP、POP及IMAP等服务。通过简单的规则配置,可以扩展监控范围至无限多种服务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Brutelock is an open source program that actively monitors various system logs and immediately blocks malicious IPs trying to attack your server.

Brutelock not only protects against ssh attacks but also other common systems such as ftp, pop and imap.  It has an extendible rules format that allows you to monitor an unlimited number of other services by simply supplying the log file and a simple regex search pattern.

There are just a few steps to install the Brutelock agent:

  1. Download Brutelock agent, and save to /usr/local/.
  2. cd /usr/local/

  3. tar -xjvf brutelock-version_number.tar.bz2

  4. cd /usr/local/brutelock-version_number

  5. ./configure

  6. make

  7. make install

  8. Edit the new configuration file (/usr/local/brutelock/conf/brutelock.conf) with your subscription key *.
  9. Also edit the path to your ssh log in the configuration file if you need to. If you are unsure where that is for your system, please consult the README included with the Brutelock source. Uncomment any of the other services you wish to protect as well such as ftp, pop, and imap.
  10. Add any IP's to the /usr/local/brutelock/conf/whitelist file (each on separate lines) for any IP's that Brutelock should never lock out **.
  11. Add a separate chain to iptables:

    /sbin/iptables -N Brutelock-Firewall-INPUT

    /sbin/iptables -I INPUT -j Brutelock-Firewall-INPUT

  12. Start Brutelock daemon:

    /usr/local/brutelock/bin/brutelockd

  13. Sit back and watch the number of failed login attempts drastically diminish from your logs.

* - If you do not have a subscription key, make sure to sign-up to receive yours. You can choose the free option which allows Brutelock to actively block brute force attacks or one of the paid subscriptions to allow Brutelock to proactively protect your servers by receiving constant updates from the Brutelock service. Visit the Brutelock website for more information.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值