1. Verify NAT Rule Order and Configuration in the NSX-T UI
- Navigate to NSX-T Manager UI:
Networking
> NAT
> Select the relevant NSX Edge > NAT Policies
.
- Select the NAT policy you want to review.
- Check the sequence of the NAT rules:
- Lower priority values indicate higher precedence (rules with lower numbers are evaluated first).
- If necessary, adjust the order of the rules using the drag-and-drop functionality.
- Save the changes to apply the new order.
- View NAT Statistics:
- Click on the graph icon next to a NAT rule to view real-time statistics such as packet counts and matches. This helps verify whether the rule is actively processing traffic.

- Validate that the desired traffic matches the intended NAT rule based on the statistics displayed.
2. Retrieve NAT Policies and Rules via API
- Retrieve all NAT policies:
- Identify the NAT policy ID you want to review.
- Retrieve NAT rules for a specific NAT policy using the ID:
- Verify the source/destination addresses, translation method (SNAT/DNAT), and priority.
3. Check Firewall Rules and NAT Configuration Using CLI

-
Check Rule-Based Statistics:
- To gather statistics for each rule and determine if they are being hit by traffic, use:
- This command shows real-time data on the number of packets and bytes processed by each rule, helping you verify if the NAT rules are actively processing traffic.
-
Verify Current Connection States:
- To monitor live connections and verify if the traffic is being translated correctly by the NAT rules, use:
- This provides information about current flows, including source/destination IPs, translated IPs, and connection status.
-
Ensure No Blockages in Traffic Flow:
- Review the output of these commands to ensure there are no conflicting firewall rules, ACLs, or other network devices blocking the required traffic for NAT. If necessary, adjust the firewall rules to allow the traffic intended for NAT processing.
4. Use Packet Capture Tools for Detailed Analysis
- Capture and analyze traffic between source and destination to identify any connectivity issues or NAT translation errors.
- Inspect the packet headers for correct address translation and response.