All of lore.kernel.org
 help / color / mirror / Atom feed
* ftp hammer rule help
@ 2002-10-01  2:53 Adam De Paolis
  2002-10-01  3:16 ` Stephen Frost
  0 siblings, 1 reply; 2+ messages in thread
From: Adam De Paolis @ 2002-10-01  2:53 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 606 bytes --]

I am trying to create a rule which will prevent users from hammering my ftp site when its busy. A rule which say will drop userlogin if their is 3 attempts in 1 minute.

I believe the match recent rule is what I need to get working but I don't have it working.  This is what I have so far (thanks to stephen frost, but it doesnt seem to work. 

The firewall machine is my ftp server, both are on the same computer:

iptables -A FORWARD -m recent --name ftpconn --rcheck --seconds 60 --hitcount 3 -j DROP
iptables -A FORWARD -p tcp -d aa.bb.cc.dd/32 --dport 21 -m recent --name ftpconn --set -j DRO

[-- Attachment #2: Type: text/html, Size: 1220 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ftp hammer rule help
  2002-10-01  2:53 ftp hammer rule help Adam De Paolis
@ 2002-10-01  3:16 ` Stephen Frost
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Frost @ 2002-10-01  3:16 UTC (permalink / raw)
  To: Adam De Paolis; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 975 bytes --]

* Adam De Paolis (adepaolis@rogers.com) wrote:
> I am trying to create a rule which will prevent users from hammering my ftp site when its busy. A rule which say will drop userlogin if their is 3 attempts in 1 minute.
> 
> I believe the match recent rule is what I need to get working but I don't have it working.  This is what I have so far (thanks to stephen frost, but it doesnt seem to work. 
> 
> The firewall machine is my ftp server, both are on the same computer:
> 
> iptables -A FORWARD -m recent --name ftpconn --rcheck --seconds 60 --hitcount 3 -j DROP
> iptables -A FORWARD -p tcp -d aa.bb.cc.dd/32 --dport 21 -m recent --name ftpconn --set -j DRO

Can you say what does happen..?  Also, cat /proc/net/ipt_recent/ftpconn
and see what's there.  It also looks like maybe you have it set up
incorrectly in the second rule, you want to ACCEPT there until they
reach the limit which is in the first rule, and then they'll be dropped
there.

	Stephen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-01  3:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-01  2:53 ftp hammer rule help Adam De Paolis
2002-10-01  3:16 ` Stephen Frost

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.