< Home

category action (URL filtering profile view)

Function

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.

Format

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

Parameters

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.

Views

URL filtering profile view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Set the action for the predefined category P2P to block in the URL filtering profile view.

<sysname> system-view
[sysname] profile type url-filter name profile_development
[sysname-profile-url-filter-profile_development] category pre-defined subcategory-id 101 action block
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >