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
Next revision
Previous revision
en:dpi:opt_cgnat:cgnat_diagnostics [2026/03/24 14:43] elena.krasnobryzhen:dpi:opt_cgnat:cgnat_diagnostics [2026/03/25 13:50] (current) – [List of NAT Translations] elena.krasnobryzh
Line 187: Line 187:
 thr_dthr_lalfs - how many ports were created in one worker thread but used in another from 'long' queue thr_dthr_lalfs - how many ports were created in one worker thread but used in another from 'long' queue
 </code> </code>
 +====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.
  
-The output format is the same.+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> 
 + 
 +=====Legend for the NAT statistics view by subscriber===== 
 + 
 +Command: 
 +<code>fdpi_ctrl list status --service 11 --login UserName (--ip IP)</code> 
 + 
 +Sample output:
 <code> <code>
 fdpi_ctrl list status --service 11 --ip 192.168.4.20 fdpi_ctrl list status --service 11 --ip 192.168.4.20
Line 198: Line 234:
 </code> </code>
  
-**Output:**+Legend:
 <code> <code>
 192.168.4.20 - private IP 192.168.4.20 - private IP
Line 219: Line 255:
 fdpi_ctrl list all status --service 11 --outformat=json fdpi_ctrl list all status --service 11 --outformat=json
 </code> </code>
-The format is the same. 
- 
 ===== Key to command to view NAT profile statistics via fdpi_ctrl ===== ===== Key to command to view NAT profile statistics via fdpi_ctrl =====
 Command: Command: