All of lore.kernel.org
 help / color / mirror / Atom feed
* Cannot add ip6 elements to a named set
@ 2019-10-04 14:55 Matt
  2019-10-04 14:58 ` Florian Westphal
  2019-11-14 19:40 ` One more application available for nftables Matt
  0 siblings, 2 replies; 8+ messages in thread
From: Matt @ 2019-10-04 14:55 UTC (permalink / raw)
  To: netfilter, netfilter-owner

Dear nft team,
with ip4 i can create my set and add elements no problem, sample:

table ip filter_v4 {
    set my_drop {
      type ipv4_addr;
      flags timeout
    }
  ...
  ...
}
Then adding a element to it, works all good:
# nft add set filter_v4 my_drop \{type ipv4_addr \; flags timeout \; 
elements=\{192.168.1.1 timeout 60s\} \;\}


But I would like to do the same with ip6:

table ip6 filter_v6 {
    set my_drop {
      type ipv6_addr;
      flags timeout
    }
  ...
  ...
}

However, doing the same with ipv6 doesn't work for me:
#nft add set filter_v6 my_drop \{type ipv6_addr \; flags timeout \; 
elements=\{fda5:2c8a:af4c:a95e::64 timeout 60s\} \;\}

Returns
Error: Could not process rule: No such file or directory
add set filter_v6 my_drop {type ipv6_addr ; flags timeout ; 
elements={fda5:2c8a:af4c:a95e::64 timeout 60s} ;}
         ^^^^^^^^^


Any idea whats wrong?
Thx
Matt



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

end of thread, other threads:[~2019-11-21  3:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-04 14:55 Cannot add ip6 elements to a named set Matt
2019-10-04 14:58 ` Florian Westphal
2019-10-04 15:14   ` minor change recommendation for https://wiki.nftables.org Matt
2019-11-14 19:40 ` One more application available for nftables Matt
2019-11-18  2:43   ` Trent W. Buck
2019-11-19  8:36     ` Alessandro Vesely
2019-11-20 16:41     ` zrm
2019-11-21  3:04       ` Trent W. Buck

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.