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.
portal redirect-http-port port-number &<1-10>
undo portal redirect-http-port [ port-number &<1-10> ]
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. |
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.