Destination NAT limitation when Duplicate IP Address Support is enabled
Symptom
- Traffic originating from an untrust/external IP address and destined for a loopback IP address fails to undergo Destination NAT translation.
- The session will show that only an implicit Source NAT (ALT SRC NAT) is applied, while the destination IP remains unchanged.
- ICMP works fine, only TCP services destined for loopback address are affected like GlobalProtect Services and Management Services (SSH, SNMP).
In the following packet diag log we can clearly see "b_duplicate_ip enabled" notification followed by ALT SRC NAT (implicit NAT).Policy lookup, matched rule index 1, Allocated new session 8526.set exclude_video in session 8526 8320 0 from work 29440 0To Host C2S VR 1To MP : b_duplicate_ip enabledTo Host IPv4 Pkt -> DIP 55.55.55.55 SIP 41.41.41.41 Sport 18388 Dport: 7000 Pool Offset : 0ALT SRC NAT, pool offset: 0, src port : 18388, nat port : 5162==== Pakcet dump after ALT NAT ====Packet decoded dump:L2: fc:10:1a:64:94:41->3c:fa:30:61:5d:10, type 0x0800IP: 41.41.41.41->55.55.55.55, protocol 6 version 4, ihl 5, tos 0x00, len 52, id 24493, frag_off 0x4000, ttl 127, checksum 30596(0x8477)TCP: sport 18388, dport 7000, seq 340309150, ack 0, reserved 0, offset 8, window 64240, checksum 12397, flags 0x02 ( SYN), urgent data 0, l4 data len 0
The following counters may increment:
name value rate severity category aspect description--------------------------------------------------------------------------------pkt_recv 2 0 info packet pktproc Packets receivedsession_allocated 2 0 info session resource Sessions allocatedsession_installed 2 0 info session resource Sessions installedsession_discard 2 0 info session resource Session set to discard by security policy checksession_duplicate_ip_alt_srcnat_xlat 2 0 info session pktproc Duplicate-IP session implicit source natflow_host_service_unknown 2 0 drop flow mgmt Session discarded: unknown application to control planeflow_ip_cksm_sw_validation 2 0 info flow pktproc Packets for which IP checksum validation was done in softwareflow_tcp_cksm_sw_validation 2 0 info flow pktproc Packets for which TCP checksum validation was done in softwarenat_dynamic_port_xlat_found_in_first 2 0 info nat resource The total number of DIPP NAT ports found in the first wordnat_alt_srcnat_xlat 2 0 info nat pktproc Implicit srcnat translated--------------------------------------------------------------------------------
Environment
PAN-OS version 11.1.4 and higher.
Duplicate IP Address Support feature is enabled.
Cause
When duplicate-ip address support is enabled, firewall does the ALT SRC NAT (Implicit NAT) for TCP traffic (For only non-routing IPv4, IPv6 TCP packets) to support the flow.
When destination NAT is configured for loopback, it intentionally does not apply the destination NAT since source NAT is already in effect.
This is expected behaviour.
Resolution
Disabling the Duplicate IP Address Support feature will allow standard DNAT rules to take precedence.
Route traffic directly to the intended destination IP without relying on a DNAT translation.
There are two ways to disable duplicate-ip feature:
Via CLI: Enter configuration mode and run the command: <set deviceconfig setting duplicate-ip no>
Via GUI:
Additional Information
N/A