From: Frank Myhr <fmyhr@fhmtech.com>
To: Stefan Hartmann <stefanh@hafenthal.de>,
"netfilter.org" <netfilter@vger.kernel.org>
Subject: Re: nftables 0.9.3, sets with concatentation
Date: Fri, 20 Mar 2020 12:46:11 -0400 [thread overview]
Message-ID: <ae6abdfc-8479-29ae-c411-ecca532d864f@fhmtech.com> (raw)
In-Reply-To: <4220067c-41e2-d3e2-fc78-8ac0fb909911@fhmtech.com>
On 2020/03/20 12:41, Frank Myhr wrote:
> set s4_MISC-SERVICES {
> type ipv4_addr . inet_proto . inet_service
> elements = { $IP4_IF2 . udp . 69, $IP4_IF2 . tcp . 23 ]
Argh! Use a curly brace at the end rather than square bracket,
obviously. ;-p
> meta l4proto {tcp, udp} \
> ip daddr . meta l4proto . th dport @s4_MISC-SERVICES accept
>
>
> Or, you may well want to handle ipv4 addresses in a separate set:
>
> set s4_MISC-SERV2 {
> type inet_proto . inet_service
> elements = { udp . 69, tcp . 23 ]
Same here.
> set ip_allowed {
> type ipv4_addr
> elements = { $IP4_IF2 }
Add missing end brace }.
Sorry for the typos!
-F
next prev parent reply other threads:[~2020-03-20 16:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 15:51 nftables 0.9.3, sets with concatentation Stefan Hartmann
2020-03-20 16:37 ` Florian Westphal
2020-03-20 16:41 ` Frank Myhr
2020-03-20 16:46 ` Frank Myhr [this message]
2020-03-21 10:17 ` Stefan Hartmann
2020-03-21 14:24 ` Frank Myhr
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=ae6abdfc-8479-29ae-c411-ecca532d864f@fhmtech.com \
--to=fmyhr@fhmtech.com \
--cc=netfilter@vger.kernel.org \
--cc=stefanh@hafenthal.de \
/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