(Optional) Configuring Web Push
Context
- URL: pushes the URL corresponding to the web page.
- URL template: pushes the URL template. A URL template must be created. The URL template contains the URL of the pushed web page and URL parameters.
For a user who goes online through the X series cards, the forcible push function takes effect only for the first HTTP or HTTPS packet received from the user. If an application program that actively sends HTTP or HTTPS packets is installed on the user terminal, the terminal has sent the HTTP or HTTPS packet before the user accesses a web page. Therefore, the user is unaware of the web page push process.
The forcible push function takes effect only when a redirection ACL is configured for users who go online from cards excluding the X series cards. If a redirection ACL exists in the user table, a web page is forcibly pushed when HTTP packets from users match the redirection ACL rule. Usually, you can configure the RADIUS server to authorize the Huawei extended RADIUS attribute HW-Redirect-ACL to users for redirection ACL implementation, or run the redirect-acl command to configure a redirection ACL.
Procedure
- Configure the URL template.
- Run the system-view command to enter the system view.
- Run the url-template
name template-name command to create a URL template
and enter the URL template view.
By default, no URL template exists on the device.
- Run the url [ push-only ] url-string command to configure the redirection URL corresponding to the Portal server.
- Run the url-parameter { redirect-url redirect-url-value | sysname sysname-value | user-ipaddress user-ipaddress-value | user-mac user-mac-value | login-url url-key url } * command to set the parameters
carried in the URL.
By default, a URL does not carry parameters.
- Run the url-parameter mac-address
format delimiter delimiter { normal | compact } command to set the MAC address format in the
URL.
By default, the MAC address format in a URL is XXXXXXXXXXXX.
- Run the parameter { start-mark parameter-value | assignment-mark parameter-value | isolate-mark parameter-value } * command to set the characters in the URL.
By default, the start character is ?, assignment character is =, and delimiter is &.
- Run the quit command to return to the system view.
NOTE:
If web pages are pushed in URL mode, this step can be skipped.
- Configure the Web push function.
- Run the aaa command to enter the AAA view.
- Run the domain domain-name command to
create an AAA domain and enter the AAA domain view.
The device has two default domains: default and default_admin. The default domain is used by common access users and the default_admin domain is used by administrators.
- Run the force-push { url-template template-name | url url-address } command to enable the forcible URL template or URL push function.