Create a Source NAT Rule with Persistent DIPP
Focus
Focus

Create a Source NAT Rule with Persistent DIPP

Table of Contents

Create a Source NAT Rule with Persistent DIPP

Create a source NAT rule that uses persistent Dynamic IP and Port (DIPP).
Beginning with PAN-OS 11.1.1 and later releases, you configure persistent DIPP in an individual NAT policy rule. When you are using NAT for video or voice applications behind the firewall and you need to access STUN, create your policy rule using a translation type of persistent dynamic IP and port.
  1. Create an address object for the external IP address you plan to use.
    1. Select
      Objects
      Addresses
      and
      Add
      a
      Name
      and optional
      Description
      for the object.
    2. Select
      IP Netmask
      from the
      Type
      and then enter the IP address of the external interface on the firewall, 203.0.113.100 in this example.
    3. Click
      OK
      .
      Although you don't have to use address objects in your policies, it is a best practice because it simplifies administration by allowing you to make updates in one place rather than having to update every policy where the address is referenced.
  2. Create the NAT policy.
    1. Select
      Policies
      NAT
      and click
      Add
      .
    2. On the
      General
      tab, enter a descriptive
      Name
      for the policy.
    3. (
      Optional
      ) Enter a tag, which is a keyword or phrase that allows you to sort or filter policies.
    4. For
      NAT Type
      , select
      ipv4
      (default).
    5. On the
      Original Packet
      tab, select the zone you created for your internal network in the
      Source Zone
      section (click
      Add
      and then select the zone) and the zone you created for the external network from the
      Destination Zone
      list.
    6. On the
      Translated Packet
      tab, for
      Translation Type
      , select
      Persistent Dynamic IP And Port
      .
    7. For
      Address Type
      , there are two choices. You could select
      Translated Address
      and then click
      Add
      . Select the address object you created or enter the translated source address.
      An alternative
      Address Type
      is
      Interface Address
      , in which case the translated address will be the IP address of the interface. For this choice, you would select an
      Interface
      and optionally an
      IP Address
      if the interface has more than one IP address.
    8. Click
      OK
      .
  3. Commit
    your changes.
  4. (
    Optional
    ) Use operational CLI commands to view persistent DIPP information.
    1. >
      show running persistent-dipp-pool
    2. >
      show running persistent-dipp-client pool <nat-pool-index>
    3. >
      show running persistent-dipp-client-translation ip <client-ip-address>
    Use the last two show commands at runtime to track persistent NAT resource usage by client IP address.
  5. (
    Optional
    ) Use configuration CLI commands to monitor persistent DIPP pool utilization. A syslog is generated if resource utilization exceeds the threshold you configured.
    1. >
      configure
    2. #
      set deviceconfig setting session persistent-dipp-alert-enable <no|yes>
    3. #
      set deviceconfig setting session persistent-dipp-alert-threshold <1-99>
    4. #
      set deviceconfig setting session persistent-dipp-alert-interval <5-120>

Recommended For You