#1  
Old 30th April 2008, 16:10
batescr batescr is offline
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 6
Thanked 0 Times in 0 Posts
Default Fail2ban Config Questions

I am following this how-to to install fail2ban on debian ecth.
http://www.howtoforge.com/fail2ban_debian_etch but modified it to work on CentOS.

It is working:

[root@webserver action.d]# fail2ban-client status ssh
Status for the jail: ssh
|- filter
| |- Currently failed: 0
| `- Total failed: 11
`- action
|- Currently banned: 0
| `- IP list:
`- Total banned: 3

My question is that there appears to be some type of email configuration that if a user gets banned it sends an email to the attacker. I don't know if i have that working or how that is configured.

the file /etc/fail2ban/action.d/mail.conf
Attached Files
File Type: txt mail.conf.txt (1.9 KB, 275 views)
Reply With Quote
Sponsored Links
  #2  
Old 1st May 2008, 20:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Looks ok, but you have actionstart and actionend twice in that file. Comment out one actionstart and one actionend directive.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st May 2008, 21:09
batescr batescr is offline
Member
 
Join Date: Mar 2008
Posts: 49
Thanks: 6
Thanked 0 Times in 0 Posts
Default

The two actionstart and actionend was due to me cutting and pasting. I only have one of each. How can i test that the emails are getting sent?
Reply With Quote
  #4  
Old 2nd May 2008, 15:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You could try to break in to your server (but please use a dynamic IP address for this...).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

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
Fail2ban question joelee HOWTO-Related Questions 1 3rd April 2008 20:16
ISPConfig 2.2.14 released till General 48 19th July 2007 23:46
Anyone figured out to integrate FuzzyOCR into ISPConfig on Ubuntu? friday Installation/Configuration 16 10th May 2007 16:25
spamassasin/clamAV not working Daisy Installation/Configuration 32 15th February 2007 00:09
Postfix Config questions viriiguy Installation/Configuration 6 28th June 2006 08:59


All times are GMT +2. The time now is 03:13.


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