For certain types of URL packets, the device can change the DSCP values in the packets, so that other network devices can distinguish between the packets based on the changed DSCP values and take a specified action on each URL category.
To meet the preceding requirements, configure the FW as follows.
The configuration does not take effect immediately after you create or modify the profile. You must click Commit on the upper right of the interface to apply the configuration. To save time, you can commit the configuration after all operations on the profile are complete.
profile type url-filter name name
category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action { allow | alert | block | qos remark dscp dscp-value }
The new or modified security profile does not take effect until you run the engine configuration commit command to commit the configuration. To save time, you can submit the configuration after all operations on the profile are complete.
Set the action of education/science and search/portal websites to Allow, and re-mark the priorities of HTTP packets of education/science websites to 38 (AF43) and the priorities of the HTTP packets of search/portal websites to CS5 (40).
<sysname> system-view [sysname] profile type url-filter name url_profile_01 [sysname-profile-url-filter-url_profile_01] category pre-defined category-id 15 action allow [sysname-profile-url-filter-url_profile_01] category pre-defined category-id 17 action allow [sysname-profile-url-filter-url_profile_01] category pre-defined category-id 15 action qos remark dscp cs5 [sysname-profile-url-filter-url_profile_01] category pre-defined category-id 17 action qos remark dscp af43