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

show security shadow-policies

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
show security shadow-policies
<from-zone zone-name>
<global>
<logical-system logical-system-name>
<policy policy-name>
<reverse>
<root-logical-system>
<tenant tenant-name>
<to-zone zone-name>

Description

Displays the shadowing and shadowed policies in a policy list. The output displays the list of all policies that shadows other policies. The concept of policy shadowing refers to the situation where a policy higher in the policy list always takes effect before a subsequent policy. Because the policy lookup always uses the first policy it finds that matches the five-part tuple of the source and destination zone, source and destination address, and application type, if another policy applies to the same tuple (or a subset of the tuple), the policy lookup uses the first policy in the list and never reaches the second one. The existing show command for security shadow-policy is enhanced with tenant support.

Options

  • from-zone zone-name—Displays the name or ID of the source zone of the traffic.

  • global—Displays the information about global policies.

  • logical-system—Displays the name of the logical system.

  • policy—Displays the shadow policy information for the given policy.

  • reverse—Displays the policies which shadows the given policy.

  • root-logical-system—Displays root logical system as default.

  • tenant—Displays the name of the tenant system.

  • to-zone zone-name—Displays the shadow policy information for the given destination zone.

Required Privilege Level

view

Output Fields

Table 1 lists the output fields for the show security shadow-policies logical-system command. Output fields are listed in the approximate order in which they appear.

Table 1: show security shadow-policies logical-system Output Fields

Field Name

Field Description

Policies

The policies shadowing one or more policies in the policy list.

Shadowed policies

The policies shadowed by one or more policies in the policy list.

Sample Output

show security shadow-policies from-zone zone-a to-zone zone-b

content_copy zoom_out_map
root@host> show security shadow-policies from-zone zone-a to-zone zone-b
    Policies              Shadowed policies
    P1                    P3
    P1                    P4
    P2                    P5

show security shadow-policies from-zone zone-a to-zone zone-b policy P1

content_copy zoom_out_map
root@host> show security shadow-policies from-zone zone-a to-zone zone-b policy P1
   Policies              Shadowed policies
    P1                    P3
    P1                    P4

show security shadow-policies from-zone zone-a to-zone zone-b policy P4 reverse

content_copy zoom_out_map
root@host> show security shadow-policies from-zone zone-a to-zone zone-b policy P4 reverse
   Policies              Shadowed policies
    P1                    P4

show security shadow-policies tenant TN1 from-zone trust to-zone untrust

content_copy zoom_out_map
user@host> show security shadow-policies tenant TN1 from-zone trust to-zone untrust
Policies                 Shadowed policies       
    p12                      p11

Release Information

Command introduced in Junos OS Release 12.1X44-D10.

The tenant option is added in Junos OS Release 18.3R1.

footer-navigation