After an HTTP redirection profile is bound to a service policy, the captive portal function based on EDSG services is enabled. When users visit HTTP web pages matching service traffic, the service traffic is redirected to a specified page.
Procedure
- Run system-view
The system view is displayed.
- Configure a redirection profile.
- Run http-redirect-profile profile-name
An HTTP redirection profile is created.
- Run web-server url redirect-url
The destination link for user HTTP redirection is configured.
- (Optional) Run web-server redirect-limit limit-value [ limit-value | infinite ]
The number of times advertisements are forcibly pushed for an HTTP redirection profile is configured.
- Run quit
Return to the system view.
- Apply the redirection profile in the service policy view.
- Run service-police name police-name edsg
An EDSG service policy profile is created and the EDSG service policy profile view is displayed.
- Run either of the following command to bind the redirection profile to the service policy view.
- If users are required to be redirected to a specified page while visiting HTTP web pages matching service traffic, run the http-redirect-profile profile-name command to bind the redirection profile to the service policy view
- If the traffic matching the service needs to be redirected instantly after the service is activated, run the service force redirect redirect-profile-name command to bind the redirection profile to the service policy view.
- Run commit
The configuration is committed.