home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

service nat destination rule <rule-number> inbound-interface

Applies DNAT rules to the inbound traffic of an interface.

set service nat destination rule rule-number inbound-interface
delete service nat destination rule rule-number [ inbound-interface ]
show service nat destination rule rule-number
rule-number
Multi-node. The rule number for NAT that ranges from 1 through 9999.

Configuration mode

service {
    nat {
        destination {
            rule rule-number {
                inbound-interface {
                }
            }
        }
    }
}

Applied to the inbound data plane interface. SNAT or masquerade NAT is performed on traffic transmitted from this interface. This attribute is not configurable for source rules.

You can specify an individual virtual interface instead of an entire interface. To do this, refer to the virtual interface by using the int .vif notation. For example, to refer to the 40 virtual interface on the dp0p160p0 interface, use dp0p160p1.40.

This command can be used only on source NAT rules (that is, NAT rules with a rule type of source). It does not apply to rules with a rule type of destination.

Use the set for of this command to specify the data plane interface on which inbound traffic has DNAT rules applied.

Use the delete form of this command to remove an inbound interface.

Use the show form of this command to view an inbound interface.