texxasrulez/fail2ban

在您的syslog或userlogins日志文件中显示失败的登录尝试

安装: 537

依赖项: 0

建议者: 0

安全性: 0

星标: 2

关注者: 1

分支: 12

类型:roundcube-plugin

1.4 2020-07-16 05:46 UTC

This package is auto-updated.

Last update: 2024-09-16 14:40:47 UTC


README

RoundCube Fail2Ban 插件是一个小型插件,它将在您的syslog或userlogins日志文件中显示失败的登录尝试。使用这些信息 Fail2Ban 将能够阻止用户一段时间。最好的一点是,阻止发生在IP级别,阻止的是IP地址,而不是他们尝试登录的用户。

此插件不安装或运行Fail2Ban,而只提供程序所需的日志条目。Fail2Ban必须独立于此插件安装和配置,以便它监视Roundcube的日志中的失败登录。

下载

当前版本为 1.3

通过运行以下命令使用Git克隆项目

$ git clone git://github.com/mkrumbholz/rc-plugin-fail2ban.git fail2ban

如果您使用git,请确保访问 rc-Plugin-Fail2Ban的github页面

依赖项

RoundCube 1.3+

安装

  1. 将此插件文件夹放入RoundCube插件目录(roundcube/plugins/)
  2. 在您的RoundCube配置中添加fail2ban到$rcmail_config['plugins']

注意:当从http://github.com/mkrumbholz/rc-plugin-fail2ban下载此插件时,您需要创建一个名为fail2ban的目录,并将fail2ban.php放在其中,忽略下载归档中的根目录。您还可以从插件目录运行 'git clone git://github.com/mkrumbholz/rc-plugin-fail2ban.git fail2ban'。

设置

fail2ban/jail.conf

[roundcube]
enabled  = true
port     = http,https
filter   = roundcube
action   = iptables-multiport[name=roundcube, port="http,https"]
logpath  = /var/www/html/roundcube/logs/userlogins

或者使用类似于旧的配置

[roundcube]
# 0.3 and up plugin-support
 
enabled  = true
port     = http,https
filter   = roundcube
action   = iptables-multiport[name=roundcube, port="http,https"]
sendmail-whois[name=RC-Webmail, dest=you@example.com, sender=fail2ban]
logpath  = /srv/www/htdocs/webmail/logs/userlogins

fail2ban/filter.d/roundcube.conf

[Definition]
failregex = FAILED login for .*. from <HOST>
ignoreregex =

许可证

此插件受GPLv3许可。许可证的副本也随每个下载副本提供。

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <https://gnu.ac.cn/licenses/>.

作者

Matt Rude (m@mattrude.com)