< Home

category action (DNS filtering profile view)

Function

The category action command specifies the action for a DNS category.

The undo category action command restores the default action for a DNS category, which is allow.

Format

category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action { allow | alert | block }

undo category { pre-defined [ category-id category-id | subcategory-id subcategory-id ] | user-defined [ name category-name ] } action

Parameters

Parameter Description Value
category-id Specifies the ID of a predefined DNS category. The value is an integer ranging from 1 to 100.
subcategory-id Specifies the ID of a predefined DNS subcategory. The value is an integer ranging from 101 to 60000.
category-name Specifies the name of a user-defined DNS category. The DNS category has been configured.
allow Sets the category action to allow. -
block Sets the category action to block and records DNS filtering logs. -
alert Sets the category action to alert and records DNS filtering logs. -

Views

DNS filtering profile view

Default Level

2: Configuration level

Usage Guidelines

You can run the display profile type dns-filter command to display the subcategory-id of a specified predefined DNS category.

Example

# Set the action of predefined category P2P to block in the DNS filtering profile view.

<sysname> system-view
[sysname] profile type dns-filter name profile_development
[sysname-profile-dns-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 >