Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Configuring Twice Dynamic NAT for Next Gen Services

date_range 06-Dec-23

Configuring the Source and Destination Pools for Twice Dynamic NAT

To configure the source and destination pools for twice dynamic NAT:

  1. Create a source pool.
    content_copy zoom_out_map
    user@host# edit services nat source pool nat-pool-name
    
  2. Define the addresses or subnets to which source addresses are translated.
    content_copy zoom_out_map
    [edit services nat source pool nat-pool-name]
    user@host# set address address-prefix
    

    or

    content_copy zoom_out_map
    [edit services nat source pool nat-pool-name]
    user@host# set address address-prefix to address address-prefix
    
  3. Disable port translation.
    content_copy zoom_out_map
    [edit services nat destination pool nat-pool-name]
    user@host# set port no-translation
    
  4. Define the NAT pool utilization levels that trigger SNMP traps. The raise-threshold is the pool utilization percentage that triggers the trap, and the range is 50 through 100. The clear-threshold is the pool utilization percentage that clears the trap, and the range is 40 through 100. The utilization is based on the number of addresses that are used.
    content_copy zoom_out_map
    [edit services nat source pool nat-pool-name]
    user@host# set pool-utilization-alarm raise-threshold value
    user@host# set pool-utilization-alarm clear-threshold value
    

    If you do not configure pool-utilization-alarm, traps are not created.

  5. Create a destination pool. Do not use the same name that you used for the source pool.
    content_copy zoom_out_map
    user@host# edit services nat destination pool nat-pool-name
    
  6. Define the addresses or subnets to which destination addresses are translated.
    content_copy zoom_out_map
    [edit services nat destination pool nat-pool-name]
    user@host# set address address-prefix
    
  7. To allow the IP addresses of a NAT source pool or destination pool to overlap with IP addresses in pools used in other service sets, configure allow-overlapping-pools.
    content_copy zoom_out_map
    [edit services nat]
    user@host# set allow-overlapping-pools
    

Configuring the NAT Rules for Twice Dynamic NAT

To configure the source and destination NAT rules for twice dynamic NAT:

  1. Configure the source NAT rule name.
    content_copy zoom_out_map
     [edit services nat source]
    user@host# set rule-set rule-set-name rule rule-name
    
  2. Specify the traffic direction to which the NAT rule set applies.
    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name]
    user@host# set match-direction (in | out | in-out)
    
  3. Specify the addresses that are translated by the source NAT rule.

    To specify one address or prefix value:

    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set match source-address address
    

    To specify a range of addresses, configure an address book global address with the desired address range, and assign the global address to the NAT rule:

    content_copy zoom_out_map
     [edit services address-book global]
    user@host# set address address-name range-address lower-limit to upper-limit
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set match source-address-name address-name
    

    To specify any unicast address:

    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set match source-address any-unicast
    
  4. Specify one or more application protocols to which the source NAT rule applies. The number of applications listed in the rule must not exceed 3072.
    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set match application [application-name]
    
  5. Configure the address-pooling paired feature if you want to ensure assignment of the same external IP address for all sessions originating from the same internal host.
    content_copy zoom_out_map
    [edit services nat source rule-set rule-set-name rule rule-name then source-nat mapping-type]
    user@host# set address-pooling-paired
    
  6. Specify the timeout period for address-pooling-paired mappings that use the NAT pool. The range is 120 through 86,400 seconds, and the default is 300. Mappings that are inactive for this amount of time are dropped.
    content_copy zoom_out_map
    [edit services nat source pool nat-pool-name]
    user@host# set mapping-timeout mapping-timeout
    

    If you do not configure ei-mapping-timeout for endpoint independent translations, then the mapping-timeout value is used for endpoint independent translations.

  7. Specify the source NAT pool that contains the addresses for translated traffic.
    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set then source-nat pool nat-pool-name
    
  8. Configure the generation of a syslog when traffic matches the NAT rule conditions.
    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name then]
    user@host# set syslog
    
  9. Configure the destination NAT rule name.
    content_copy zoom_out_map
     [edit services nat destination]
    user@host# set rule-set rule-set-name rule rule-name
    
  10. Specify the traffic direction to which the destination NAT rule set applies.
    content_copy zoom_out_map
     [edit services nat destination rule-set rule-set-name]
    user@host# set match-direction (in | out | in-out)
    
  11. Specify the destination addresses of traffic that the destination NAT rule applies to.
    content_copy zoom_out_map
     [edit services nat destination rule-set rule-set-name rule rule-name]
    user@host# set match destination-address address
    

    To specify a range of addresses, configure an address book global address with the desired address range, and assign the global address to the NAT rule:

    content_copy zoom_out_map
     [edit services address-book global]
    user@host# set address address-name range-address lower-limit to upper-limit
     [edit services nat destination rule-set rule-set-name rule rule-name]
    user@host# set match destination-address-name address-name
    

    To specify any unicast address:

    content_copy zoom_out_map
     [edit services nat destination rule-set rule-set-name rule rule-name]
    user@host# set match destination-address any-unicast
    
  12. Specify one or more application protocols to which the destination NAT rule applies. The number of applications listed in the rule must not exceed 3072.
    content_copy zoom_out_map
     [edit services nat source rule-set rule-set-name rule rule-name]
    user@host# set match application [application-name]
    
  13. Specify the destination NAT pool that contains the destination addresses for translated traffic.
    content_copy zoom_out_map
     [edit services nat destination rule-set rule-set-name rule rule-name]
    user@host# set then destination-nat pool nat-pool-name
    
  14. Configure the generation of a syslog when traffic matches the destination NAT rule match conditions.
    content_copy zoom_out_map
     [edit services nat destination rule-set rule-set-name rule rule-name then]
    user@host# set syslog
    

Configuring the Service Set for Twice Dynamic NAT

To configure the service set for twice dynamic NAT:

  1. Define the service set.
    content_copy zoom_out_map
     [edit services]
    user@host# edit service-set service-set-name
    
  2. Configure either an interface service, which requires a single service interface, or a next-hop service, which requires an inside and outside service interface.
    content_copy zoom_out_map
     [edit services service-set service-set-name]
    user@host# set interface-service service-interface interface-name
    

    or

    content_copy zoom_out_map
     [edit services service-set service-set-name]
    user@host# set next-hop-service inside-service-interface interface-name outside-service-interface interface-name
    
  3. Specify the NAT rule sets to be used with the service set. Include the source NAT rule set and the destination NAT rule set.
    content_copy zoom_out_map
     [edit services service-set service-set-name]
    user@host# set nat-rule-sets rule-set-name
    
footer-navigation