The portal-server redirect-key command enables redirection packets of the mandatory portal service to carry user MAC addresses.
The undo portal-server redirect-key command cancels the portal service and restores the default setting.
By default, the captive portal service is disabled in a domain.
This command is supported only on the NetEngine 8000 F1A.
portal-server redirect-key user-mac-address user-mac-address [ simple [ type1 ] | cipher { aes128 { cbc | gcm } | des } ]
undo portal-server [ redirect-key ]
undo portal-server redirect-key [ user-mac-address [ user-mac-address [ simple [ type1 ] ] ] ]
undo portal-server redirect-key user-mac-address user-mac-address cipher { aes128 [ cbc | gcm ] | des }
Parameter | Description | Value |
---|---|---|
user-mac-address user-mac-address |
Sets a portal value for user MAC addresses. |
The value is a string of 1 to 32 case-sensitive characters, spaces not supported. |
simple |
Indicates that the user MAC address carried in redirection packets is encapsulated in simple mode. |
- |
type1 |
Indicates that the delimiter of user MAC addresses is a colon (:). |
- |
cipher |
Indicates that the user MAC address carried in redirection packets is encapsulated in cipher mode. |
- |
aes128 |
Specifies that the user MAC address carried in redirection packets is encrypted in AES128 and to be transmitted in ciphertext. |
- |
cbc |
Specifies that the user MAC address carried in redirection packets is encrypted in AES128 and CBC mode and to be transmitted in ciphertext. |
- |
gcm |
Indicates that the MAC address carried in redirection packets is encrypted in AES128 and GCM mode and to be transmitted in ciphertext. |
- |
des |
Specifies that the user MAC address carried in redirection packets is encapsulated using the DES algorithm. The DES mode is insecure. Therefore, the GCM mode in AES128 mode is recommended. |
- |
redirect-key |
Indicates the keywords carried in redirection packets. |
- |
Usage Scenario
When a user accesses an external network for the first time, the NetEngine 8000 F redirects the access request to the specified server (normally the portal server of carriers). This operation is called mandatory portal. The Internet website that the user first accesses is one of the services of the website specified by carriers.
Precautions
In VS mode, this command is supported only by the admin VS.
If the portal-server redirect-key user-mac-address <user-mac-address> [ cipher aes128 { cbc | gcm } | des ] command, instead of the portal-serverurl-parametershared-key-cipher [ <shared-key-cipher> ] command, is run in the AAA domain view, redirection packets of the portal service do not carry MAC addresses. When users are forcibly redirected to the portal server, if you do not want the actual user MAC address to be displayed, run the portal-server redirect-key command with cipher configured. Then the user MAC address is displayed in ciphertext. Portal-server url-parameter shared-key-cipher command is used to generate the ciphertext user MAC address to be displayed.The default encryption mode for the keywords of user MAC addresses is AES-GCM-128. If you want the device to use the DES encryption mode, specify the des keyword in the portal-server redirect-key command,AES-GCM-128 is recommended, because DES is insecure. Specifies that only the first eight bytes of shared-key-cipher configured in portal-server url-parameter shared-key-cipher <shared-key-cipher> are used as the key for MAC address encryption when the DES algorithm is used.<HUAWEI> system-view [~HUAWEI] aaa [~HUAWEI-aaa] domain huawei [*HUAWEI-aaa-domain-huawei] commit [~HUAWEI-aaa-domain-huawei] portal-server redirect-key user-mac-address test cipher aes128 cbc