Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring Captive Portal Authentication (CLI Procedure)

Configure captive portal authentication (hereafter referred to as captive portal) on an EX Series switch so that users connected to the switch are authenticated before being allowed to access the network. When the user requests a webpage, a login page is displayed that requires the user to input a username and password. Upon successful authentication, the user is allowed to continue with the original page request and subsequent access to the network.

Before you begin, be sure you have:

This topic includes the following tasks:

Configuring Secure Access for Captive Portal

To configure secure access for captive portal:

  1. Enable HTTP access on the switch:
    [edit]
    user@switch# set system services web-management http
  2. Associate the security certificate with the Web server and enable HTTPS access on the switch:
    [edit]
    user@switch# set system services web-management https local-certificate my-signed-cert

    Note: You can enable HTTP without HTTPS, but we recommend HTTPS for security purposes.

  3. Configure captive portal to use HTTPS:
    [edit]
    user@switch# set services captive-portal secure-authentication https

Enabling an Interface for Captive Portal

To enable an interface for captive portal:

[edit]
user@switch# set services captive-portal interface interface-name

For example, to enable captive portal on the interface ge-0/0/10:

[edit]
user@switch# set services captive-portal interface ge-0/0/10

Configuring Bypass of Captive Portal Authentication

To allow specific clients to bypass captive portal:

[edit]
user@switch# set ethernet-switching-options authentication-whitelist mac-address

For example, to allow specific clients to bypass captive portal:

[edit]
user@switch# set ethernet-switching-options authentication-whitelist 00:10:12:e0:28:22

Note: Optionally, you can use set ethernet-switching-options authentication-whitelist 00:10:12:e0:28:22 interface ge-0/0/10.0 to limit the scope to the interface.

Note: If the client is already attached to the switch, you must clear its MAC address from the captive portal authentication by using the clear captive-portal mac-address mac-address command after adding its MAC address to the whitelist. Otherwise the new entry for the MAC address will not be added to the Ethernet switching table and authentication bypass will not be allowed.

Published: 2014-04-23