Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

captive-portal

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
captive-portal {
    authentication-profile-name authentication-profile-name
    custom-options {
        banner-message string;
        footer-bgcolor color;
        footer-message string;
        footer-text-color color;
        form-header-bgcolor color;
        form-header-message string;
        form-header-text-color color;
        form-reset-label label name;
        form-submit-label label name;
        header-bgcolor color;
        header-logo filename;
        header-message string;
        header-text-color color;
        post-authentication-url url-string;
    }
    interface (all | [interface-names]) {
        quiet-period seconds;
        retries number-of-retries;
        server-timeout seconds;
        session-expiry seconds;
        supplicant (multiple | single | single-secure);
        user-keepalive minutes;
    }
    secure-authentication (http | https);
}

Hierarchy Level

content_copy zoom_out_map
[edit services]

Description

Configure captive portal to authenticate clients connected to the switch for access to the network.

Default

Captive portal is disabled.

Options

authentication-profile-name access-profile-name

Specify the name of the access profile to be used for captive portal authentication. You configure the access profile at the [edit access profile] hierarchy level. The access profile contains the RADIUS server IP address and other information used for authentication.

  • Default: No access profile is specified.

secure-authentication (http | https)

Enable HTTP or HTTPS access on the captive portal interface.

  • Default: http

  • Values: Specify one of the following:

    • http—Enables HTTP access on the captive portal interface.

    • https—Enables HTTPS access on the captive portal interface. HTTPS is recommended.

The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 10.1.

user-keepalive introduced in Junos OS Release 16.1 for EX Series switches.

footer-navigation