rule (Source NAT)

Syntax

rule rule-name {match {destination-address [destination-address];source-address [source-address];}then {source-nat (off | interface | pool pool-name );persistent-nat {address-mapping;inactivity-timeout seconds;max-session-number number;permit ( any-remote-host | target-host | target-host-port );}}}

Hierarchy Level

[edit security nat source rule-set rule-set-name ]

Release Information

Statement modified in Release 9.6 of Junos OS.

Description

Define a source NAT rule.

Options

rule-name —Name of the source NAT rule.

The remaining statements are explained separately.

Usage Guidelines

For configuration instructions and examples, see the Junos OS Security Configuration Guide.

Required Privilege Level

security—To view this statement in the configuration.

security-control—To add this statement to the configuration.