netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: Mail List - Netfilter <netfilter@vger.kernel.org>
Subject: Re: ebtables & VLAN redirect
Date: Tue, 29 Jun 2010 14:29:39 -0500	[thread overview]
Message-ID: <4C2A49A3.1030600@riverviewtech.net> (raw)
In-Reply-To: <AANLkTindtJ35xk2AgQxS_Fkac86s-n1riksh7D2oD34o@mail.gmail.com>

On 06/29/10 13:15, Anatoly Muliarski wrote:
> Session may be not fully correct word - more precisely it should 
> understand as IP traffic flows specified by address:port pairs to 
> dump the traffic.

So you are wanting to mirror specific flows that are passing through 
your system to VLAN 9.

What interfaces are these flows being passed through?  The bridge and 
another (virtual) interface?  In other words, what would be an example 
of an incoming interface and an out going interface?  Or is this traffic 
making it to your system because it is multicast / flooded on each VLAN?

> Your explanation is correct BUT in current bridging model there would 
> be a hundred attempts to flood ALL broadcast/multicast traffic 
> received from every bridge port. Yes, I can filter them out by using 
> ebtables rules, but this unnecessary attempts will waste CPU time.

Ok.  Just my opinion, but if this system is being designed to do this 
(presuming there are not other options) I'd make sure that the CPU was 
scaled to function with the amount of traffic.

> Writing "to limit traffic direction between bridge devices" I meant 
> there is no support to exclude attempts of flood to ALL ports by 
> limiting a direction of flooding in the description of a bridge 
> device.

Ok...  Now it sounds like you are wanting some more advanced features 
(read things that purposefully break standards in some situations) like 
broadcast storm protection.

> OK bridging will work, but I am afraid to meet performance issues 
> afterwards as I stated above.

Maybe, maybe not.

> Very interesting.

*nod*

> Thank you for your advise, It worth to employ ebtables in solving my 
> tasks. And I have met the same problem with MACs in other project and 
> I had to generate different source MACs for different VLANs and 
> eventually I had to replace the switch to cope with the problem of 
> matching destination MACs for different VLANs.

I'm starting to wonder if your system isn't being used as a traditional 
piece of network infrastructure equipment (router / switch / bridge). 
Rather if you are trying to make a utility that will ""extend a 
monitoring package that is designed to monitor one VLAN in such a way 
that it can monitor multiple VLANs.  Or at least bridge the traffic you 
want to monitor from multiple VLANs down to one VLAN that your 
application can monitor.

If this is the case, and you are using separate VLANs to avoid network 
congestion problems, I agree that bridging might not be the best option 
here.

In this case, I'd look at doing something that will cause your system to 
receive the traffic you are interested in and pass on to the monitoring 
application.  -  I'm guessing that an application layer gateway would 
probably be best at doing this.

The simple fact that you have the amount of incoming traffic that you 
want to filter and forward a subset of implies that there will be CPU 
time spent analyzing which traffic to forward.



Grant. . . .

  reply	other threads:[~2010-06-29 19:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26 12:43 ebtables & VLAN redirect Anatoly Muliarski
2010-06-26 16:41 ` Grant Taylor
2010-06-27  6:04   ` Anatoly Muliarski
2010-06-28  2:14     ` Grant Taylor
2010-06-28 17:33       ` Anatoly Muliarski
2010-06-28 20:45         ` Grant Taylor
2010-06-29 18:15           ` Anatoly Muliarski
2010-06-29 19:29             ` Grant Taylor [this message]
2010-06-29 19:31               ` Grant Taylor
2010-06-30  3:20                 ` /dev/rob0
2010-06-30  3:33                   ` Grant Taylor
2010-06-30 20:54                 ` Anatoly Muliarski
2010-06-30 21:09                   ` Grant Taylor
2010-06-30 21:21                     ` Grant Taylor

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=4C2A49A3.1030600@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --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;
as well as URLs for NNTP newsgroup(s).