Linux Netfilter discussions
 help / color / mirror / Atom feed
* Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis?
@ 2011-02-06 23:24 Erik Andersen
  2011-02-07  7:50 ` Marek Kierdelewicz
  0 siblings, 1 reply; 3+ messages in thread
From: Erik Andersen @ 2011-02-06 23:24 UTC (permalink / raw)
  To: netfilter

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.
My current setup:
-------------------------------
br0 (used for LAN)
  eth5
  eth7
  eth10
  wlan1
  vboxnet0(when I'm running a Virtual Machine with virtualbox)

eth0-->DSL modem (bridging mode)
  ppp0(over eth0)-->ISP

--------------------------------

Thanks,
Erik B. Andersen

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

* Re: Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis?
  2011-02-06 23:24 Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis? Erik Andersen
@ 2011-02-07  7:50 ` Marek Kierdelewicz
  2011-02-07 15:05   ` Matty Sarro
  0 siblings, 1 reply; 3+ messages in thread
From: Marek Kierdelewicz @ 2011-02-07  7:50 UTC (permalink / raw)
  To: Erik Andersen; +Cc: netfilter

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

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

* Re: Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis?
  2011-02-07  7:50 ` Marek Kierdelewicz
@ 2011-02-07 15:05   ` Matty Sarro
  0 siblings, 0 replies; 3+ messages in thread
From: Matty Sarro @ 2011-02-07 15:05 UTC (permalink / raw)
  To: Marek Kierdelewicz; +Cc: Erik Andersen, netfilter

I know port mirroring is supported, however I've never implemented it.
SPAN isn't supported; its cisco proprietary.

On Mon, Feb 7, 2011 at 2:50 AM, Marek Kierdelewicz <marek@piasta.pl> wrote:
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

end of thread, other threads:[~2011-02-07 15:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-06 23:24 Linux bridge/switch port mirroring/SPAN/port monitoring/Roving Analysis? Erik Andersen
2011-02-07  7:50 ` Marek Kierdelewicz
2011-02-07 15:05   ` Matty Sarro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox