Configuring a portal Web server

The device supports multiple portal Web servers.

Perform this task to configure the following portal Web server parameters:

To configure a portal Web server:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a portal Web server and enter its view.

portal web-server server-name

By default, no portal Web servers exist.

3. Specify the VPN instance to which the portal Web server belongs.

vpn-instance vpn-instance-name

By default, the portal Web server belongs to the public network.

4. Specify the URL of the portal Web server.

url url-string

By default, no URL is specified.

5. Configure the parameters to be carried in the URL when the device redirects it to users.

url-parameter param-name { nas-id | nas-port-id | original-url | source-address | ssid | { ap-mac | source-mac } [ encryption { aes | des } key { cipher | simple } string ] | value expression }

By default, no redirection URL parameters are configured.

6. (Optional.) Specify the portal Web server type.

server-type imc

By default, the portal Web server type is IMC.

7. (Optional.) Enable the captive-pass feature.

captive-bypass [ optimize ] enable

By default, the captive-bypass feature is disabled. The device automatically pushes the portal authentication page to the iOS devices and some Android devices when they are connected to the network.

8. (Optional.) Configure a match rule for URL redirection.

if-match { original-url url-string redirect-url url-string [ url-param-encryption { aes | des } key { cipher | simple } string ] | user-agent string redirect-url url-string }

By default, no URL redirection match rules exist.