show services nat source rule
Syntax
show services nat source rule rule-name <all> <interface interface-name> <service-set service-set>
Description
Display source NAT rule-set information.
Options
| rule-name | Display source NAT rule-set information for the specified rule. |
| all | Display all source NAT rule-set information. |
| interface interface-name | Display rule-set information about the adaptive services interface. |
| service-set service-set | Display rule-set information about the service set. |
Required Privilege Level
view
Output Fields
Table 1 lists the output fields for the show services nat source
rule command. Output fields are described in the approximate
order in which they appear.
Field Name |
Description |
|---|---|
|
Interface name. |
|
Service set name. |
|
Rule identification number. |
|
Position of the source NAT rule. |
|
Specifies the direction in which to match traffic that meets the rule conditions. |
|
Match the following:
|
|
|
|
Use this field to check for traffic that matches the rule. Note the successful or failed sessions. |
|
Number of active sessions. |
Sample Output
show services nat source rule
user@host> show services nat source rule all
ss1_interface_style1 interface vms-0/2/0 all | no-more
Interface: vms-0/2/0 , Service set: ss1_interface_style1
source NAT rule: r1 Rule-set: rs1
Rule-Id : 1
Rule position : 1
Match-direction : input
Match
Source addresses : 0.0.0.0 - 255.255.255.255
Destination addresses : 0.0.0.0 - 255.255.255.255
Application : configured
Action : src_pool1
Persistent NAT type : N/A
Persistent NAT mapping type : address-port-mapping
Inactivity timeout : 0
Max session number : 0
Translation hits : 3
Successful sessions : 3
Failed sessions : 0
Number of sessions : 1
show services nat source rule (Mapping and EIF Configuration)
show services nat source rule all
Total rules: 1
Total referenced IPv4/IPv6 ip-prefixes: 1/0
source NAT rule: r1 Rule-set: rs1
Rule-Id : 1
Rule position : 1
From zone : nh-JNPR-NH-SSET-ZoneIn
To zone : nh-JNPR-NH-SSET-ZoneOut
Match
Source addresses : 30.30.30.0 - 30.30.30.255
Action : p2
+Mapping-type : endpoint-independent;
+Mapping-refresh : inbound
+Filtering-type: endpoint-independent
+Prefix-list :
1.2.2.0 --- 2.2.2.3
3.3.3.0 --- 3.3.3.3 except
Translation hits : 0
Successful sessions : 0
Failed sessions : 0
Number of sessions : 0
Release Information
Command introduced in Junos OS 19.3R2.