1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
|
# RoundCube Fail2Ban Plugin
RoundCube Fail2Ban Plugin is a small plugin that will display a failed login attempts in your syslog or userlogins log file. Using this information [Fail2Ban](http://www.fail2ban.org) will be able to block a user for a set amount of time. The best part, the block is happening at the IP level and blocks the IP address, not the user they are trying to log in as.
If you would like to help translating this plugin, or you see a problem with the current translation, please [contact me][1].
This plugin dose not install or run Fail2Ban, but only provides the program with the needed log entries. Fail2Ban needs to be setup and running independent of this plugin and will watch roundcubes logs for failed logins.
## Download
The Current Version is 1.2 released on July, 26th 2014.
* RoundCube Fil2Ban Plugin - Version 1.2 - [tgz](https://github.com/mattrude/rc-plugin-fail2ban/archive/1.2.tar.gz) | [zip](https://github.com/mattrude/rc-plugin-fail2ban/archive/1.2.zip) | [git](http://github.com/mattrude/rc-plugin-fail2ban/tree/1.2)
* RoundCube Fil2Ban Plugin - Version 1.1 - [tgz][2] | [zip][3] | [git][4]
* RoundCube Fil2Ban Plugin - Version 1.0 - [tgz][5] | [zip][6] | [git][7]
You can also clone the project with [Git][8] by running:
<pre>$ git clone git://github.com/mattrude/rc-plugin-fail2ban.git fail2ban</pre>
If your using git, make sure to hit the [rc-Plugin-Fail2Ban's github page][9].
## Dependencies
[RoundCube][10] 3.0+
## Installing
* Add fail2ban to $rcmail_config['plugins'] in your RoundCube config
## Setting Up
**/etc/fail2ban/jail.conf:**
<pre>[roundcube]
enabled = true
port = http,https
filter = roundcube
action = iptables-multiport[name=roundcube, port="http,https"]
logpath = /var/www/html/roundcube/logs/userlogins</pre>
Or oldschool used a configuration simmiler to:
<pre>[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</pre>
**/etc/fail2ban/filter.d/roundcube.conf:**
<pre>[Definition]
failregex = FAILED login for .*. from <HOST>
ignoreregex =</pre>
## License
This plugin is licensed under the [GPLv3][11]. A copy of the license also comes with every copy download.
<pre>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 <http://www.gnu.org/licenses/>.</pre>
<a id=Authors name=Authors></a>
## Authors
[Matt Rude][12] (m@mattrude.com)
[1]: http://mattrude.com/contact-me/
[2]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.1.tgz
[3]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.1.zip
[4]: http://github.com/mattrude/rc-plugin-fail2ban/tree/1.1
[5]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.0.tgz
[6]: http://github.com/downloads/mattrude/rc-plugin-fail2ban/roundcube-fail2ban-plugin.1.0.zip
[7]: http://github.com/mattrude/rc-plugin-fail2ban/tree/1.0
[8]: http://git-scm.com
[9]: http://github.com/mattrude/rc-plugin-fail2ban
[10]: http://roundcube.net/
[11]: http://www.gnu.org/licenses/gpl-3.0.txt
[12]: http://mattrude.com/
|