From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: netfilter@vger.kernel.org
Subject: bridge-nf-call-iptables: checking bridge vs. IP context?
Date: Mon, 29 Mar 2021 20:08:27 +0200 [thread overview]
Message-ID: <20210329180827.GE2742@otheros> (raw)
Hi,
I'm wondering whether I'm currently overlooking a simple solution
for the following:
When setting bridge-nf-call-iptables = 1, is there a simple way to
check within one iptables rule whether it matched from a bridge
netfilter hook or from an IP netfilter hook?
"--physdev-is-bridged" seemingly is not quite what I'm looking
for, as it will only match after a bridging decision, in the
FORWARD or POSTROUTING chains.
If that does not exist yet, what would be the preferred,
upstreamable format: Adding a flag to "struct nf_bridge_info" or
are there some other, already existing fields I could use to
verify the context?
Regards, Linus
next reply other threads:[~2021-03-29 18:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 18:08 Linus Lüssing [this message]
2021-03-29 19:02 ` bridge-nf-call-iptables: checking bridge vs. IP context? Florian Westphal
2021-03-29 23:24 ` Linus Lüssing
2021-03-30 17:33 ` Florian Westphal
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=20210329180827.GE2742@otheros \
--to=linus.luessing@c0d3.blue \
--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 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.