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 (PCP)

date_range 20-Nov-23

Syntax

content_copy zoom_out_map
rule rule-name {
    match-direction (input | output);
    term term-name {
        from {
            application-sets set-name;
            applications [ application-name ];
            destination-address address <except>;
            destination-address-range high maximum-value low minimum-value <except>;
            destination-port  high maximum-value low minimum-value;
            destination-prefix-list list-name <except>;
            source-address address <except>;
            source-address-range high maximum-value low minimum-value <except>;
            source-prefix-list list-name <except>;
        }
        then {
            pcp-server server-name;
        }
    }
    }
}

Hierarchy Level

content_copy zoom_out_map
[edit services pcp]

Description

Configure a rule to assign the port control protocol (PCP) server that handles selected traffic. PCP enables hosts to operate servers for a long time (as in the case of a webcam) or a short time (for example, while playing a game or on a phone call) when behind a NAT device, including when behind a carrier-grade NAT operated by their ISP. PCP enables applications to create mappings from an external IP address and port to an internal IP address and port.

PCP is supported on the MS-DPC, MS-100, MS-400, and MS-500 MultiServices PICS. Starting in Junos OS Release 17.4R1, PCP is also supported on the MS-MPC and MS-MIC.

Options

rule-name

Rule name

The remaining statements are explained separately.

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 13.2R1.

footer-navigation