< Home

portal redirect-http-port

Function

The portal redirect-http-port command configures a user-defined destination port number of HTTP packets that trigger Portal redirection.

The undo portal redirect-http-port command deletes a user-defined destination port number of HTTP packets that trigger Portal redirection.

By default, the device redirects users to the Portal authentication page only when their browsers send HTTP packets with the destination port number 80.

Only the S2720-EI, S5720-SI, S5720S-SI, S5720-LI, and S5720S-LI support this command.

Format

portal redirect-http-port port-number &<1-10>

undo portal redirect-http-port [ port-number &<1-10> ]

Parameters

Parameter Description Value

port-number &<1-10>

Specifies a user-defined destination port number of HTTP packets that trigger Portal redirection.

The value is an integer that ranges from 1024 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the device redirects users to the Portal authentication page only when their browsers send HTTP packets with the destination port number 80. If a user's browser has a web proxy server configured and the destination port number of HTTP packets is modified, the device discards HTTP packets from the user and does not redirect the user to the Portal authentication page. You can run the portal redirect-http-port command to configure a user-defined destination port number of HTTP packets that trigger Portal redirection. The device then redirects users to the Portal authentication page after receiving HTTP packets with the destination port number 80 or a user-defined destination port number.

Precautions

If a user's browser has a web proxy server configured, configure the Portal server address (configured on the device using the server-ip command) as an exception address on the user's browser, to prevent HTTP packets to the Portal server from being sent to the web proxy server.

If the specified destination port number is 65535, some browsers consider this port as an insecure port, resulting a redirection failure.

This command applies only when Portal authentication is performed on VLANIF interfaces and does not take effect in other scenarios.

Example

# Set the user-defined destination port number to 8080 for HTTP packets that trigger Portal redirection.

<HUAWEI> system-view
[HUAWEI] portal redirect-http-port 8080
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >