All of lore.kernel.org
 help / color / mirror / Atom feed
* Can i have a rate limit per source IP Address in IPSet?
@ 2006-10-05  7:06 Retesh Chadha
  2006-10-05  7:51 ` Deti Fliegl
  0 siblings, 1 reply; 7+ messages in thread
From: Retesh Chadha @ 2006-10-05  7:06 UTC (permalink / raw)
  To: netfilter-devel

I have following questions regarding iptables -

1. Say I have 2 Ips in one IPset, and a rate limiting rule as follows -

ipset -N KNOWN iphash
ipset -A KNOWN 192.168.1.89
ipset -A KNOWN 192.168.3.114
iptables -A INPUT_CHAIN -m set --set KNOWN src -m limit --limit
100/second --limit-burst 5 -j ACCEPT

I have observed that the rate limit is the cumulative limit, and not per IP.
Is it possible to have a limit of say 100pps from each IP in KNOWN IPSET.

2. Is there a limit on the number of IPs in an ipset ?

3. I have observed that the limit rate in a rule can be as much as
10000packets/per/second. If say I am using an ipset with 1000 elements
and the rate limit 10000 pps (which is a limitation and also
cumulative), then effectively per IP limit becomes 10pps which cause
the problem. Any clue how to solve this.

Thanks & Regards
Retesh Chadha

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

end of thread, other threads:[~2006-10-06  7:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-05  7:06 Can i have a rate limit per source IP Address in IPSet? Retesh Chadha
2006-10-05  7:51 ` Deti Fliegl
     [not found]   ` <b322db070610050243s3a1d65cfqd4cf0ff35abab96e@mail.gmail.com>
2006-10-05  9:54     ` Deti Fliegl
     [not found]       ` <b322db070610050306r60bcb242i132b58ec70c0bc3d@mail.gmail.com>
2006-10-05 10:13         ` Deti Fliegl
     [not found]           ` <b322db070610050332q1dc3c239v6e24f7522634355d@mail.gmail.com>
2006-10-05 11:11             ` Deti Fliegl
2006-10-06  6:43               ` Retesh Chadha
2006-10-06  7:40                 ` Deti Fliegl

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.