Configure a captive portal
By default, the switch provides one default captive portal. You can change the settings for the default captive portal. You can also add and configure up to nine additional portals.
To configure a captive portal instance:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select Security > Control > Captive Portal > CP Configuration.
The CP Configuration page displays.
- To do one of the following:
-
Change the default captive portal: Next to the CP ID field, select the 1 check box.
-
Add a new captive portal: From the CP ID menu, select an ID from 2 to 10.
-
Change a captive portal that you added before: Next to the CP ID field, select the check box that is associated with the captive portal.
-
- In the CP Name field, specify a name for the captive portal.
The name can be up to 31 alphanumeric characters.
- From the Admin Mode menu, select Enable or Disable.
This selection sets the administrative mode of the captive portal. By default, a captive portal is disabled.
- In the Protocol field, select HTTP or HTTPS used for communication with clients during the verification process:
-
HTTP: Does not use encryption during verification.
-
HTTPS: Uses the Secure Sockets Layer (SSL), which requires a certificate for encryption. The certificate is presented to the user at connection time.
-
- From the Verification menu, select the type of user authentication that the captive portal uses when a client attempt to connect:
-
Guest: No user authentication is required.
-
Local: The user is authenticated through the local database.
-
RADIUS: The user is authenticated through a RADIUS server.
-
- Select the block status, which is a way to quickly and temporarily control a captive portal during unexpected events, such as denial of service attacks:
-
Disable: The blocking function is disabled. You cannot quickly block the captive portal.
-
Enable: The captive portal is blocked.
-
Not Blocked: The captive portal is not blocked. The default is Not Blocked.
-
- From the Group menu, select an existing captive portal user group for the captive portal.
All users who belong to the group are permitted to access the network through the captive portal.
This option is available only if you select Local or RADIUS from the Verification menu.
- In the Idle Timeout field, enter the number of seconds that the switch waits before terminating an idle session and logging out the user.
The range is from 0 to 900 seconds. The default is 0 seconds, which means that the time-out is not enforced.
- From the User Logout menu, specify if an authenticated client can log out from the captive portal and network:
-
Enable: A user can deliberately log out from the captive portal and network.
-
Disable: A user cannot log out from the captive portal and network, causing the connection status to remain authenticated until the captive portal deauthenticates the user, for example because idle time-out or session time-out period is exceeded.
-
- If the verification mode is RADIUS (that is, you select RADIUS from the Verification menu), specify the IP address of the RADIUS server in the Radius Auth Server field.
- From the Redirect Mode menu, specify if newly authenticated clients are redirected to a URL:
-
Enable: Authenticated clients are redirected to a URL that you can specify in the Redirect URL field.
-
Disable: Authenticated clients are not redirected and the default locale “welcome” is used. The default is Disable.
-
- In the Redirect URL field, specify the URL to which newly authenticated clients must be redirected.
The maximum length for the URL is 512 alphanumeric characters. The default URL is http://<ipaddress>/v1/security/captive_portal/cp_welcome.html.
This option is available only if you select Enable from the Redirect Mode menu.
- In the Background Color field, specify the value of the background color.
The default color is #BFBFBF.
- In the Foreground Color field, specify the value of the foreground color.
The default color is #999999.
- In the Separator Color field, specify the value of the separator color.
The default color is #B70024.
- In the Max Bandwidth Down field, specify the maximum rate at which a client can receive data from the network.
The rate is in bytes per seconds. The range is from 0 to 536870911. The default is 0, which indicates that the limit is not enforced.
- In the Max Bandwidth Up field, specify the maximum rate at which a client can send data into the network.
The rate is in bytes per seconds. The range is from 0 to 536870911. The default is 0, which indicates that the limit is not enforced.
- In the Max Input field, specify the maximum number of octets that a client is allowed to receive.
After this limit is reached, the client is disconnected. The range is from 0 to 4294967295. The default is 0, which indicates that the limit is not enforced.
- In the Max Output field, specify the maximum number of octets that a client is allowed to transmit.
After this limit is reached, the client is disconnected. The range is from 0 to 4294967295. The default is 0, which indicates that the limit is not enforced.
- In the Max Total field, specify the maximum number of octets that a client is allowed to transfer, meaning the sum of octets transmitted and received.
After this limit is reached, the client is disconnected. The range is from 0 to 4294967295. The default is 0, which indicates that the limit is not enforced.
- Do one of the following:
-
If you are adding a new captive portal, click the Add button.
Your settings are saved. The captive portal is added.
-
If you are changing the default captive portal or a captive portal that you added before, click the Apply button.
Your settings are saved.
-
- To save the settings to the running configuration, click the Save icon.