All of lore.kernel.org
 help / color / mirror / Atom feed
* testing if a named set exists?
@ 2021-10-02  1:16 Matt Zagrabelny
  2021-10-02  2:52 ` Duncan Roe
  2021-10-02  2:57 ` Kerin Millar
  0 siblings, 2 replies; 5+ messages in thread
From: Matt Zagrabelny @ 2021-10-02  1:16 UTC (permalink / raw)
  To: netfilter

Hello,

I'd like to do something like the following:

if exists $named_set
    nft add rule ip filter output ip daddr $named_set accept
else
    nft add rule ip filter output ip daddr $default_set accept

Does anyone know if I can accomplish this with nftables?

Thanks,

-m

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

end of thread, other threads:[~2021-10-02 23:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02  1:16 testing if a named set exists? Matt Zagrabelny
2021-10-02  2:52 ` Duncan Roe
2021-10-02  2:57 ` Kerin Millar
2021-10-02 11:50   ` Matt Zagrabelny
2021-10-02 23:50     ` Kerin Millar

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.