Created on
09-01-2024
06:09 AM
Edited on
10-31-2025
06:51 AM
By
Jean-Philippe_P
| Description | This article describes how to troubleshoot MAC address-based policies. |
| Scope | FortiGate v6.4+. |
| Solution |
In FortiGate, there is an option to configure MAC address-based policies: MAC address-based policies
The MAC address is a link-layer address, and it cannot be forwarded to different IP networks.
The MAC address type objects can be applied as source address and destination address for policies in Transparent mode or Virtual Wire Pair interface.
To configure this, first go to Network -> Interface and select the interface where the device is connected and select ‘Edit’:
Then, under the DHCP server, select Advanced and then go to IP Address Assignment Rules:
Select 'Create New'. Here, enter the MAC address that is necessary to make a policy for and the IP address desired to be assigned to it:
Make sure the IP is not part of the DHCP range. After that, Select OK.
CLI:
config system dhcp server
Now create an address object for this IP. For this, go to Policy & Objects -> Addresses and select Create New-> Address:
Enter the IP mentioned in the previous step and select OK.
CLI:
config firewall address Now it is possible to create policies, routes, etc for this address object. This will act as a proxy for the MAC address desired to be applied to any policies, routes, etc. Here, there is no limitation that was found in the MAC address-based policies.
Quick Tip:
Related articles: Technical Tip: How to create the MAC address based policies in FortiGate IPv4 policy Technical Tip: Blocking a MAC address in FortiGate using a Firewall Policy |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.