FortiProxy
FortiProxy provides enterprise-class protection against internet-borne threats and Advanced Web Content Caching
Rosalyn
Staff
Staff
Article Id 223928

Description

 

This article describes how to configure the traffic shaping on the web proxy interface to limit users traffic.

 

Scope

 

Fortiproxy v7.0

 

Solution

 

Here is the way, Create traffic shaper profile with class ID in the GUI

 

Rosalyn_0-1663320216681.png

 

To configure on CLI,

 

# config firewall shaping-profile

     edit "traffic_shaping"

         set default-class 2

         config classes

            edit "test1"

                set class-id 2

                set guaranteed-bandwidth 10

                set maximum-bandwidth 20

             next

             edit "test2"

                set class-id 3

                set priority medium

                set guaranteed-bandwidth 5

                set maximum-bandwidth 10

              next

          end

       next

    end

 

Configure Traffic shaping on the interface with Explicit web proxy enabling in the GUI

 

Rosalyn_1-1663320216688.png

 

To configure onCLI,

 

# config system interface

    edit "port2"

        set ip 10.211.1.110 255.255.252.0

        set allowaccess ping https ssh http telnet

        set type physical

        set explicit-web-proxy enable

        set inbandwidth 100000

        set outbandwidth 100000

        set egress-shaping-profile "traffic_shaping"

        set ingress-shaping-profile "traffic_shaping"

        set snmp-index 2

     next

   end

 

Speedtest result before traffic shaping applies

 

Rosalyn_2-1663320216691.png

 

Speedtest result after traffic shaping applies

 

Rosalyn_3-1663320216694.png

 

More info to create or edit a class, refer to

 

https://docs.fortinet.com/document/fortiproxy/7.0.0/administration-guide/270535/create-or-edit-a-cla...

 

Alternative way to configure Traffic shaping with Traffic shaping policy, refer to

 

https://docs.fortinet.com/document/fortiproxy/7.0.0/administration-guide/468147/traffic-shaping-poli...

Contributors