FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Umer221
Staff
Staff
Article Id 398472
Description This article explains how to block a device from obtaining a DHCP lease on a FortiGate by using its MAC address in the IP address assignment rules under the DHCP server settings.
Scope FortiGate
Solution
  1. Navigate to the DHCP server settings on the desired interface: Go to Network -> Interface, then select Edit on the interface where DHCP is enabled.
  2. Expand advanced DHCP settings: Scroll down to the DHCP Server Settings section and expand the Advanced Settings.
  3. Add a new IP address assignment rule: Select Create New under the IP Address Assignment Rules section.

 

IP Assignment.jpg

  

  1. Configure the MAC-based blocking rule:
  • Under Type, select MAC Address.

  • In the MAC address field, enter the MAC address of the device to be blocked.

  • Under Action type, select Block.

  • Select OK to save the rule.

 

DHCP Block.jpg

 

This is how it should look after creating a new IP address assignment rule to block a device using its MAC address:

 

Assigned.png

Using CLI:

DHCP CLI.jpg


Once this rule is created, the device with the specified MAC address will be blocked from obtaining any DHCP lease from the FortiGate DHCP server. This method helps prevent unauthorized or unknown devices from joining the network via automatic IP address assignment.

 

DHCP debugging can be performed for troubleshooting:

 

diagnose debug reset
diagnose debug console timestamp enable
diagnose debug app dhcps -1
diagnose debug enable

 

To stop the debug:

 

diagnose debug reset

diagnose debug disable