< Home

url (security policy rule view)

Function

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

The undo url command deletes a URL category condition in the security 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

Security policy rule view

Default Level

2: Configuration level

Usage Guidelines

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

When a user accesses the Internet, the FW can use a URL category as a matching condition to determine the matched security policy and whether to permit the traffic 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 security policy rule policy_security.

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