Created on
08-13-2024
05:55 AM
Edited on
03-10-2025
02:37 AM
By
Jean-Philippe_P
Description | This article describes how to block a particular user’s internet usage to control the bandwidth on a FortiGate firewall using a MAC address. This configuration can be useful in managing the needed network resources, in a way that will limit a certain device to a particular amount of bandwidth. |
Scope | FortiOS. |
Solution |
Prerequisites:
The process of Bandwidth Limiting can be described as follows:
In the CLI:
config firewall address
Step 2: Create a Traffic Shaper.
In the CLI:
config firewall shaper traffic-shaper edit "TEST" set guaranteed-bandwidth 10 next end
Step 3: Create the IPv4 Policy and Add the Traffic Shaper. Note: The Traffic Shaping option in the GUI over the corresponding IPv4 Policy will only appear after it has been configured via CLI. If it is not configured through the CLI first, it will not be visible in the GUI. Additionally, once the profile is removed from the CLI, this option will disappear from the GUI again.
In the CLI:
config firewall policy edit 1 set name "LAN-WAN" set traffic-shaper-reverse "TEST" next end
Step 4: Verify the Configuration. To ensure the configuration is working as expected, navigate to Policy & Object -> Traffic Shaping -> Traffic Shapers.
Verify the traffic matching traffic shapers and bandwidth usage or drops by session list as mentioned below: di sys session filter dst 51.158.1.21 di sys session list
Note: The address object configured with the 'mac' type cannot be used in the traffic shaper policy. Instead, this can be accomplished using an IPv4 policy, as outlined in the steps provided above. |
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.