Yes, FortiGate firewalls support MAC address filtering through access control policies and device identification features, allowing administrators to permit or deny traffic based on Layer 2 hardware addresses. This capability is primarily used for device-level access control in wired or wireless networks, though it has important limitations compared to IP-based filtering. MAC filtering is not a standalone security feature in FortiOS—it must be configured as part of firewall policies, authentication schemes, or wireless LAN controller settings.
Background & Purpose
MAC address filtering on FortiGate devices serves several specific operational purposes, though it’s often misunderstood in the context of modern network security. Historically, MAC filtering was more common in small office or home networks where devices were static and few, and where Wi-Fi access points lacked robust authentication. In enterprise environments, FortiGate’s MAC filtering is typically used for:
- Allowing only known IoT or embedded devices (e.g., printers, scanners, medical equipment) that cannot authenticate via 802.1X
- Implementing basic guest access restrictions where devices are registered in advance
- Supplementing identity-based authentication (e.g., MAC-based RADIUS) in hybrid authentication scenarios
- Blocking known malicious or unauthorized devices at the network edge
How FortiGate MAC Filtering Works
FortiGate does not have a dedicated “MAC filter table” like older consumer routers. Instead, MAC-based decisions are made during policy evaluation in the firewall engine. When a packet arrives, FortiGate evaluates the source MAC address against configured matching rules in the context of the active security policy (e.g., firewall policy, wireless LAN controller profile, or captive portal settings). The process involves:
- Packet ingress at a physical or virtual interface
- MAC address extraction (source and/or destination)
- Comparison against any configured MAC lists (e.g., in firewall policies with “MAC address” constraints)
- Policy enforcement: allow, deny, or redirect (e.g., to captive portal)
Configuration Methods & Examples
There are three primary ways to configure MAC address filtering on FortiGate, each suited to different use cases:
1. Wireless LAN Controller Profiles
Under Security > Wireless LAN Controller > SSID Profiles, you can enable MAC filtering for a specific SSID. Steps:
- Navigate to Security > Wireless LAN Controller > SSID Profiles
- Edit the target SSID profile
- Under Security, set MAC Address Filtering to either Allow or Block
- Click MAC Address List and add entries (one per line)
- Save and apply the profile to an AP group
A1:B2:C3 or 00:1A:2B to connect.2. Firewall Policy Constraints
For wired traffic, use the Source MAC Address or Destination MAC Address fields in a firewall policy. Note: This only applies to traffic where the MAC header is visible—i.e., within the same broadcast domain (Layer 2). Once traffic is routed (Layer 3), MAC addresses change. Steps:
- Go to Policy & Objects > Firewall Policy
- Create or edit a policy (e.g., internal → DMZ)
- Scroll to Source/Destination section
- Enable Source MAC Address and enter one or more addresses (comma-separated)
- Set action (Allow/Deny) as needed
00:11:22:33:44:55 to the internal server VLAN.3. MAC-Based Authentication (RADIUS/TACACS+)
FortiGate can integrate with external RADIUS servers to authenticate devices by MAC address (commonly used as a username). This requires:
- Configuring a RADIUS server with MAC addresses as usernames (e.g.,
00:11:22:33:44:55) and pre-shared passwords - In FortiGate: Policy & Objects > Authentication > RADIUS, add the server
- Create an authentication profile (e.g., System > Object > Authentication Profile) referencing the RADIUS server
- Assign the profile to a wireless or captive portal policy
Common Pitfalls & Limitations
While useful in specific cases, MAC filtering on FortiGate has critical limitations that often lead to misconfiguration:
- Routing breaks MAC visibility: Once traffic passes through a Layer 3 interface (e.g., a firewall rule with NAT), the original source MAC is replaced by the FortiGate’s interface MAC. Filtering on source MAC only works for local traffic (same subnet).
- No IPv6 support in MAC filtering: IPv6 Neighbor Discovery uses link-layer addresses differently, and MAC filtering does not apply to IPv6 RA or DHCPv6 traffic by default.
- MAC spoofing is trivial: An attacker can change their device’s MAC to match an allowed one in seconds using built-in OS tools—no technical skill required.
- No real-time updates: MAC lists in SSID profiles are static; changes require reapplying the profile to APs and may require client reconnection.
- Performance impact: Large MAC lists (>1,000 entries) can slow policy evaluation, especially on lower-end models like the FortiGate 60F.
When to Use MAC Filtering vs. Alternatives
MAC filtering is appropriate only in narrow scenarios. Consider these alternatives based on your goal:
- Device identification without MAC: Use FortiGate’s Endpoint Control (for FortiClient) or FortiNAC for automatic device fingerprinting using DHCP fingerprints, HTTP user agents, or 802.1X.
- Strong authentication: Prefer WPA2-Enterprise or WPA3-Enterprise with 802.1X and EAP-TLS, which binds user/device identity to certificates—not MAC addresses.
- MAC spoofing resistance: Combine MAC filtering with DHCP snooping (on switches) and ARP inspection, or use FortiSwitch’s secure MAC learning features.
- Guest access control: Use Captive Portal with MAC-based registration (where the portal stores the MAC and auto-approves future connections).
- IoT device segmentation: Prefer VLAN segmentation + application-aware policies over MAC lists, especially for devices that only use HTTP or DNS.
Performance & Scalability Considerations
FortiGate handles MAC filtering efficiently for small to medium lists (up to ~500 entries), but performance degrades with very large lists due to linear matching in policy evaluation. Key thresholds:
- FortiGate-60F/100F: ~200 MAC entries recommended per SSID profile before latency increases
- FortiGate-100F/200F: ~500 entries with minimal impact
- FortiGate-3000D+ or SD-WAN appliances: Can handle 1,000+ entries, but testing is advised
- Avoid per-device policies—use groups (e.g., “Printers” group in address objects)
- Prefer RADIUS authentication over static lists for dynamic environments
- Use DHCP reservations + address-based policies instead of MAC where possible
- Monitor System > FortiView > Security for policy hits to identify unused MAC rules
Safety & Security Recommendations
MAC filtering introduces minimal risk if used correctly, but misuse can create false confidence. Never use it as your only control. Follow these guidelines:
- Always pair with encryption: Use WPA3-Personal or WPA3-Enterprise—even with MAC filtering, unencrypted traffic exposes the network.
- Log MAC filter events: Enable logging on MAC-filtered policies to detect spoofing attempts (check logs for “MAC not in list” entries).
- Audit regularly: Run
diag firewall mac-list listto view active MAC entries in SSID profiles. - Do not rely on MAC for compliance: Standards like HIPAA or PCI-DSS require identity-based controls, not MAC-based ones.
- Test failover scenarios: Verify MAC lists persist after HA failover or firmware upgrades.
Frequently Asked Questions
Can FortiGate filter MAC addresses for Wi-Fi guests automatically?
Yes, using captive portal with MAC registration. When a guest connects, FortiGate redirects them to a login page. If they enter their MAC (or it’s auto-detected), you can register it and allow future connections without re-registration. This is configured under Security > Wireless LAN Controller > Captive Portal > MAC Registration.
Why doesn’t MAC filtering work on my VLAN traffic?
Because once traffic crosses a Layer 3 interface (e.g., VLANIF), the source MAC address changes to the FortiGate’s interface MAC. MAC filtering only applies to traffic on the same broadcast domain (e.g., between devices on the same switch port or AP). To filter VLAN traffic, use address objects or security policies based on IP addresses instead.
Does MAC filtering work with FortiSwitch integration?
Partially. FortiGate can push MAC-based security policies to integrated FortiSwitch ports (e.g., enabling MAC-based port security), but this requires the FortiSwitch to support the feature and be managed by the FortiGate. The MAC list is stored on the FortiGate and synchronized—limit is typically 500 per switch port.
Can I block devices by MAC without denying them at the firewall?
No—not directly. FortiGate doesn’t have a standalone “blacklist” that drops packets at Layer 2. MAC-based blocking must be implemented via firewall policies (deny action) or wireless profiles (block list). However, you can use Application Control or Web Filter with MAC-based policies for more granular actions (e.g., redirect to quarantine VLAN).
Is MAC filtering affected by FortiGate HA (high availability)?
No—if you use state-synced HA (active-passive), MAC lists in SSID profiles or firewall policies are synchronized automatically. However, if you manually edit the list on the slave unit, changes won’t persist after sync. Always configure MAC lists on the master unit only.
What happens if I use both MAC filtering and 802.1X on the same SSID?
The 802.1X authentication occurs first. If it succeeds, the MAC is already authenticated and no MAC filter check is performed. If 802.1X fails, FortiGate falls back to MAC filtering (if enabled) as a secondary method. This hybrid mode is useful for legacy devices that can’t support 802.1X but can authenticate via MAC-RADIUS.