Technical Tip: Configuring user-based traffic usage quotas with Web Filter
| Description | This article explains how to configure per-user traffic usage quotas on the FortiGate using a Web-Filter profile. |
| Scope | FortiGate. |
| Solution | This article assumes an example configuration, where the WAN IP is 41.1.12.112/32 and the Internal IP is 172.16.3.0/24.
Create a web filter profile
Create a proxy-based web filter profile similar to the following, allocating the desired usage quota:
To configure Web Filte profile in the CLI:
config webfilter profile edit "bandwidth_capping" set feature-set proxy config ftgd-wf config quota edit 1 set category g01 g02 g04 g05 g06 g07 g21 140 141 set type traffic set unit MB set value 10000 next end end next end
Note: To select a category under 'Category Usage Quota', that category must be set to 'Monitor' under 'FortiGuard Category Based Filter'.
Next, apply the web filter policy during the creation of a firewall policy as described in Technical Tip: User based policy not working.
If configured correctly, user-based traffic usage quota will be applied. Users will need to log in to use the network, allowing the cap to take effect. |





