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
Juniper BNG CUPS User Guide
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

services (Captive Portal Content Delivery)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
services {
    ...
    captive-portal-content-delivery {
        auto-deactivate value;
        profile name
            cpcd-rule-sets rule-set-name;
            cpcd-rules rule-name;
            dynamic;
            http-redirect-options url;
            ipda-rewrite-options {
                destination-address destination-address;
                destination-port destination-port;
            }
        }
        rule rule-name {
            match-direction (input | output | input-output);
            from {
                destination-address address <except>;
            }
            term term-name {
                then {
                    accept;
                    insert tag tag-name tag-value tag-value;
                    redirect url;
                    rewrite destination-address address <destination-port port-number>;
                    syslog;
                }
            }
        }
        rule-set rule-set-name {
            [rule rule-name];
        }
        traceoptions {
            file <filename> <files files> <match match> <size size> <(world-readable | no-world-readable)>;
            flag name;
            no-remote-trace no-remote-trace;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit],
[edit dynamic-profiles profile-name]

Description

Define the captive portal content delivery set of the rules statements to be applied to traffic. Use the statement at the [edit services...] hierarchy level for static CPCD. Use the statement at the [edit dynamic-profiles profile-name services...] hierarchy level for converged services CPCD.

The profile, rule-set, and traceoptions stanzas are not supported at the [edit dynamic-profiles profile-name hierarchy level].

Configure the HTTP redirect service by specifying the location to which a subscriber's initial Web browser session is redirected, enabling initial provisioning and service selection for the subscriber. Use the statement at the [edit services...] hierarchy level for static CPCD. Use the statement at the [edit dynamic-profiles profile-name services...] hierarchy level for converged services CPCD.

The profile, rule-set, and traceoptions stanzas are not supported at the [edit dynamic-profiles profile-name hierarchy level].

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

Options

auto-deactivate value

(Optional) Specify one of the following values to determine whether the redirect service is removed automatically when the router receives the subscriber’s initial HTTP-GET message:

  • user-defined-variable—To use this option in a dynamic profile, you must create a user-defined variable with a name of your choice. The value of the variable can be supplied by the RADIUS server or PCRF. You can also define a default value that is used when the external servers do not supply it. Use the variables statement in the dynamic profile to define the default value. Whether supplied by the external server or by the CLI, the value must be either initial-get or never.

  • initial-get—Receipt of the subscriber’s initial HTTP-GET message triggers removal of the redirect service.

  • never—Removal of the redirect service is triggered only by the external server, such as by a CoA message from a RADIUS server.

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

services—To view this statement in the configuration.

services–control—To add this statement to the configuration.

interface—To view this statement in the configuration.

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

Release Information

Statement introduced in Junos OS Release 10.4.

Support at the [edit dynamic-profiles profile-name services] hierarchy level added in Junos OS Release 17.2R1.

Statement introduced in Junos OS Release 10.4.

Support at the [edit dynamic-profiles profile-name services] hierarchy level added in Junos OS Release 17.2R1.

Support for Next Gen Services introduced in Junos OS Release 19.3R2.

auto-deactivate option added in Junos OS Release 19.4R1.

footer-navigation