Skip to contentSkip to conversation

A little question about the RATEEST target.

DISCUSSION whiplash 2 participants 3 messages Oct 13, 2009 – Oct 22, 2009

lore
Share & tools
lore

whiplash

author
#0 lore raw

Hi.
The iptables man page states that:

RATEEST
The RATEEST target collects statistics, performs rate estimation calculation and saves the results for later evaluation using the rateest match.

The simple question is: where are the results saved, actually? :) In other words, is there any way to access and collect such data to pass them to some userspace tool, like rrdtool, for example?

Regards.

#1 lore raw
Quoted 1 line · whiplash

Hi.

Hi,

Quoted 1 line

The simple question is: where are the results saved, actually? :)

If I read correctly the sources, into ram.

Quoted 3 lines

In other words, is there any way to access and collect such data to pass them to some userspace tool, like rrdtool, for example?

Like also you can read, there is no direct possibility... There is no external (proc|sys) interfaces. May be if someone create a simple patch...

P.s. $KERNEL_SRC/net/netfilter/xt_rateest.c|xt_RATEEST.c

Michele

author
#2 lore raw

Michele Petrazzo - Unipex ha scritto:

Quoted 1 line

Like also you can read, there is no direct possibility...

Ok, I suspected, since I searched widely both in /proc and in /sys...

Quoted 2 lines

There is no
external (proc|sys) interfaces. May be if someone create a simple patch...

Yes, it could be really useful. ;-)

TY.