All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] ebtables, PF_PACKET and other stuff
@ 2009-12-23  9:02 Jean-Michel Hautbois
  2009-12-23 14:03 ` richardvoigt
  0 siblings, 1 reply; 6+ messages in thread
From: Jean-Michel Hautbois @ 2009-12-23  9:02 UTC (permalink / raw)
  To: bridge

Hi there !
I have been looking to the ebtables website, and in particular to the
flowchart :
http://ebtables.sourceforge.net/br_fw_ia/PacketFlow.png

I am trying to have the following behaviour :
On eth0, I have several types of frames, IP, 802.1Q and other things.
I would like to have other things forwarded directly to eth1, and I
would like to analyse the IP and 802.1Q frames.
I mean : I don't want to see the frames in my local process.

I have done the following :
- Creating a bridge between eth0 and eth1, no stp.
- ebtables -t broute -A BROUTING -p IPv4 -j DROP
- ebtables -t broute -A BROUTING -p 802.1q -j DROP

This seems to work, as no IP nor VLAN frames are going out from eth1.
Then, my question is : How can I "listen" to eth0, in order to get the
complete frames (I need all the ethernet frames when IP or 802.1Q). I
thought about something like a PF_PACKET, but I am not sure if I need
to be in promiscuous mode or not...

I did some tries, but nothing worked, so I prefer asking :-).
Thanks in advance !
Best Regards,
JM

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

end of thread, other threads:[~2010-01-04 13:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-23  9:02 [Bridge] ebtables, PF_PACKET and other stuff Jean-Michel Hautbois
2009-12-23 14:03 ` richardvoigt
2009-12-23 14:07   ` [Bridge] Re :Re: " jhautbois
2009-12-23 16:01     ` Bart De Schuymer
2010-01-04 11:35       ` Jean-Michel Hautbois
2010-01-04 13:53         ` Jean-Michel Hautbois

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.