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.

How to configure NAT settings

An example of how to configure NAT settings to direct return traffic through the same provider network.

Configuring NAT settings is optional. However, to direct the return traffic to go through the same provider network, you should configure source-NAT masquerading for all of the traffic that enters the provider network.
  1. Configure source NAT masquerading on all traffic that enters the Provider A network.
    vyatta@vyatta# set service nat source rule 1 description 'Provider A'
    vyatta@vyatta# set service nat source rule 1 outbound-interface dp0p161p1
    
    vyatta@vyatta# set service nat source rule 1 translation address masquerade
    
  2. Configure source NAT masquerading on all traffic that enters the Provider B network.
    vyatta@vyatta# set service nat source rule 20 description 'Provider B'
    vyatta@vyatta# set service nat source rule 20 outbound-interface dp0p224p1
    vyatta@vyatta# set service nat source rule 20 translation address masquerade
  3. Configure source NAT masquerading on all traffic that enters the Provider C network.
    vyatta@vyatta# set service nat source rule 30 outbound-interface dp0p256p1
    vyatta@vyatta# set service nat source rule 30 description 'Provider C'
    vyatta@vyatta# set service nat source rule 30 translation address masquerade
  4. Commit the configuration.
    vyatta@vyatta# commit
    [edit]
  5. Optional: View the configuration.
    vyatta@vyatta# show service
    
    nat {
            source {
                    rule 1 {
                            description "Provider A"
                            outbound-interface dp0p161p1
                            translation {
                                    address masquerade
                            }
                    }
                    rule 20 {
                            description "Provider B"
                            outbound-interface dp0p224p1
                            translation {
                                    address masquerade
                            }
                    }
                    rule 30 {
                            description "Provider C"
                            outbound-interface dp0p256p1
                            translation {
                                    address masquerade
                            }
                    }
            }
     }
    [edit]