fbpx

Blocking access to the MikroTik firewall is at the network level. How to block access while on the same network for the Mac? Can this be restricted in the firewall?

Yes, you can block clients through the mac in the filter rules using the src-mac address option in the advanced tab.

In MikroTik RouterOS, the firewall is very powerful and flexible, allowing a wide range of rules and configurations to control network traffic. However, blocking access to devices based solely on the MAC address from the firewall is neither the standard nor the most direct practice, since the MikroTik firewall operates primarily at the network layer level (Layer 3) and above, while that MAC addresses operate at the link level (Layer 2).

However, there are other ways in RouterOS to restrict access based on MAC addresses, although these solutions may be more suitable for controlling access to the Wi-Fi network or through specific Ethernet interfaces, and less suitable for filtering traffic at the level network. Here I present some alternatives:

1. Wi-Fi Access Control by MAC

If you want to restrict access to a Wi-Fi hotspot on a MikroTik, you can use the “Access List” functionality in the WLAN settings to allow or deny clients based on their MAC addresses.

2. Bridge Filtering

For wired networks, you can use Bridge Filtering to block traffic from certain MAC addresses across bridges. This is an effective way to control access at the Layer 2 level.

3. DHCP Server Leasing

Another option is to configure the DHCP server on the MikroTik to map specific IP addresses to known MAC addresses and then use the firewall to block traffic to or from those specific IP addresses. This requires an additional mapping step between the MAC address and the IP address, but effectively achieves the desired result using the capabilities of the firewall.

4. Using Scripts

You can write scripts in RouterOS that dynamically add firewall rules based on MAC address, although this would be more complex and would require script logic to first resolve the MAC address to an IP address.

Considerations

Blocking access to devices based on MAC addresses may not always be the most secure solution, as MAC addresses can be spoofed (MAC spoofing). For network-level security, it is preferable to implement solutions based on higher layers, such as network layer firewalls, strong authentication, and encryption.

In conclusion, while the MikroTik firewall is not designed to directly filter by MAC addresses, there are alternative methods within RouterOS that can help you control and restrict access effectively. The choice of method will depend on your specific network configuration and security needs.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011