summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2026-06-05 16:23:43 +0300
committerGitHub <noreply@github.com>2026-06-05 16:23:43 +0300
commit1952ec7fc1daecfc31618e1f9000a2fa8ccb5cb3 (patch)
treecc9e33fc283f3413a2fd696b3bf31326556b6f2e
parentd52ab44d86cfad4f8a66649761ac7a598f53931b (diff)
parent0b6d02c5188e359480a69fc3c415a5f0c4163ea1 (diff)
downloadvyos-documentation-1952ec7fc1daecfc31618e1f9000a2fa8ccb5cb3.tar.gz
vyos-documentation-1952ec7fc1daecfc31618e1f9000a2fa8ccb5cb3.zip
Merge pull request #2081 from alexandr-san4ez/T8308-circinus_backport
conntrack: T8308: Enhancements to the `show conntrack table` op-mode command (mirror 2055) (backport)
-rw-r--r--docs/configuration/service/conntrack-sync.md29
1 files changed, 16 insertions, 13 deletions
diff --git a/docs/configuration/service/conntrack-sync.md b/docs/configuration/service/conntrack-sync.md
index 4aad6283..61fa7034 100644
--- a/docs/configuration/service/conntrack-sync.md
+++ b/docs/configuration/service/conntrack-sync.md
@@ -149,32 +149,35 @@ the other node at startup.
## Operation
-```{opcmd} show conntrack table ipv4
+```{opcmd} show conntrack table \<ipv4|ipv6\>
Make sure conntrack is enabled by running and show connection tracking table.
:::{code-block} none
vyos@vyos:~$ show conntrack table ipv4
-TCP state codes: SS - SYN SENT, SR - SYN RECEIVED, ES - ESTABLISHED,
-FW - FIN WAIT, CW - CLOSE WAIT, LA - LAST ACK,
-TW - TIME WAIT, CL - CLOSE, LI - LISTEN
-
-CONN ID Source Destination Protocol TIMEOUT
-1015736576 10.35.100.87:58172 172.31.20.12:22 tcp [6] ES 430279
-1006235648 10.35.101.221:57483 172.31.120.21:22 tcp [6] ES 413310
-1006237088 10.100.68.100 172.31.120.21 icmp [1] 29
-1015734848 10.35.100.87:56282 172.31.20.12:22 tcp [6] ES 300
-1015734272 172.31.20.12:60286 239.10.10.14:694 udp [17] 29
-1006239392 10.35.101.221 172.31.120.21 icmp [1] 29
+Id Original src Original dst Original packets Original bytes Reply src Reply dst Reply packets Reply bytes Protocol State Timeout Mark Zone
+---------- -------------- -------------- ------------------ ---------------- ------------ -------------- --------------- ------------- ---------- ----------- --------- ------ ------
+282920088 10.0.2.2:41724 10.0.2.15:22 79 8741 10.0.2.15:22 10.0.2.2:41724 52 8495 tcp TIME_WAIT 3 0
+102466872 192.168.50.1 192.168.50.4 31953 2684052 192.168.50.4 192.168.50.1 31953 2684052 icmp 29 0 110
+1445684978 10.0.2.2:37762 10.0.2.15:22 111 9969 10.0.2.15:22 10.0.2.2:37762 86 13323 tcp ESTABLISHED 431999 0
+3302843234 10.0.2.2:37758 10.0.2.15:22 2612 3845685 10.0.2.15:22 10.0.2.2:37758 254 17447 tcp TIME_WAIT 11 0
:::
:::{note}
If the table is empty and you have a warning message, it means
conntrack is not enabled. To enable conntrack, just create a NAT or a firewall
-rule. {cfgcmd}`set firewall state-policy established action accept`
+rule.
+{cfgcmd}`set firewall global-options state-policy established action accept`
:::
```
+```{opcmd} show conntrack table \<ipv4|ipv6\> vrf \<vrf-name\>
+
+Show connection tracking table filtered by VRF name. Only entries originating
+from the specified VRF are displayed.
+```
+
+
```{opcmd} show conntrack-sync cache external
Show connection syncing external cache entries