Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

then (Captive Portal Content Delivery)

Syntax

Hierarchy Level

Description

Define the term actions and any optional action modifiers for the captive portal content delivery rule. 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

action

Actions to accept, redirect, or rewrite packets and all subsequent packets in flows that match the rules.

  • accept—Accept the packets and all subsequent packets in flows that match the rules.

  • insert—Insert a tag with a specified value that is added to the HTTP packet header when the term is matched. You must insert the following action modifiers.

    • tag tag-name—Name of the tag inserted in the packet header, with a maximum size of 127 characters. The tag name is case-sensitive, such that tag ABCD and tag abcd are processed as different names:

    • tag-value tag-value—Value of the specified tag, with a maximum size of 127 characters. You can specify a customer value or use one of four predefined options that causes the associated value to be inserted:

      • custom—Value defined by user, with a maximum size of 127 characters.

      • hostname—Hostname of the router.

      • subscriber-ip—Subscriber’s IPv4 address.

      • subscriber-ipv6—Subscriber’s IPv6 address.

      • subscriber-mac-addr—MAC address of the subscriber.

  • redirect—Redirect the packet and all subsequent packets in flows that match the rules. You can optionally configure the following action modifier:

    • url— URL destination for the redirected packet. The URL must begin with http:// or https://.

rewrite

Rewrite the packet and all subsequent packets in flows that match the rules. You can optionally configure one or both of the following action modifiers:

  • destination-address address—Destination address for the rewritten packet.

  • destination-port port-number—(Optional) Destination port for the rewritten packet.

syslog

Log information about the packet to a system log file.

action

Actions to accept, redirect, or rewrite packets and all subsequent packets in flows that match the rules.

Required Privilege Level

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 captive-portal-content-delivery rule rule-name term term-name] hierarchy level added in Junos OS Release 17.2R1.

insert option added in Junos OS Release 19.1R1.

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