Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Marek Kierdelewicz <marek@piasta.pl>
To: Erik Andersen <erik.b.andersen@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis?
Date: Mon, 7 Feb 2011 08:50:55 +0100	[thread overview]
Message-ID: <20110207085055.0acf6040@catus> (raw)
In-Reply-To: <AANLkTikP+f97ohiY6DCi-zogvde=d-rji8txa9RPGJd8@mail.gmail.com>

Hi,

>Is there a way to port mirroring/SPAN on a linux bridge? If so, what
>would I need to do to set it up? I'm hoping to port morror to
>vboxnet0.

Mirroring functionality is build into ifb[1]. There's tc action "mirred
egress mirror" which, used in a proper context, can mirror ingress
and/or egress traffic to other interface. In your case, mirrored
interface would be br0.

Here [2] our colegue is describing ingress mirroring from eth1 to
eth2-5.

And important note here [3] about using "protocol all" in tc filter, if
you also want to get non-ip traffic mirrored.

[1]
http://www.linuxfoundation.org/collaborate/workgroups/networking/ifb#IFB_Example
[2] http://marc.info/?l=linux-netdev&m=128853067804910&w=2
[3] http://marc.info/?l=linux-netdev&m=128861016403775&w=2

Best regards,
Marek Kierdelewicz

  reply	other threads:[~2011-02-07  7:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-06 23:24 Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis? Erik Andersen
2011-02-07  7:50 ` Marek Kierdelewicz [this message]
2011-02-07 15:05   ` Matty Sarro

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=20110207085055.0acf6040@catus \
    --to=marek@piasta.pl \
    --cc=erik.b.andersen@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