< Home

portal https-redirect blacklist

Function

The portal https-redirect blacklist command adds an address to the HTTPS redirection blacklist. After an address is added to the HTTPS redirection blacklist, HTTPS redirection is not performed for HTTPS access to this address of Portal users.

The undo portal https-redirect blacklist command removes an address from the HTTPS redirection blacklist.

By default, no address is added to the HTTPS redirection blacklist.

Format

portal https-redirect blacklist ip start-ip-address [ end-ip-address ]

portal https-redirect blacklist ipv6 start-ipv6-address [ to end-ipv6-address ] (Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.)

undo portal https-redirect blacklist ip { start-ip-address [ end-ip-address ] | all }

undo portal https-redirect blacklist ipv6 { start-ipv6-address [ to end-ipv6-address ] | all } (Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S5735-L, S5735S-L, S5735S-L-M, S5735-S, S5735S-S, S5735-S-I, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support this command.)

Parameters

Parameter Description Value
ip start-ip-address [ end-ip-address ] Specifies an IPv4 address or an IPv4 address range:
  • start-ip-address specifies the start IPv4 address.
  • end-ip-address specifies the end IPv4 address.
-
ipv6 start-ipv6-address [ to end-ipv6-address ] Specifies an IPv6 address or an IPv6 address range:
  • start-ipv6-address specifies the start IPv6 address.
  • end-ipv6-address specifies the end IPv6 address.
-
all

Removes all IPv4 addresses or IPv6 addresses from the HTTPS redirection blacklist.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Before users pass Portal authentication, HTTPS access to a website other than the Portal server triggers HTTPS redirection by default. To disable HTTPS redirection for HTTPS access to a specified address, run the portal https-redirect blacklist command to add this address to the HTTPS redirection blacklist.

Precautions

If an address has been added to the HTTPS redirection whitelist using the portal https-redirect whitelist command, this address cannot be added to the HTTPS redirection blacklist.

If an address (except the address of the Portal server) is not in the HTTPS redirection blacklist, HTTPS access to this address will always trigger HTTPS redirection before users pass Portal authentication.

Example

# Add 10.1.1.1 to the HTTPS redirection blacklist.

<HUAWEI> system-view
[HUAWEI] portal https-redirect blacklist ip 10.1.1.1
# Add FC00::1 to the HTTPS redirection blacklist.
<HUAWEI> system-view
[HUAWEI] portal https-redirect blacklist ipv6 FC00::1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >