Description of NAT statistics [Документация VAS Experts]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
en:dpi:opt_cgnat:cgnat_diagnostics [2026/03/24 14:43] elena.krasnobryzhen:dpi:opt_cgnat:cgnat_diagnostics [2026/03/24 15:16] (current) – [Output of public addresses statistics] elena.krasnobryzh
Line 221: Line 221:
 The format is the same. The format is the same.
  
 +
 +====List of NAT Translations====
 +Tracking translation lifetime. Displays a list of all NAT translations for the specified internal IP address.\\
 +The status of a translation is determined by the time of its last use and the lifetime parameter specified in the cluster options. If <lifetime> (in seconds) is specified, its value is used as the translation’s lifetime.
 +
 +Command format:
 +<code>fdpi_cli nat show <internal_ip> [<lifetime>]</code>
 +
 +Sample output:
 +<code>
 +fdpi_cli nat show 172.16.120.35
 +nat_type   protocol internal ip     internal port dest ip         dest port  external ip     external port active
 +CGNAT      TCP      172.16.120.35   33186         0.0.0.0                  172.16.120.4    1031          false
 +CGNAT      TCP      172.16.120.35   52896         17.108.151.45   80         172.16.120.4    1024          false
 +CGNAT      TCP      172.16.120.35   38762         0.0.0.0                  172.16.120.4    1033          false
 +CGNAT      TCP      172.16.120.35   40548         103.108.151.45  80         172.16.120.4    1038          false
 +CGNAT      TCP      172.16.120.35   36466         17.108.151.45   443        172.16.120.4    1036          false
 +CGNAT      TCP      172.16.120.35   37848         0.0.0.0                  172.16.120.4    1026          false
 +</code>
 +
 +Legend:
 +<code>
 +nat_type      - NAT type (0 - CGNAT, 1 - 1:1 NAT),
 +protocol      - Layer 4 protocol (0 - TCP, 1 - UDP),
 +internal_ip     - private IP,
 +internal_port - internal port,
 +dest_ip      - destination IP,
 +dest_port      - destination port,
 +external_ip     - external IP,
 +external_port   - external port,
 +active          - translation activity flag (true if active)
 +</code>
 ===== Key to command to view NAT profile statistics via fdpi_ctrl ===== ===== Key to command to view NAT profile statistics via fdpi_ctrl =====
 Command: Command: