Ticket #265 (investigate enhancement)

Opened 16 months ago

Last modified 6 weeks ago

FTP-Autoban for certain IP after failed attempts

Reported by: Decodecoding@… Owned by:
Priority: normal Milestone:
Component: fon-network Version: N/A
Severity: normal
Cc: Hardware: both

Description

My fonera's ftp server is suffering a brute foce attack. So far they're trying the wrong username (Administrator) but I would be nice to have that IP banned for some hours after 5 failed attemps such as ssh has.

Attachments

Change History

Changed 3 months ago by matthijs

  • milestone Requests deleted

Milestone Requests deleted

Changed 6 weeks ago by JoepieNL

What happened to this extremely usefull request ?

Requests deleted ???

Changed 6 weeks ago by matthijs

  • status changed from new to investigate
  • severity set to normal
  • component changed from fon-base-firmware to fon-network
  • hardware set to both
  • version set to N/A
  • type changed from request to enhancement

Request deleted means that I've deleted the milestone called "Request", which didn't really make sense. This tickets still needs review, just like a lot more. But while I'm here, I'll have a look :-)

It would make sense to add a restriction like this. However, the way the SSH limit works is to limit the number of connections, no the number of failed attempts. AFAIK, FTP is a pretty connection-heavy protocol: it might open up a new connection for every transfer and every directory listing. This means that limiting to 5 connections per minute (IIRC) is probably going affect normal usage. A higher limit might work better, but I'm afraid that a limit that's high enough for normal usage will be too high to actually block an attacker.

The best solution would be to make ftpd (and also sshd and perhaps samba) notify some central component about failed attempts, so an address can be blacklisted. Or perhaps we could use some log-reading utility, like fail2ban.

Add/Change #265 (FTP-Autoban for certain IP after failed attempts)

Author


Please use your email address ("Name <email@adress>" or just an address) so we can contact you with further questions. Your email address will not be public.

Action
as investigate
 
Note: See TracTickets for help on using tickets.