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 policies zone-context

date_range 09-Dec-23

Syntax

content_copy zoom_out_map
show security policies zone-context
application-firewall 
count
detail
from-zone <zone-name>
interface 
logical-system <logical-system-name> 
policy-name 
root-logical-system 
service-set
start 
tenant <tenant-name> 
to-zone <zone-name> 

Description

Displays the security policy that applies the security rules to the transit traffic within a context (from-zone to to-zone). From the perspective of security policies, traffic enters into one security zone and goes out on another security zone. This combination of a from-zone and a to-zone is defined as a context. Each context contains an ordered list of policies. The existing show command for security policies zone-context is enhanced with tenant support.

Options

application-firewall

Displays the information of application-firewall.

count

Displays the number of policies to show.

  • Range: 1 through 65535

detail

Displays the detailed information.

from-zone

Displays the policy information matching the given source zone.

interface

Displays the name of adaptive services interface.

logical-system

Displays the name of the logical system.

policy-name

Displays the policy information matching the given policy name.

root-logical-system

Displays root logical system as default.

service-set

Displays the name of service set.

start

Displays the policies from a given position.

  • Range: 1 through 65535

tenant

Displays the name of the tenant system.

to-zone

Displays the policy information matching the given destination zone.

Required Privilege Level

view

Output Fields

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

Table 1: show security zone-context Output Fields

Field Name

Field Description

From zone

Name or ID of the source zone of the traffic.

To zone

Name or ID of the destination zone of the traffic.

Policy count

Number of hits for each security policy.

Tenant

Name of the tenant system.

Sample Output

show security policies zone-context tenant TN1

content_copy zoom_out_map
user@host> show security policies zone-context tenant TN1
From zone                To zone                  Policy count
   z1                      	 z2                       1
   z2                      	 z3                       1

show security policies zone-context tenant all

content_copy zoom_out_map
user@host> show security policies zone-context tenant all
Tenant: TN1
    From zone                To zone                  Policy count
    z1                       z2                       1

Tenant: TN2
    From zone                To zone                  Policy count
    z1                       z2                       1

Release Information

Command introduced in Junos OS Release 8.5.

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

footer-navigation