Destination address translations
DNAT rules substitute the destination address of a packet with the translation address. Port translation is also available and can be specified as part of the translation address.
Substituting a destination IP address
The following example shows how to apply a DNAT rule, rule 40, that substitutes the address of 10.0.0.4 as the destination IP address of inbound packets that match its filter criteria.
vyatta@vyatta# set service nat destination rule 40 translation address 10.0.0.4
Substituting a range of destination IP addresses
The following example shows how to apply a DNAT rule, rule 50, that substitutes the addresses 10.0.0.0 through 10.0.0.3 as the range of destination IP addresses for inbound packets that match its filter criteria.
vyatta@vyatta# set service nat destination rule 50 translation address 10.0.0.0-10.0.0.3