From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Daniel <tech@tootai.net>
Cc: Netfilter list <netfilter@vger.kernel.org>, fw@strlen.de
Subject: Re: map problem with port range
Date: Thu, 2 Nov 2023 11:15:42 +0100 [thread overview]
Message-ID: <ZUN2zmoKfXYpBrcx@calendula> (raw)
In-Reply-To: <906a00d3-8d3c-4ea5-9bda-40ae905856a3@tootai.net>
Then, this:
table inet filter {
map forward_udp.lan {
type ipv6_addr . inet_service : interval ipv6_addr . inet_service
flags interval
elements = { 2001:db8::1 . 20000-24999 : 2001:db8:16e:10::ffee . 20000-24999 }
}
chain y {
ip6 daddr . udp dport @forward_udp.lan
}
}
Note that you require a Linux kernel >= 6.4 which contains this fix:
commit a4878eeae39048e6abe85891c714b49dc13fc08c
Author: Florian Westphal <fw@strlen.de>
Date: Fri May 12 14:19:47 2023 +0200
netfilter: nf_tables: relax set/map validation checks
Probably there is a chance to request to enqueue this for -stable,
because a simple look up on a map is something that should be working
since day 0.
No 'map' keyword, such keyword is only required when you want to make a
map lookup, e.g.
dnat ip6 to ip6 daddr . udp dport map @forward_udp.lan
^^^^^^^^^^^^^^^^^^^^^
then you make a map lookup using the key above.
prev parent reply other threads:[~2023-11-02 10:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-31 18:38 map problem with port range Daniel
2023-11-01 8:32 ` Pablo Neira Ayuso
2023-11-01 13:28 ` Daniel
2023-11-02 10:15 ` Pablo Neira Ayuso [this message]
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=ZUN2zmoKfXYpBrcx@calendula \
--to=pablo@netfilter.org \
--cc=fw@strlen.de \
--cc=netfilter@vger.kernel.org \
--cc=tech@tootai.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).