Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    rule

    Syntax

    rule rule-name {match-direction (input | output);term term-name {from {application-sets set-name;applications [ application-names ];destination-address (address | any-unicast) <except>;destination-address-range low minimum-value high maximum-value <except>;destination-prefix-list list-name <except>;source-address (address | any-unicast) <except>;source-address-range low minimum-value high maximum-value <except>;}then {no-translation;translated {address-pooling paired;destination-pool nat-pool-name;destination-prefix destination-prefix;dns-alg-pool dns-alg-pool;dns-alg-prefix dns-alg-prefix;filtering-type endpoint-independent;mapping-type endpoint-independent;overload-pool overload-pool;overload-prefix overload-prefix;source-pool nat-pool-name;source-prefix source-prefix;translation-type (basic-nat44 | dynamic-nat44 | napt44 | dnat-44);}syslog;}}}

    Hierarchy Level

    [edit services nat],[edit services nat rule-set rule-set-name]

    Release Information

    Statement introduced before Junos OS Release 7.4.

    Description

    Specify the rule the router uses when applying this service.

    Note: The translation types basic-nat44, dynamic-nat44, napt44, and dnat-44 are used for configuring NAT in an IPv4 network. Apart from these translation types, Junos OS also supports the translation types basic-nat-pt, basic-nat66, napt-66, napt-pt, and stateful-nat64. These translation types are used for configuring NAT in an IPv6 network. Because Junos Services Framework (JSF) does not support configuring NAT in IPv6 networks, these translation types are not displayed in the syntax above.

    Options

    rule-name—Identifier for the collection of terms that comprise this rule.

    Usage Guidelines

    See Configuring NAT Rules.

    Required Privilege Level

    interface—To view this statement in the configuration.

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

    Published: 2012-07-02