From: Oliver Graute <oliver.graute@gmail.com>
To: netfilter@vger.kernel.org
Subject: Marking frames with ebtables for iptables
Date: Wed, 2 Dec 2015 14:02:39 +0000 (UTC) [thread overview]
Message-ID: <loom.20151202T145721-935@post.gmane.org> (raw)
Hello,
I'am new to ebtables/iptables. I struggle with the mark feature.
I try to mark some frames with ebtables on MAC Layer to pass these mark to
iptables network layer.
I build up a bridge interface br0, cleared all ebtables and iptables tables
as preparation. Then I try something like this:
ebtables -t filter -A INPUT -p IPv4 -s 00:11:22:33:44:55 -i eth0 -j mark --
mark-set 0xffff --mark-target ACCEPT
ebtables -t filter -A INPUT --log-level info --log-ip --log-prefix EBFW
iptables -t mangle -A PREROUTING -m mark --mark 0xffff
iptables -t mangle -A PREROUTING -m mark --mark 0xffff -j LOG --log-level
info --log-prefix MARKED
i would expect that iptables log show me the marked packages from ebtables.
But i see no mark 0xffff
Does anyone know how this is done right?
Best regards,
Oliver
next reply other threads:[~2015-12-02 14:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-02 14:02 Oliver Graute [this message]
2015-12-05 11:30 ` Marking frames with ebtables for iptables Pascal Hambourg
2015-12-07 8:43 ` Oliver Graute
2015-12-07 22:39 ` Pascal Hambourg
2015-12-08 7:10 ` Oliver Graute
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=loom.20151202T145721-935@post.gmane.org \
--to=oliver.graute@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