Configure NAT Rule Content
To configure a NAT rule, include the
rulerule-namestatement at the [edit services nat] hierarchy level:[edit services nat]rule rule-name {match-direction (input | output);termterm-name{from {applications [application-names];application-sets [set-names];destination-addressaddress;source-addressaddress;}then {translated{destination-poolnat-pool-name;source-poolnat-pool-name;translation-type (destinationtype| sourcetype);}syslog;}}}Each NAT rule consists of a set of terms, similar to a firewall filter. A term consists of the following:
fromstatement—Specifies the match conditions and applications that are included and excluded.thenstatement—Specifies the actions and action modifiers to be performed by the router software.In addition, each rule includes a
match-directionstatement that specifies the direction in which the match is applied. To configure where the match is applied, include thematch-direction (input | output)statement at the [edit services nat rulerule-name] hierarchy level:[edit services nat]rule rule-name {match-direction (input | output);}The following sections describe NAT rule content in more detail: