The category action command specifies the action for a URL category.
The undo category action command specifies the default action for a URL category to allow.
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 }
undo category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action
| Parameter | Description | Value |
|---|---|---|
category-id category-id |
Specifies the ID of a predefined URL category. |
The value is an integer ranging from 1 to 100. |
subcategory-id subcategory-id |
Specifies the ID of a predefined URL subcategory. |
The value is an integer ranging from 101 to 60000. |
user-defined |
Indicates user-defined URL category. |
- |
name category-name |
Specifies the name of a user-defined URL category. |
The URL category has been configured. |
action |
Indicates category action. |
- |
allow |
Sets the category action to allow. |
- |
block |
Sets the category action to block. |
- |
alert |
Sets the category action to alert and records URL filtering logs. |
- |
qos remark dscp dscp-value |
Specifies a DSCP value. |
The value can be an integer ranging from 0 to 63. The value can also be: ef, af11, af12, af13, af21, af22, af23, af31, af32, af33, af41, af42, af43, cs1, cs2, cs3, cs4, cs5, cs6, cs7 or default. |
If you set qos remark dscp dscp-value, the action for the category is allow and the DSCP value of the traffic is changed to dscp-value.
Run the display url-filter category pre-defined command to display the subcategory-id of the specified predefined URL category.