LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-24-2006, 11:41 AM   #1
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
block ftp brute force without ip tables


so I am getting thousands of failed login attempts for my ftp server. The server is vsftp. I want to block the brute force attepts much like I do using denyhosts to block ssh attacks after 4 tries. I have heard of fail2ban, but I can't find anything on how to set it up with tcp wrappers, it only seems to work with iptables. I don't want to use iptables. Is there any way to use pretty much anything but iptables to stop the brute force attacks.
 
Old 11-24-2006, 02:00 PM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
Please reconsider. TCP wrappers is not a substitute for iptables. It's also a good idea to keep that second line of defense with iptables and TCP wrappers running together. I keep the same systems listed in both because I was sick of it too. It took a couple of months of going through logs and blocking networks after a whois look up for me to get the attacks knocked down. I was getting about 150,000 hits a month of bogus login attempts.

I also chose to block all of China, Taiwan, Hong Kong, and a couple of other countries where most of the attacks are coming from. There has been some credible research suggesting that these attacks don't come from China for example. They are computers in China primarily compromised by crackers here in the US. I don't really care personally where or why. I was just sick of it. They don't have the education and expertise to lock down their systems. This is a shame but too bad. The best solution is to block them. Let me know if you need more help with an iptables script. I keep a separate blacklist file from the iptables script.

Don't get me wrong. I know where you're coming from. iptables is a pain in the neck to learn.
 
Old 11-24-2006, 06:48 PM   #3
reeseslover531
Member
 
Registered: Nov 2005
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
well, I don't mind using iptables I guess. So I will just use fail2ban with iptables. I know I can use firestarter as a GUI to iptables. Other than that, does anybody know of a good web article on iptables?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Brute Force... Cottsay Linux - Software 1 03-02-2006 03:58 PM
someone trying to brute force me stitchman Slackware 8 12-16-2005 02:02 PM
Nessus Brute Force Gerardoj Linux - General 0 12-27-2003 04:07 PM
Brute force DHCP SSBN Linux - Networking 10 10-21-2003 10:34 AM
Brute Force kwigibo Linux - General 2 08-01-2002 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration