#1  
Old 9th March 2011, 16:27
JeanC JeanC is offline
Junior Member
 
Join Date: Mar 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default SOLVED fail2ban & pure-ftpd

Edit: solved with sudo chmod a+rw /var/run/fail2ban/fail2ban.sock

Hello,
Fail2ban does not ban authentication failures from pure-ftpd. Anybody can help me?

I used this filter :
Code:
__errmsg = (?:Authentication failed for user|Erreur d'authentification pour l'utilisateur)
failregex = pure-ftpd: \(\?@<HOST>\) \[WARNING\] %(__errmsg)s \[.+\]$
ignoreregex =
This is in jail.conf:

Code:
[pure-ftpd]

enabled  = true
port	 = ftp,ftp-data,ftps,ftps-data
filter   = pure-ftpd
logpath  = /var/log/messages
maxretry = 6
These are in /var/log/messages:

Code:
Mar  9 09:33:24 server pure-ftpd: (?@192.168.1.11) [WARNING] Authentication failed for user [anonymous]
Testing with

Code:
fail2ban-regex /var/log/messages /etc/fail2ban/filter.d/pure-ftpd.conf
yields lots of hits.

'sudo fail2ban-client status' tells me it's running the jail.

Still no bans.

Thanks for help.

Last edited by JeanC; 10th March 2011 at 10:50.
Sponsored Links
Closed Thread

Bookmarks

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pure Ftpd MySQL authorisation problem davebamford General 12 13th August 2014 10:02
Help with Fail2ban florix.net Installation/Configuration 4 26th January 2011 01:53
SSL/TLS Pure FTPD bboy8012 General 6 9th December 2010 17:18
fail2ban is doing nothing? rlischer Server Operation 16 29th June 2010 08:29
Pure FTPd not running andreasnrb Installation/Configuration 8 20th March 2010 02:01


All times are GMT +2. The time now is 16:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.