Page 1 of 1

Bridge Filter MAC + Mask

Posted: Sun Jan 17, 2010 11:04 am
by synologic
Hi,

how does the mac and mask fields work on bridge filter ?

I tried to filter some traffic that should go out only to specific devices from within a mac range (filtered by vendor id) but the filter doesnt match any packets.
what i tried was:

1. mac address 00:00:00:00:00:00 and mask XX:YY:ZZ:FF:FF:FF where XX:YY:ZZ is the vendor id <- nothing matches
2. mac address XX:YY:ZZ:00:00:00 and mask 00:00:00:FF:FF:FF <- nothing matches
3. mac address XX:YY:ZZ:00:00:00 and mask XX:YY:ZZ:FF:FF:FF <- nothing matches
4. mac address 00:00:00:00:00:00 and mask FF:FF:FF:FF:FF:FF <- nothing matches either

Since there's no doc on this topic on the wiki, can somebody please explain ?

Thx

Re: Bridge Filter MAC + Mask

Posted: Mon Jan 18, 2010 8:59 am
by gmsmstr
Have you tried a *, don't think that will work either, think it has to be an exact match.

Re: Bridge Filter MAC + Mask

Posted: Wed Oct 26, 2011 4:36 am
by thegink
I know this is an old post, but I was looking for the same information and couldn't find it anywhere. Here's what I worked out:

To match only data from dell devices (for example),
Src MAC Address: 00:1A:A0:00:00:00
Src Mac Mask: FF:FF:FF:00:00:00

This rule will match 00:1A:A0:xx:xx:xx

I haven't tried it, but the mask field seems to be a bit mask, so you should be able to match ranges much like you can with subnet masks.

t

Re: Bridge Filter MAC + Mask

Posted: Fri Sep 11, 2015 5:00 pm
by canniscam
I know this is an old post, but I was looking for the same information and couldn't find it anywhere. Here's what I worked out:

To match only data from dell devices (for example),
Src MAC Address: 00:1A:A0:00:00:00
Src Mac Mask: FF:FF:FF:00:00:00

This rule will match 00:1A:A0:xx:xx:xx

I haven't tried it, but the mask field seems to be a bit mask, so you should be able to match ranges much like you can with subnet masks.

t
@thegink

Thanks, that worked like a champ..

Casey Annis

Re: Bridge Filter MAC + Mask

Posted: Thu Jun 18, 2020 5:06 pm
by hci
Can this be done in IP firewall? MAC Address and Mask?