Skip to main content
Rajan_kohli
Staff
Staff
August 1, 2023

Technical Tip: Blocking a MAC address in FortiGate using a Firewall Policy

  • August 1, 2023
  • 0 replies
  • 36481 views

 

Description

This article describes how to block a MAC address in FortiGate using a Firewall Policy.

Scope

FortiGate 6.x.x and 7.x.x.

Solution

The Firewall Policy to block a MAC address can be either configured from a specific source and destination interface, or for all interfaces.
First, make an address object with the MAC address of the device which needs to be blocked.

 

address.PNG

 

If that MAC should be blocked from accessing all interfaces:

Enable the Multiple Interface Policies feature in feature visibility (configuring a policy in this way will stop Interface Pair view from working):

 

Picture1.png

 

 Make a Deny Firewall Policy with the source address as the address object which we created in step 1, and move the policy to the top of the list:

 

policy.PNG

 

If that MAC should be blocked from accessing specific interfaces (or if Interface Pair View mode should be preserved):
Make the firewall policy with the specific interfaces instead: 

 

mac block.PNG

 

Traffic is now blocked:

 

blocked.PNG

 

Note:

This works only if the MAC address is not getting changed in the path toward FortiGate or if the device is trying to access a service hosted by FortiGate (Web GUI, SSLVPN, etc.)

 

Related articles:
Technical Tip: How to control DHCP user via MAC address
Technical Note : Configuring MAC address filtering on a FortiGate - IP/MAC binding

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT