[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

rule

Syntax

rule rule-name {
match-direction (input | output);
term term-name {
nat-type (full-cone | symmetric);
from {
application-sets set-name;
applications [ application-names ];
destination-address (address | any-unicast) <except>;
destination-address-range low minimum-value high maximum-value <except>;
source-address (address | any-unicast) <except>;
source-address-range low minimum-value high maximum-value <except>;
}
then {
no-translation;
translated {
destination-pool nat-pool-name;
destination-prefix destination-prefix;
overload-pool overload-pool;
overload-prefix overload-prefix;
source-pool nat-pool-name;
source-prefix source-prefix;
translation-type (destination type | source type);
translation-type {
source type;
destination type;
}
}
syslog;
}
}
}

Hierarchy Level

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

Release Information

Statement introduced before JUNOS Release 7.4.

Description

Specify the rule the router uses when applying this service.

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.


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]