Skip to main content
raureada
Staff
Staff
Jun 9, 2024 7:49 PM UTC

Technical Tip: Limit bandwidth usage for a specific user

  • Apr 16, 2026 12:08 PM UTC
  • 0 replies
  • 4627 views
  • Translate All
Description This article describes how to limit bandwidth usage for a specific user.
Scope FortiGate.
Solution

The following is a step-by-step guide on how to limit bandwidth usage for specific users:

  1. Create address objects under Policy & Objects -> Addresses.

 

ts1.JPG

 

Example in the CLI: 

 

config firewall address
    edit "Normal User"
        set subnet 10.119.0.2 255.255.255.255
    next
    edit "Priority User"
        set subnet 10.119.0.3 255.255.255.255
    next
end

 

  1. Create  Per-IP Traffic Shapers. Go to Policy & Objects -> Traffic Shaping -> Traffic Shaper -> Create New.

 

ts2.JPG

 

Example in the CLI: 

 

config firewall shaper per-ip-shaper
    edit "Normal User"
        set max-bandwidth 5
        set bandwidth-unit mbps
    next
    edit "Priority User"
        set max-bandwidth 100
        set bandwidth-unit mbps
    next
end


For FortiOS 7.0 and above, change the view to 'Per-IP' and Create a New traffic shaper.

Capture.PNG

 

  1. Create Shaping Policies. Go to Policy & Objects -> Traffic Shaping -> Traffic Shaping Policy -> Create New.

ts3.JPG

 

Example in the CLI: 

 

config firewall shaping-policy
    edit 1
        set name "Normal User"
        set service "ALL"
        set dstintf "port1"
        set per-ip-shaper "Normal User"
        set srcaddr "Normal User"
        set dstaddr "all"
    next
    edit 2
        set name "Priority User"
        set service "ALL"
        set dstintf "port1"
        set per-ip-shaper "Priority User"
        set srcaddr "Priority User"
        set dstaddr "all"
    next
end

 

  1. Based on this configuration, a normal user should be limited to 5Mbps and a priority user should be limited to 100Mbps.

 

Normal user test results:

ts4.JPG

 

Priority user test results:

 

ts5.JPG

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024