RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > Third Party Contributions > API Based Plugins

For more information about the ads and why they're here, please see the FAQ

Reply
  1 links from elsewhere to this Post. Click to view. #1  
Old 07-09-2009, 01:20 PM
mdr's Avatar
mdr mdr is offline
Registered User
 
Join Date: Aug 2008
Location: Saint Paul, MN, USA
Posts: 12
Send a message via Skype™ to mdr
Default RoundCube Fail2Ban Plugin

I have been asked to build a plugin to allow Fail2Ban logging output from Roundcube. Last night I got around to doing it.

RoundCube Fail2Ban Plug in is a small plugin that will display failed login attempts to your syslog or userlogins log file. Using this information Fail2Ban be able to block a user for a set amount of time. The best part, the block is at the IP level and blocks the IP address, not the user they are try to log in as.

You should be able to just drop the top folder in your plugins director and add the entry to your main.php

RoundCube Fail2Ban Plugin

If you have any questions, let me know.
-Matt

Last edited by mdr; 11-19-2009 at 01:07 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 07-14-2009, 06:29 PM
Registered User
 
Join Date: Jul 2007
Posts: 89
Default

Niiice, will have a try...


Thanx!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 07-15-2009, 07:36 PM
Super Moderator
 
Join Date: May 2007
Posts: 802
Default

thanks for the plugin. please consider adding it to the Plugin_Repository
__________________
RoundCube Patches & Plugins: Managesieve, SpamAssassin Prefs, and more…
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 07-30-2009, 06:28 PM
Registered User
 
Join Date: Jul 2007
Posts: 89
Default

I would like to inform you all it´s working great on Suse 11.1 after small modifications.

:-)



Rgds.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-02-2009, 04:21 PM
mdr's Avatar
mdr mdr is offline
Registered User
 
Join Date: Aug 2008
Location: Saint Paul, MN, USA
Posts: 12
Send a message via Skype™ to mdr
Default

Great, it was built on Fedora, I'm glad it works under Suse. What modifications did you need to make?


JohnDoh, I have added it to the list, and I would like to thank you for the SpamAssassin User Prefs plugin. I have been using it since before it was a plugin, and it has always been a great feature.

Last edited by mdr; 08-02-2009 at 04:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-02-2009, 06:09 PM
Registered User
 
Join Date: Jul 2007
Posts: 89
Default

Hi!

The jail.conf needs little modifications...


Thanx!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-17-2009, 02:20 AM
mdr's Avatar
mdr mdr is offline
Registered User
 
Join Date: Aug 2008
Location: Saint Paul, MN, USA
Posts: 12
Send a message via Skype™ to mdr
Default

oldschool, how did you need to modify the jail.conf file?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-23-2009, 03:51 AM
Registered User
 
Join Date: Aug 2009
Posts: 1
Default

Very nice. Working just as it should I think, only thing is that when banned the login page just sits there trying to login forever pretty much.

Should it display some sort of message or something at login page?

I am using debian lenny and one little "special thingy" with my install is php-mdb2-driver-mysql_1.5.0b from backports to get mysql working with roundcube.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-24-2009, 05:30 PM
Registered User
 
Join Date: Jul 2007
Posts: 89
Default

For me the jail looks like this on Opensuse 11.1:

--- schnipp ---
[roundcube]
# 0.3 and up plugin-support

enabled = false
port = http,https
filter = roundcube
action = iptables-multiport[name=roundcube, port="http,https"]
sendmail-whois[name=RC-Webmail, dest=root@weiss-du-doch.nett, sender=fail2ban]
logpath = /srv/www/htdocs/webmail/logs/userlogins
--- schnapp ---


Rgds.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-26-2009, 05:29 PM
Registered User
 
Join Date: Aug 2009
Posts: 2
Default

GOOD plugin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


LinkBacks (?)
LinkBack to this Thread: http://www.roundcubeforum.net/7-third-party-contributions/46-api-based-plugins/5002-roundcube-fail2ban-plugin.html
Posted By For Type Date
RoundCube Fail2Ban Plugin – mattrude.com This thread Refback 07-14-2009 11:50 AM

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:43 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2006-2008 RoundCube Webmail Community