10-25-07 12:22 AM
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
[ Post a follow-up to this message ]
|