From: "etkaar" <lists.netfilter.org@prvy.eu>
To: netfilter@vger.kernel.org
Subject: How to concatenate subnet with port in a set?
Date: Tue, 16 Mar 2021 16:34:49 +0100 [thread overview]
Message-ID: <5q7dsb7wp.iCi4WV@prvy.eu> (raw)
Hello!
I am currently using <nftables v0.9.0 (Fearless Fosdick)> on Debian 10 (Buster). For a whitelist, I thought about a set like this:
1> set whitelist_ipv4_tcp {2> type inet_service . ipv4_addr3> elements = {4> 22 . 255.255.255.255,5> 22 . 255.255.255.0/246> }7> }
You can see, that on line 5 I used a port concatenated by an IPv4 subnet. Unfortunately, this will not work. I could use subnets, but only as a simple unconcatenated set.
My question is: When will it be possible to concatenate subnets with different types such as inet_service (= port) in sets? Or is it already possible in a newer version than 0.9.0?
--etkaar
next reply other threads:[~2021-03-16 15:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-16 15:34 etkaar [this message]
2021-03-16 16:04 ` How to concatenate subnet with port in a set? Frank Myhr
-- strict thread matches above, loose matches on Subject: below --
2021-03-16 15:52 etkaar
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=5q7dsb7wp.iCi4WV@prvy.eu \
--to=lists.netfilter.org@prvy.eu \
--cc=lists.netfilter.org+0cvssbcc2j@prvy.eu \
--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