All of lore.kernel.org
 help / color / mirror / Atom feed
* Named sets with timeout
@ 2019-10-28 20:25 Matt
  2019-10-29  0:23 ` Trent W. Buck
  0 siblings, 1 reply; 6+ messages in thread
From: Matt @ 2019-10-28 20:25 UTC (permalink / raw)
  To: netfilter, netfilter-owner

Dear nft Forum,
I’m a big friend of named sets, specially the timeout function is very 
great.
But one thing is confusing me, assume the following named:

table ip filter_v4 {
   set my_drop {
     type ipv4_addr
     flags timeout
   }
  ...
  ...
}


Then i add the following sample element to it:
   /usr/sbin/nft add set ip filter_v4 my_drop \{type ipv4_addr \; flags 
timeout \; elements=\{a.b.c.d timeout 600s  \} \;\}

All good so far, a.b.c.d is counting down as expected, begiing with 
10min.
But when i wait - say 1 minute and repeat the 'nft add set ... 600s' 
command from above then the timer remains unchanged (?)
It looks as the timer cannot get changed anymore once it has been 
initialized

Is this behavior by purpose?
And if, am I right to delete the element and re-assign it if I want to 
get the timer updated?

Many thanks
Matt









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

end of thread, other threads:[~2019-10-30  8:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28 20:25 Named sets with timeout Matt
2019-10-29  0:23 ` Trent W. Buck
2019-10-29  1:35   ` Duncan Roe
2019-10-29  8:00   ` Laura Garcia
2019-10-30  1:12     ` Trent W. Buck
2019-10-30  8:06       ` Laura Garcia

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.