LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to ban IP addresses SUSE/VSFTPD (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-ban-ip-addresses-suse-vsftpd-326280/)

t3___ 05-23-2005 12:25 PM

How to ban IP addresses SUSE/VSFTPD
 
We are running a Suse 9.1 box with the current version of VSFTPD. The box only runs ftp services, and acts as a "swap space" between our customers and employees (requires authentication).

On occasion, rouge hosts on the Internet will attempt to login to the ftp service using dozens of typical account names (admin, root, backup, oracle, etc) and (what I'm assuming is) dictionary passwords (automatic hacking program). The attackers IP address gets logged in the vsftpd.log file.

I would like to implement IP bans on these hosts as they seem to come back and attempt port scans and other exploits after they realize we are running ftp services. What is the best way to go about this?

Any information would be greatly appreciated!

Tom

twantrd 05-23-2005 12:36 PM

Use iptables and drop the ip's.

-twantrd

t3___ 05-23-2005 12:53 PM

the server is already behind a firewall... would it make more sense to just issue the bans on the gnatbox/firewall?

JimBass 05-23-2005 03:14 PM

Yes, if you have a firewall outside of your ftp box, that would be the place to block the bad IP.

Peace,
JimBass

stakhous 05-23-2005 05:51 PM

I thought there was a file called "ftpaccess" where you could specify trusted/nontrusted IP's.

My 2 cents.

twantrd 05-23-2005 06:58 PM

Quote:

I thought there was a file called "ftpaccess" where you could specify trusted/nontrusted IP's.
That's not an option in vsftpd. Well, I don't see where it is for my vsftpd.conf.

-twantrd

t3___ 05-23-2005 07:05 PM

Quote:

Originally posted by stakhous
I thought there was a file called "ftpaccess" where you could specify trusted/nontrusted IP's.

My 2 cents.

I was hoping there was a quick and dirty "deny" list or something, but as the other poster indicated, there doesnt seem to be a VSFTPD option...

Thanks for the help guys!

Tinkster 05-23-2005 08:32 PM

What about
/etc/hosts.allow
/etc/hosts.deny
?


Cheers,
Tink


All times are GMT -5. The time now is 07:03 AM.