Skip to main content
zazry
New Member
May 4, 2018
Question

Traffic Shaping for chosen Policy

  • May 4, 2018
  • 1 reply
  • 3440 views

Hi,

 

I'm new here and just learning on the product Fortigate 60E. My goal is to create a policy for mobile/tablets to control the website user access and do traffic shaping in order to control the bandwidth usage. How do you create traffic shaper and link to that policy? Is there any way to create traffic shaper and link to specific policy?

 

Zazry

    1 reply

    sw2090
    SuperUser
    SuperUser
    August 9, 2018

    You can create traffic shapers via the gui in "Policy&Objects" => "Traffic Shapers". 

    Unfortunately Fortinet removed the gui options to link a shaper to a policy in FortiOS 5.4. 

    Fortunately those are still available on cli.

    So create your shapers in gui and then edit your policy in cli and add them to the policy.

     

    In older FortiOSes it was possible to add a shaper to a policy in gui but not in 5.4 or higher.

     

    Cli woud be like:

     

    config system policy

    edit <id> (you have to add this column to see it in gui - what is shown by default in gui is not the id!)

    set traffic-shaper "<the name you gave the shaper>" (for a forward shaper)

    set traffic-shaper-reverse "<the name you gave the shaper>" (for a reverse shaper)

    next

    end

     

    BTW: once you added the shapers in cli they do reappear in gui in your pollicy ;)

     

    hth

    Sebastian

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!