web-redirect

Function

The web-redirect command forcibly redirects users in a domain to a URL.

The undo web-redirect command cancels the configuration.

By default, users in a domain are not forcibly redirected to a URL.

This command is supported only on the NetEngine 8000 F1A.

Format

web-redirect url-index url-index url-name

undo web-redirect url-index url-index

Parameters

Parameter Description Value
url-index url-index

Specifies the index of a URL.

The value is an integer ranging from 1 to 5.

url-name

Specifies the URL to which users are forcibly redirected. The URL can be a domain name or an IP address, such as 1.1.1.1, http://1.1.1.1, www.huawei.com, and http://www.huawei.com.

The value is a string of 1 to 200 characters.

Views

AAA domain view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

You can dynamically redirect users to a URL as required. For example, when a user is detected attacking the network, you can forcibly redirect the user to a URL. To be specific, you can configure indexes of different URLs in BOD so that attackers can be forcibly redirected to corresponding URLs. Currently, the triggering condition is that the policy server delivers BOD whose service ID is all Fs.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Forcibly redirect users in the current domain to 1.1.1.1, a URL whose index is 3.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] domain huawei
[*HUAWEI-aaa-domain-huawei] commit
[*HUAWEI-aaa-domain-huawei] web-redirect url-index 3 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >