set policy captive-portal web-redirect (S-, K-Series)

Use this command to configure and enable or disable a web-redirect server configuration.

Syntax

set policy captive-portal web-redirect redirect-index server server-id http://ipaddress:port/path {enable | disable}

Parameters

redirect-index Specifies the web-redirect index value associated with the policy profile.
server server-id Specifies the server associated with this web-redirect configuration.
http://ipaddress:port/
path Specifies the absolute server address associated with this web-redirect configuration.
enable | disable Enables or disables the web-redirect configuration.

Defaults

None.

Mode

All command modes.

Usage

The captive portal policy feature uses HTTP redirection to force a client‘s web browser to be redirected to a particular administrative web page. This command provides for the association of the server on which the redirected web page resides with a web-redirect index. The web-redirect index is associated with a given policy profile using the web-redirect option when configuring the policy profile (See set policy profile). The absolute server address must begin with http://, specify an IPv4 address and TCP port delineated by a colon, followed by a path that must have at least a single backslash (/).

Example

This example enables WEB index 1 to redirect a client‘s web browser to IP address 11.11.11.1 and port of 1234 on server 1:

System(rw)->set policy captive-portal web-redirect 2 server 1 url http                                        ://10.52.3.103:80/ status enable
System(rw)->