Configure Network Address Translation Services
To configure Network Address Translation (NAT) services, you include statements at the
[edit services]hierarchy level of the configuration:[edit services]nat {poolnat-pool-name{address (address| address-range lowminimum-valuehighmaximum-value);port (automatic | range lowminimum-valuehighmaximum-value);}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;}}}rule-setrule-set-name{[ rulerule-names];}}
NOTE: JUNOS software uses stateful firewall settings as a basis for performing NAT. You must commit a stateful firewall configuration in the same service set for NAT to function properly.