Community discussions

MikroTik App
 
synologic
newbie
Topic Author
Posts: 38
Joined: Tue Aug 11, 2009 2:03 pm

Bridge Filter MAC + Mask

Sun Jan 17, 2010 11:04 am

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
 
User avatar
gmsmstr
Trainer
Trainer
Posts: 982
Joined: Fri Jun 04, 2004 2:22 am
Location: St. Louis, MO
Contact:

Re: Bridge Filter MAC + Mask

Mon Jan 18, 2010 8:59 am

Have you tried a *, don't think that will work either, think it has to be an exact match.
 
thegink
just joined
Posts: 3
Joined: Wed Oct 12, 2011 5:02 am

Re: Bridge Filter MAC + Mask

Wed Oct 26, 2011 4:36 am

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
 
canniscam
newbie
Posts: 25
Joined: Thu May 24, 2007 8:49 pm

Re: Bridge Filter MAC + Mask

Fri Sep 11, 2015 5:00 pm

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
 
hci
Long time Member
Long time Member
Posts: 674
Joined: Fri May 28, 2004 5:10 pm

Re: Bridge Filter MAC + Mask

Thu Jun 18, 2020 5:06 pm

Can this be done in IP firewall? MAC Address and Mask?

Who is online

Users browsing this forum: No registered users and 78 guests