Community discussions

MikroTik App
 
AndreKR
newbie
Topic Author
Posts: 34
Joined: Sat May 14, 2016 11:58 pm

Can I filter on L2?

Thu Dec 19, 2024 11:47 pm

I have an interface (just a simple interface, not part of a bridge) and I would like to throw away incoming packets from a specific MAC address, can I do that on a RB960PGS (hEX PoE)?
 
holvoetn
Forum Guru
Forum Guru
Posts: 6748
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Can I filter on L2?

Thu Dec 19, 2024 11:53 pm

Most likely switch ACL rules.

Check this thread for more background info.
viewtopic.php?t=203589
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11103
Joined: Mon Dec 04, 2017 9:19 pm

Re: Can I filter on L2?

Thu Dec 19, 2024 11:58 pm

On that particular device model, the following should work but you have to try:
/interface ethernet switch rule
add ports=ether5 src-mac-address=10:20:30:40:50:60/FF:FF:FF:FF:FF:FF switch=switch1 new-dst-ports=""

On devices without switch chip rules support, you would have to create a dedicated bridge whose only port would be the interface in question.

Who is online

Users browsing this forum: No registered users and 26 guests