< Home

url (traffic policy rule view)

Function

The url command configures a URL category condition in the traffic policy rule view.

The undo url command deletes a URL category condition in the traffic policy rule view.

Format

url { pre-defined { category { name category-name | category-id } | sub-category { name sub-category-name | sub-category-id } } | user-defined sub-category sub-category-name | any }

undo url { pre-defined { category { name category-name | category-id } | sub-category { name sub-category-name | sub-category-id } } | user-defined sub-category sub-category-name | all }

Parameters

Parameter Description Value
pre-defined

Indicates a predefined URL category.

-

user-defined

Indicates a user-defined URL category.

-

category

Indicates a URL category.

-

name category-name

Specifies the name of a URL category.

The value must be the name of an existing URL category.

category-id

Specifies the ID of a URL category.

The value must be the ID of an existing URL category.

sub-category

Indicates a URL sub-category.

-

name sub-category-name

Specifies the name of a URL sub-category.

The value must be the name of an existing URL sub-category.

sub-category-id

Specifies the ID of a URL sub-category.

The value must be the ID of an existing URL sub-category.

any

Indicates any URL category.

-

all

Indicates all URL categories.

-

Views

Traffic policy rule view

Default Level

2: Configuration level

Usage Guidelines

This command configures a URL category matching condition in the traffic policy rule view.

When a user accesses the Internet, the FW can use a URL category as a matching condition to determine the matched traffic policy and whether to perform bandwidth management based on the action specified in the policy.

URL categories are classified into predefined and user-defined ones. You can use predefined categories or run the url-filter category user-defined name command to create user-defined categories.

Example

# Add a predefined URL category condition Download for traffic policy rule policy_traffic.

<sysname> system-view
[sysname] traffic-policy
[sysname-policy-traffic] rule name policy_traffic
[sysname-policy-traffic-rule-policy_traffic] url pre-defined category name Download
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >