From: Jean-Philippe Menil <jean-philippe.menil@univ-nantes.fr>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: netfilter@vger.kernel.org
Subject: Re: Ipset counters question
Date: Fri, 15 Apr 2011 15:10:22 +0200 [thread overview]
Message-ID: <4DA843BE.8000800@univ-nantes.fr> (raw)
In-Reply-To: <alpine.DEB.2.00.1104151442240.26797@blackhole.kfki.hu>
Le 15/04/2011 14:53, Jozsef Kadlecsik a écrit :
> Hi,
>
> On Thu, 14 Apr 2011, Jean-Philippe Menil wrote:
>
>> Le 31/03/2011 21:55, Jean-Philippe Menil a écrit :
>>> That's what i tought, and i needed to be sure.
>>>
>>> As i can miss the counters for the moment, i will kept my rules.
>>> But as i'm very intereted by ipset, i will think to do otherwise.
>> I return to this story of counters.
>> Since, i don't really need some counters, but just to know when there is no
>> more traffic for a user to decrement an idle timeout;
>> i decide to use ipset with the bitmap ip,mac and the timeout value.
>>
>> However, the timeout doesn't do really what i need, i use a dirty hack to set
>> the timeout counters every time a packet is matched;
>> so when there are no more packet, the timeout value begin to decrement.
>>
>> I do this in the bitmap_ipmac_ttest function, i'm just wondering if it is the
>> right place to do this?
> The proper way would be to reset the timeout value by the SET target,
> which is not supported yet.
>
> Best regards,
> Jozsef
> -
> E-mail : kadlec@blackhole.kfki.hu, kadlec@mail.kfki.hu
> PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
> Address : KFKI Research Institute for Particle and Nuclear Physics
> H-1525 Budapest 114, POB. 49, Hungary
Hi,
you mean, in the iptables userspace?
Why not, had a flag like "-idle" in ipset, and reset the timeout to
defaults when the flag is set?
I'm just asking this, to be sure to do this properly, even if this
request is margin.
Thanks for your advice
--
Jean-Philippe Menil - Pôle réseau Service IRTS
DSI Université de Nantes
jean-philippe.menil@univ-nantes.fr
Tel : 02.53.48.49.27 - Fax : 02.53.48.49.09
next prev parent reply other threads:[~2011-04-15 13:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 10:31 Ipset counters question Jean-Philippe Menil
2011-03-30 20:17 ` Jozsef Kadlecsik
2011-03-31 6:42 ` Jean-Philippe Menil
2011-03-31 18:16 ` Jozsef Kadlecsik
2011-03-31 19:05 ` Jean-Philippe Menil
2011-03-31 19:24 ` Jozsef Kadlecsik
2011-03-31 19:55 ` Jean-Philippe Menil
2011-04-14 7:16 ` Jean-Philippe Menil
2011-04-15 12:53 ` Jozsef Kadlecsik
2011-04-15 13:10 ` Jean-Philippe Menil [this message]
2011-04-18 19:07 ` Jozsef Kadlecsik
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA843BE.8000800@univ-nantes.fr \
--to=jean-philippe.menil@univ-nantes.fr \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox