services (Captive Portal Content Delivery)
Syntax
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
[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:
|
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.