From: Florian Westphal <fw@strlen.de>
To: Amiq Nahas <m992493@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Multiple labels with connlabel
Date: Wed, 26 Aug 2020 23:43:05 +0200 [thread overview]
Message-ID: <20200826214305.GB7319@breakpoint.cc> (raw)
In-Reply-To: <CAPicJaHyWhrz8VxZ8tfpSUNcc_KPSF-cHUPYe1JmGwxroAFX8A@mail.gmail.com>
Amiq Nahas <m992493@gmail.com> wrote:
> Currently this can be done
> iptables -t mangle -I PREROUTING -m connlabel --label portforward
>
> What if someone wants to use multiple labels? One would have to write
> this same rules several times.
> Can we do something like this:
> iptables -t mangle -I PREROUTING -m connlabel --label
> portforward-something-somethingelse-...
No, thats not supported. You can use matches multiple times:
iptables -t mangle -I PREROUTING \
-m connlabel --label portforward \
-m connlabel --label something \
-m connlabel --label somethingelse
prev parent reply other threads:[~2020-08-26 21:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-26 10:15 Multiple labels with connlabel Amiq Nahas
2020-08-26 21:43 ` Florian Westphal [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=20200826214305.GB7319@breakpoint.cc \
--to=fw@strlen.de \
--cc=m992493@gmail.com \
--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