Configure NAT Match Conditions
To configure NAT match conditions, include the
fromstatement at the [edit services nat rulerule-nametermterm-name] hierarchy level:[edit services nat rulerule-nametermterm-name]from {applications [application-names];application-sets [set-names];destination-addressaddress;source-addressaddress;}You can use either the source address or the destination address as a match condition, in the same way that you would configure a firewall filter; for more information, see the JUNOS Policy Framework Configuration Guide.
You can also include application protocol definitions you have configured at the [
edit applications] hierarchy level; for more information, see Configure Applications.
- To apply one or more specific application protocol definitions, include the
applicationsstatement at the[edit services nat rulerule-nametermterm-namefrom]hierarchy level.- To apply one or more sets of application protocol definitions you have defined, include the
application-setsstatement at the[edit services nat rulerule-nametermterm-namefrom]hierarchy level.