Linode.com Forum Forum Index Linode.com Forum
Linode Community Forums
 


Dynamic IP Tables

Click here to go to the original topic

 
       Linode.com Forum Forum Index -> Linux Networking
Author Message
adamgent



Joined: 23 Jun 2003
Posts: 261

Posted: Sun Nov 16, 2003 9:26 am    Post subject: Dynamic IP Tables  

Hi All,

Does anyone know if it is possible using iptables, to say if there is more than x icmp packets in x amount of time to start to block icmp packets?

Adam
Back to top  
inkblot



Joined: 08 Sep 2003
Posts: 62
Location: Bucharest

Posted: Sun Nov 16, 2003 9:47 am    Post subject: limit module  

Yes, there is a module called 'limit' which is documented in the iptables man page.

Quote:
limit
This module matches at a limited rate using a token bucket filter. A rule using this extension will match until
this limit is reached (unless the `!' flag is used). It can be used in combination with the LOG target to give
limited logging, for example.

--limit rate
Maximum average matching rate: specified as a number, with an optional `/second', `/minute', `/hour', or
`/day' suffix; the default is 3/hour.

--limit-burst number
Maximum initial number of packets to match: this number gets recharged by one every time the limit specified
above is not reached, up to this number; the default is 5.
Back to top  
 
       Linode.com Forum Forum Index -> Linux Networking
Page 1 of 1