Discussion:
MAC filter
m.a.t.e.o
2007-12-09 15:24:27 UTC
Permalink
I did search a lot of post in this list and other, but never have a solution
that works...
I want to filter the INGRESS by MAC address...please, any help?

There are a "solution" that supposedly works, but did not work for me:


#######
for the MAC address: M0M1M2M3M4M5

tc filter add dev eth1 parent 1: protocol ip prio 5 u32 match u16 0x0800
0xffff at -2 match u16 0x4455 0xffff at -4 match u32 0x00112233 0xffffffff
at -8 flowid 1:40

#######

Thx, a lot.-
Marek Kierdelewicz
2007-12-09 15:47:57 UTC
Permalink
Hi,
What you sent works for egress not ingress.

Look here:
http://www.linux-foundation.org/en/Net:IFB

There's an example how to shape traffic in ingress.

cheers,
Marek Kierdelewicz

Loading...