#1  
Old 19th April 2012, 00:00
stigge2000 stigge2000 is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to stigge2000
Question denyhosts + pure-ftpd

I have been watching the logfiles for almost a month now, and i noticed that the last week the ftp have been attacked alot... from all kind of IPs.
I need to prevent this, and i can't change the port... for other reasons.

So to get to the point:
Can anyone help me getting denyhosts to work with pure-ftp?
I'm running a ispconfig3 system on a centos 5.5
__________________
Regards
S.Jensen

FB: http://facebook.com/stigge2000
Twitter: http://twitter.com/StigJensen
Skype: stigge2000
Reply With Quote
Sponsored Links
  #2  
Old 19th April 2012, 16:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I suggest you use fail2ban instead. It should already come with a configuration for PureFTPd, but you will probably have to enable that.
__________________
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 19th April 2012, 20:10
stigge2000 stigge2000 is offline
Member
 
Join Date: Jul 2006
Posts: 32
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to stigge2000
Default

If i understand it correctly, fail2host uses iptables to block IPs, I had some bad experience with this firewall... shutting myself out of the system etc

When I try to reinstall the fail2ban it also want to install iptables again... and im running ssh on an alternative port from a remote location... is there an easy command to open that port on iptables before i install/enable it? I really don't want to get shut out again.

I mean... will "iptables -A INPUT -p tcp --dport 4022 -j ACCEPT" do the trick?
__________________
Regards
S.Jensen

FB: http://facebook.com/stigge2000
Twitter: http://twitter.com/StigJensen
Skype: stigge2000

Last edited by stigge2000; 19th April 2012 at 20:14.
Reply With Quote
  #4  
Old 20th April 2012, 15:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

You can whitelist your own IP in the fail2ban configuration to not get logged out.
__________________
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
The Following User Says Thank You to falko For This Useful Post:
stigge2000 (22nd April 2012)
Reply

Bookmarks

Tags
denyhosts, pute-ftp

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 09:02
Pure Ftpd Passive Ports setup alleks Server Operation 3 2nd September 2011 21:39
SSL/TLS Pure FTPD bboy8012 General 6 9th December 2010 16:18
Pure FTPd not running andreasnrb Installation/Configuration 8 20th March 2010 01:01
Denyhosts doesn't like my IP StupidScript HOWTO-Related Questions 4 28th July 2006 19:16


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


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