Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th February 2008, 10:39
mmistroni mmistroni is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default denyhosts for blocking external access to email

hi all,
i am currently using denyhosts for preventing attacks on my ssh port.
I noticed though that my mail.log is full of attempts to login to my mail server.
i was wondering.. i can i use denyhosts to block also mail.. or shall i use iptables to block mail access from outside?


thanks and regards
marco
Reply With Quote
Sponsored Links
  #2  
Old 25th February 2008, 19:16
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

You could try fail2ban.
Reply With Quote
  #3  
Old 26th February 2008, 09:19
mmistroni mmistroni is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
thanks.
can fail2ban and denyhosts run at the same time?
will be one overriding the other?


thanks and regards
marco
Reply With Quote
  #4  
Old 26th February 2008, 09:54
daveb daveb is offline
Senior Member
 
Join Date: Dec 2006
Location: St Louis Mo
Posts: 272
Thanks: 43
Thanked 41 Times in 37 Posts
Default

Yes they play well with each other.
Reply With Quote
  #5  
Old 26th February 2008, 17:35
mmistroni mmistroni is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

daveb,
thanks for reply.. so u r actually suggesting that i'd keep denyhosts for ssh and use fail2ban for everything else (mail, ftp)?
and mayb after some time replace completely dh with f2b? coz it seems me little overhead to have 2 processes doing same thing?

thanks and regards
marco
Reply With Quote
  #6  
Old 26th February 2008, 19:21
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

I'd switch off Denyhosts and use fail2ban only.
__________________
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
scripts not able to send out email to external ayuu Server Operation 2 5th May 2007 19:19
Edgy Email Relay Access Denied Issues 3DPeruna HOWTO-Related Questions 2 19th January 2007 23:18
Sending email problems: Relay access denied jaffaizal HOWTO-Related Questions 35 24th April 2006 10:04
Questions in regards to ISP-Server Setup - Ubuntu 5.10 "Breezy Badger" rbrantley HOWTO-Related Questions 16 10th April 2006 18:26
External Email Getting Lost jash General 10 8th November 2005 21:55


All times are GMT +2. The time now is 10:19.


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