LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2009, 03:13 PM   #1
toredo
Member
 
Registered: Feb 2009
Posts: 83

Rep: Reputation: 25
vsftpd - block ip after failed login


hello,

i use vsftpd, i disabled anonymous users. sometimes i look at the log-files.

and there are much entries from bots. they try to connect to the ftp with users like apache or tomcat. they try it 10, 20, 30 or more times.

can i block them with vsftpd after 5 failed logins for 1 hour or something like this?


best regards
toredo
 
Old 12-03-2009, 04:14 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Check out a combination of 'iptables -m recent' and fail2ban or denyhosts?
 
Old 12-04-2009, 01:42 AM   #3
toredo
Member
 
Registered: Feb 2009
Posts: 83

Original Poster
Rep: Reputation: 25
i dont have installed iptables, because in the kernel, there is netfilter not included.

and i dont like to compile a new kernel. is there not a second way?

thx 4 answer

best regards
toredo
 
Old 12-04-2009, 02:18 AM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by toredo View Post
i dont have installed iptables, because in the kernel, there is netfilter not included.

and i dont like to compile a new kernel. is there not a second way?
One possible alternative would be to have Fail2ban use TCP wrappers instead of iptables.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Block IP after failed login attempt using iptables? FireRaven Linux - Security 6 08-11-2009 12:33 PM
Need to block root access in VSFTPD Davpronk Linux - Server 3 02-05-2009 02:45 AM
vsftpd login locally, but not remotely. get a login prompt though! ajkett Linux - Server 0 02-22-2007 04:18 AM
vsFTPd getting on my nervs... Login failed... Alchaemist Linux - Software 1 09-26-2005 12:11 PM
What's this? insmod block-major-25 failed 360 Linux - Software 3 08-17-2003 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:32 AM.

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