Configure NAT Actions
To configure NAT actions, include the
thenstatement at the [edit services nat rulerule-nametermterm-name] hierarchy level:[edit services nat rulerule-nametermterm-name]then {syslog;translated{destination-poolnat-pool-name;source-poolnat-pool-name;translation-type (destinationtype| sourcetype);}}To record an alert in the system logging facility, include the
syslogstatement at the[edit services nat rulerule-nametermterm-namethen]hierarchy level:[edit services nat rulerule-nametermterm-namethen]syslog;To configure NAT-specific actions for handling packets, include the
translatedstatement at the[edit services nat rulerule-nametermterm-namethen]hierarchy level:[edit services nat rulerule-nametermterm-namethen]translated{destination-poolnat-pool-name;source-poolnat-pool-name;translation-type (destinationtype| sourcetype);}The
source-poolanddestination-poolstatements specify addressing information you define by including thepoolstatement at the [edit services nat] hierarchy level; for more information, see Configure Address and Port Information.The
translation-typestatement specifies what type of network address translation is used for source or destination traffic:
destination static—Implement address translation for destination traffic without port mapping. This requires the size of the source address space to be the same as the size of the destination address space. You must specify adestination-poolname. The referenced pool must contain exactly one address and noportconfiguration.source dynamic—Implement address translation for source traffic with port translation (NAPT). You must specify asource-poolname. The referenced pool must include aportconfiguration.source static—Implement address translation for source traffic without port mapping. This requires the size of the source address space to be the same as the size of the destination address space. You must specify asource-poolname. The referenced pool must contain exactly one address and noportconfiguration.You can configure either
translation-type destinationortranslation-type source, but not both.For more information on NAT methods, see RFC 2663, IP Network Address Translator (NAT) Terminology and Considerations.