Unix administration - Rate Limit in a Bridge?

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > November 2007 > Rate Limit in a Bridge?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Rate Limit in a Bridge?
Fravo

2007-10-19, 7:32 am

Hi all,

I have a bridge (br0) and I need to rate the number of packets per
second that is forwarded, is there a way to do this?

I`m trying with these rules

iptables -A FORWARD -m physdev --physdev-in eth0 -m limit --limit 1/
minute -j ACCEPT
iptables -A FORWARD -m physdev --physdev-out eth1 -m limit --limit 1/
minute -j ACCEPT

and nothing is done.

So, what can I do to solve this problem?

Komal

2007-10-24, 7:22 pm

On Oct 19, 4:47 pm, Fravo <fravo.cr...@gmail.com> wrote:
> Hi all,
>
> I have a bridge (br0) and I need to rate the number of packets per
> second that is forwarded, is there a way to do this?
>
> I`m trying with these rules
>
> iptables -A FORWARD -m physdev --physdev-in eth0 -m limit --limit 1/
> minute -j ACCEPT
> iptables -A FORWARD -m physdev --physdev-out eth1 -m limit --limit 1/
> minute -j ACCEPT
>
> and nothing is done.
>
> So, what can I do to solve this problem?


Concept of packet is related to layer 3 that is network layer.Bridge
operate at layer 2.You should use ebtables or Use a simple token
bucket filter.Rules you mention will not work with bridge.

Komal

Fravo

2007-11-28, 1:25 pm

On Oct 24, 4:58 pm, Komal <komal.sha...@gmail.com> wrote:
> On Oct 19, 4:47 pm, Fravo <fravo.cr...@gmail.com> wrote:
>
>
>
>
>
>
>
> Concept of packet is related to layer 3 that is network layer.Bridge
> operate at layer 2.You should use ebtables or Use a simple token
> bucket filter.Rules you mention will not work with bridge.
>
> Komal


Thanks, but does token bucket filter limit packet rate? I tried with
ebtables but the result is the same old shit...

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com