Use this command to define the appearance and flow of Web pages requesting clients encounter when accessing a controller, service platform, or access point managed captive portal. Define whether the Web pages are maintained locally or externally to the managing device as well as messages displayed requesting clients.
Configures Web pages displayed when interacting with a captive portal. There are six (6) different pages.
acknowledgment – This page displays details for the user to acknowledge.
agreement – This page displays “Terms and Conditions” that a user accepts before allowed access to the captive portal.
fail – This page is displayed when the user is not authenticated.
login – This page is displayed when the user connects to the captive portal. It fetches login credentials from the user.
no-service – This page is displayed when a captive portal user is unable to access the captive portal due unavailability of critical services.
welcome – This page is displayed to welcome an authenticated user to the captive portal.
These Web pages, which interact with captive portal users, can be located either on the controller or an external location.
webpage [external|internal]
webpage external [acknowledgment|agreement|fail|login {post}|no-service| registration|welcome] <URL>
webpage internal [acknowledgment|agreement|fail|login|no-service|org-name|org-signature| registration|welcome]
webpage internal [acknowledgment|agreement|fail|login|no-service|registration|welcome] [description|footer|header|title] <CONTENT>
webpage internal [acknowledgment|agreement|fail|login|no-service|registration|welcome] [body-background-color|body-font-color|org-background-color|org-font-color] <WORD>
webpage internal [acknowledgment|agreement|fail|login|no-service|registration|welcome] [main-logo use-as-banner|small-logo] <URL>
webpage internal registration field [age-range|city|country|custom|disclaimer|dob| email|gender|member|mobile|name|optout|street|via-email|via-sms|zip] type [checkbox|date| dropdown-menu|e-address|number|radio-button|text] enable {label <LINE>|mandatory|title <LINE>|placeholder <LINE>}
webpage internal welcome use-external-success-url
webpage internal [org-name|org-signature] <LINE>
webpage external [acknowledgment|agreement|fail|login {post}|no-service| registration|welcome] <URL>
external |
Indicates Web pages being served are hosted on an external (to the captive portal) server resource |
acknowledgment |
Indicates the page is displayed for user acknowledgment of details. Users are redirected to this page to acknowledge information provided. |
agreement |
Indicates the page is displayed for “Terms & Conditions” The agreement page provides conditions that must be agreed to before captive portal access is permitted. |
fail |
Indicates the page is displayed for login failure The fail page asserts authentication attempt has failed, the user is not allowed to access the Internet (using this captive portal) and must provide the correct login information again to access the Internet. |
login {post} |
Indicates the page is displayed for getting user credentials. This page is displayed by default.
The login page prompts the user for a username and password to access the captive portal and proceed to either the agreement page (if used) or the welcome page. |
no-service |
Indicates the page is displayed when certain critical services are unavailable and the user fails to access the captive portal. The no-service page asserts the captive portal service is temporarily unavailable due to technical reasons. Once the services become available, the captive portal user is automatically connected back to the services available through the captive portal. The possible scenarios are:
To provide this service, enable the following:
For more information on enabling these critical resource monitoring, see service. |
registration | Indicates the page is displayed when users are
redirected to a Web page where they have to register in the captive portal‘s
database. Guest users are redirected to an internally (or) externally hosted registration page (registration.html) upon association to a captive portal SSID, where previously, not-registered guest users can register. |
welcome |
Indicates the page is displayed after a user has been successfully authenticated The welcome page asserts a user has logged in successfully and can access the captive portal. |
<URL> |
Indicates the URL to the Web page displayed. Query String: URL can include query tags. Supported Query Tags are: 'WING_TAG_CLIENT_IP' - Captive portal client IPv4 address 'WING_TAG_CLIENT_MAC' - Captive portal client MAC address 'WING_TAG_WLAN_SSID ' - Captive portal client WLAN ssid 'WING_TAG_AP_MAC' - Captive portal client AP MAC address 'WING_TAG_AP_NAME' - Captive portal client AP Name 'WING_TAG_RF_DOMAIN' - Captive portal client RF Domain 'WING_TAG_CP_SERVER' - Captive portal server address 'WING_TAG_USERNAME' - Captive portal authentication username Example: http://cportal.com/policy/login.html?client_ip=WING_TAG_CLIENT_IP&ap_m c=WING_TAG_AP_MAC. Use '&' or '?' character to separate field-value pair. Enter 'ctrl-v' followed by '?' to configure query string |
webpage internal [acknowledgment|agreement|fail|login|no-service|registration|welcome] [description|footer|header|title] <CONTENT>
internal |
Indicates the Web pages are hosted on an internal server resource. This is the default setting. |
acknowledgment |
Indicates the Web page is displayed for users to acknowledge the information provided |
agreement |
Indicates the page is displayed for “Terms & Conditions” |
fail |
Indicates the page is displayed for login failure |
login |
Indicates the page is displayed for entering user credentials |
no-service |
Indicates the page is displayed when certain critical services are unavailable and the user fails to access the captive portal. The possible scenarios are:
To provide this service, enable the following:
For more information on enabling these critical resource monitoring, see service. |
registration | Indicates the page is displayed when users are
redirected to a Web page where they have to register in the captive portal‘s
database Guest users are redirected to an internally (or) externally hosted registration page (registration.html) upon association to a captive portal SSID, where previously, not-registered guest users can register. |
welcome |
Indicates the page is displayed after a user has been successfully authenticated |
description |
Indicates the content is the description portion of each of the following internal Web pages: acknowledgment, agreement, fail, login, no-service, and welcome |
footer |
Indicates the content is the footer portion of each of the following internal Web pages: acknowledgment, agreement, fail, no-service, registration, and welcome page. The footer portion contains the signature of the organization that hosts the captive portal. |
header |
Indicates the content is the header portion of each of the following internal Web pages: acknowledgment, agreement, fail, no-service, and welcome page. The header portion contains the heading information for each of these pages. |
title |
Indicates the content is the title of each of the following internal Web pages: acknowledgment, agreement, fail, no-service, and welcome page. The title for each of these pages is configured here. |
<CONTENT> |
The following keyword is common to all of the above internal Web page options:
|
webpage internal [acknowledgment|agreement|fail|login|no-service|registration|welcome] [main-logo use-as-banner|small-logo] <URL>
internal |
Indicates the Web pages are hosted on an internal server resource |
acknowledgment |
Indicates the Web page is displayed for users to acknowledge the information provided |
agreement |
Indicates the page is displayed for “Terms & Conditions” |
fail |
Indicates the page is displayed for login failure |
login |
Indicates the page is displayed for user credentials |
no-service |
Indicates the page is displayed when certain critical services are unavailable and the user fails to access the captive portal. The possible scenarios are:
To provide this service, enable the following:
For more information on enabling these critical resource monitoring, see service. |
registration | Indicates the page displayed is the registration
page to which users are redirected in order to register in the captive
portal‘s database Guest users are redirected to an internally (or) externally hosted registration page (registration.html) upon association to a captive portal SSID, where previously, not-registered guest users can register. |
welcome |
Indicates the page is displayed after a user has been successfully authenticated |
main-logo use-as-banner |
The following keyword is common to all of the above internal Web page options:
|
small-logo |
The following keyword is common to all of the above internal Web page options:
|
<URL> |
This parameter is common to the ‘main-logo‘ and
‘small-logo‘ keywords and provides the complete URL from where the main-logo
and small-logo files are loaded and subsequently cached on the system.
|
webpage internal registration field [age-range|city|country|custom|disclaimer| dob|email|gender|member|mobile|name|optout|street|via-email|via-sms|zip] type [checkbox|date|dropdown-menu|e-address|number|radio-button|text] enable {label <LINE>|mandatory|title <LINE>|placeholder <LINE>}
internal |
Indicates the Web pages are hosted on an internal server resource |
registration | Allows you to customize the user registration
page. Select this option if the captive-portal‘s access-type is set to
registration. Use the field and type options to define the input fields (for
example, age-range, city, email, etc.) and the field type (for example,
text, checkbox, dropdown-menu, radio-button, etc.) Guest users are redirected to an internally (or) externally hosted registration page (registration.html) upon association to a captive portal SSID, where previously, not-registered guest users can register. If the registration Web page is not customized, the built-in, default registration page is displayed to the client. |
field [age-range| city|country|custom| disclaimer| dob|email|gender|member| mobile|name|optout| street|via-email|via-sms| zip] | Configures the captive portal‘s registration page
fields Following are the available fields and the field type for
each:
|
type [checkbox|date| dropdown-menu|e-address|number| radio-button|text] | After specifying the field, configure the field
type. The options displayed depend on the field selected in the previous
step. These options are: checkbox, date, dropdown-menu, e-address, number,
radio-button, and text.
Some of the fields can have more than one field type options. For example, the field ‘zip‘ can either be a numerical field or a text. Select the one best suited for your captive-portal. |
enable {label <LINE>| mandatory| title <LINE>| placeholder <LINE>} | Enables the field. When enabled, the field is
displayed on the registration page. After enabling the field, optionally
configure the following parameters:
|
webpage internal welcome use-external-success-url
internal |
Indicates the Web pages are hosted on an internal server resource |
welcome |
Indicates the page is displayed after a user has been successfully authenticated |
use-external-success-url | When configured, redirects the user, on
successful authentication, to an externally hosted success URL from the
locally-hosted landing page. Use the command to specify the location of the Welcome page. |
webpage internal [org-name|org-signature] <LINE>
internal |
Indicates the Web pages are hosted on an internal server resource |
org-name |
Specifies the company‘s name, included on Web pages along with the main image |
org-signature |
Specifies the company‘s signature information, included in the bottom of Web pages along with a small image |
<LINE> |
Specify the company‘s name or signature depending on the option selected. |
nx9500-6C8809(config-captive-portal-guest)#webpage external welcome http://192.168.9.46/welcome.html
nx9500-6C8809(config-captive-portal-guest)#show context captive-portal guest webpage external welcome http://192.168.9.46/welcome.html nx9500-6C8809(config-captive-portal-guest)#
nx9500-6C8809(config-captive-portal-register)#webpage internal registration field age-range type dropdown-menu enable mandatory title 10-20,20-30,30-40,50-60,60-70
nx9500-6C8809(config-captive-portal-register)#show context include-factory | include age-range webpage internal registration field age-range type dropdown-menu enable mandatory label "Age Range" title "10-20,20-30,30-40,50-60,60-70" nx9500-6C8809(config-captive-portal-register)#
In the following examples, the background and font colors have been customized for the captive portal‘s login page. Similar customizations can be applied to the acknowledgement, agreement, fail, welcome, no-service, and registration captive portal pages.
nx9500-6C88099(config-captive-portal-cap-enhanced-policy)#webpage internal login
body-background-color #E7F0EB
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#webpage internal login
body-font-color #EF68A7
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#webpage internal login
org-background-color #EFE4E9
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#webpage internal login
org-font-color #BA4A21
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#show context captive-portal cap-enhanced-policy webpage internal login org-background-color #EFE4E9 webpage internal login org-font-color #BA4A21 webpage internal login body-background-color #E7F0EB webpage internal login body-font-color #EF68A7 nx9500-6C8809(config-captive-portal-ca-enhanced-policy)#
The following examples configure a scenario where a successfully authenticated user is redirected to an externally hosted Welcome page from the internal landing page.
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#webpage external welcome http://192.168.13.10/WelcomePage.html
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#webpage internal welcome use-external-success-url
nx9500-6C8809(config-captive-portal-cap-enhanced-policy)#show context captive-portal cap-enhanced-policy webpage external welcome http://192.168.13.10/WelcomePage.html webpage internal acknowledgement org-background-color #33ff88 webpage internal acknowledgement org-font-color #bb6622 webpage internal acknowledgement body-background-color #22aa11 webpage internal acknowledgement body-font-color #bb6622 webpage internal welcome use-external-success-url nx9500-6C8809(config-captive-portal-ca-enhanced-policy)#
no |
Resets or disables captive portal configurations |