All of lore.kernel.org
 help / color / mirror / Atom feed
* Marking frames with ebtables for iptables
@ 2015-12-02 14:02 Oliver Graute
  2015-12-05 11:30 ` Pascal Hambourg
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Graute @ 2015-12-02 14:02 UTC (permalink / raw)
  To: netfilter

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-12-08  7:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-02 14:02 Marking frames with ebtables for iptables Oliver Graute
2015-12-05 11:30 ` Pascal Hambourg
2015-12-07  8:43   ` Oliver Graute
2015-12-07 22:39     ` Pascal Hambourg
2015-12-08  7:10       ` Oliver Graute

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.