show security nat source rule
Syntax
Release Information
Command introduced in Release 9.2 of Junos OS.
Description
Display information about the specified source Network Address Translation (NAT) rule.
Options
rule-name—Name of the rule.
all—Display information about all the source NAT rule.
Required Privilege Level
view
Related Topics
List of Sample Output
show security nat source rule r1show security nat source rule all
Output Fields
Table 133 lists the output fields for the show security nat source rule command. Output fields are listed in the approximate order in which they appear
Table 133: show security nat source rule Output Fields
Field Name | Field Description |
|---|---|
Source nat rule | Name of the source NAT rule. |
State | Status of the IP address:
|
Index | Rule index number. |
From routing instance | Name of the routing instance from which the packet comes. |
To routing instance | Name of the routing instance in which packet should reach. |
Source address | Name of the source addresses which match the rule. The default value is any. |
Destination address | Name of the destination addresses which match the rule. The default value is any. |
Destination ports | Destination ports number which match the rule. The default value is any. |
Action | The action taken in regard to a packet that matches the rule’s tuples. Actions include the following:
|
Hit times | Number of times a translation in the translation table is used for a source NAT rule. |
Fail times | Number of times a translation in the translation table failed to translate for a source NAT rule. |
Total destination nat rule number | Number of destination NAT rules. |
Total hit times | Number of times a translation in the translation table is used for all the source NAT rules. |
Total fail times | Number of times a translation in the translation table failed to translate for all the source NAT rules. |
Sample Output
show security nat source rule r1
user@host> show security nat source rule r1 Source nat rule: r1, State: enabled, Index: 4
From routing instance: ri-2
To routing instance: ri-1
Source addresses:
any: 0.0.0.0/0
Destination addresses:
any: 0.0.0.0/0
Action: source-nat pool s1
Hit times: 22
Fail times: 2Sample Output
show security nat source rule all
user@host> show security nat source rule all Total source nat rule number: 2
Total hit times: 32
Total fail times: 2
Source nat rule: r1, State: enabled, Index: 4
From routing instance: ri-2
To routing instance: ri-1
Source addresses:
any: 0.0.0.0/0
Destination addresses:
any: 0.0.0.0/0
Action: source-nat pool s1
Hit times: 22
Fail times: 2
Source nat rule: r2, State: enabled, Index: 5
From routing instance: ri-2, zone: z3 z4
To routing instance: ri-1
Source addresses:
any: 0.0.0.0/0
Destination addresses:
any: 0.0.0.0/0
Action: source-nat pool s2
Hit times: 10
Fail times: 0
Hide Navigation Pane
Show Navigation Pane
Download
SHA1