Chapter 17 Captive Portal

 

 

Table 52 web-auth login setting Sub-commands (continued)

COMMAND

DESCRIPTION

[no] session-url <url>

Sets the session page’s URL; for example: http://192.168.1.1/session.cgi.

 

192.168.1.1 is the web server on which the web portal files are installed.

[no] welcome-url <url>

Sets the welcome page’s URL; for example: http://192.168.1.1/welcome.cgi.

 

192.168.1.1 is the web server on which the web portal files are installed

17.1.1.2 web-auth policy Sub-commands

The following table describes the sub-commands for several web-auth policy commands. Note that not all rule commands use all the sub-commands listed here.

Table 53 web-auth policy Sub-commands

COMMAND

DESCRIPTION

[no] activate

Activates the specified condition. The no command deactivates the

 

specified condition.

[no] authentication {force

Selects the authentication requirement for users with traffic matching

required}

this policy. The no command requires no user authentication.

 

force: Users need to be authenticated. The NXC automatically

 

displays the login screen if unauthenticated users try to send HTTP

 

traffic.

 

required: Users need to be authenticated. They must manually go to

 

the login screen. The NXC does not redirect them to the login screen.

[no] description description

Sets the description for the specified condition. The no command

 

clears the description.

 

description: You can use alphanumeric and ()+/:=?!*#@$_%-

 

characters, and it can be up to 61 characters long.

[no] destination

Sets the destination criteria for the specified condition. The no

address_object

command removes the destination criteria, making the condition

 

effective for all destinations.

 

 

[no] force

Forces users that match the specified condition to log into the NXC.

 

The no command means users matching the specified condition do not

 

have to log into the NXC.

[no] schedule schedule_name

Sets the time criteria for the specified condition. The no command

 

removes the time criteria, making the condition effective all the time.

[no] source address_object

Sets the source criteria for the specified condition. The no command

 

removes the source criteria, so all sources match the condition.

[no] ssid_profile

Sets the SSID profile criteria for the specified condition. The no

{ssid_profile}

command removes the SSID profile criteria.

show

Displays information about the specified condition.

17.1.1.3 Web Authentication Policy Insert Command Example

Here is an example of using a custom login page from an external web portal for web authentication. The following commands:

Turn on web authentication

Set the NXC to use the authentication profile named AuthProfile1

Set www.login.com as the login web page through which users authenticate their connections

Have the NXC use a custom login page from an external web portal instead of the default one built into the NXC

Create web-auth policy 1

 

115

NXC CLI Reference Guide