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

rule (Captive Portal Content Delivery)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
rule rule-name {
    match-direction (input | output | input-output);
    term term-name {
        from {
            destination-address address <except>;
        }
        then {
            accept;
            insert tag-name tag-name tag-value tag-value;
            redirect url;
            rewrite destination-address address <destination-port port-number>;
            syslog;
        }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit dynamic-profiles profile-name services captive-portal-content-delivery],
[edit services captive-portal-content-delivery]

Description

Specify the rule the router uses when applying this service. 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.

Options

rule-name—Identifier for the collection of terms that constitute this rule.

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.

Release Information

Statement introduced in Junos OS Release 10.4.

Support at the [edit dynamic-profiles profile-name services captive-portal-content-delivery rule rule-name term term-name] hierarchy level added in Junos OS Release 17.2R1.

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

footer-navigation