Skip to content

Instantly share code, notes, and snippets.

@trozet
Created March 18, 2025 18:53
Show Gist options
  • Save trozet/ce52ac04afb0f78636af4def56947699 to your computer and use it in GitHub Desktop.
Save trozet/ce52ac04afb0f78636af4def56947699 to your computer and use it in GitHub Desktop.
tcpdump ovnk pod -> nodeport, ETP=local on server side
root@ovn-worker2 ~]# tcpdump -i any 'port 80 or port 30973' -nneev
tcpdump: WARNING: any: That device doesn't support promiscuous mode
(Promiscuous mode not supported on the "any" device)
dropped privs to tcpdump
tcpdump: listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes
18:51:34.072883 genev_sys_6081 P ifindex 8 0a:58:64:58:00:03 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 63, id 17095, offset 0, flags [DF], proto TCP (6), length 60)
10.244.0.3.45952 > 172.18.0.2.30973: Flags [S], cksum 0x3355 (correct), seq 800905722, win 65280, options [mss 1360,sackOK,TS val 1346754696 ecr 0,nop,wscale 7], length 0
18:51:34.073256 ovn-k8s-mp0 In ifindex 6 0a:58:0a:f4:01:01 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 62, id 17095, offset 0, flags [DF], proto TCP (6), length 60)
10.244.0.3.45952 > 172.18.0.2.30973: Flags [S], cksum 0x3355 (correct), seq 800905722, win 65280, options [mss 1360,sackOK,TS val 1346754696 ecr 0,nop,wscale 7], length 0
18:51:34.073271 ovn-k8s-mp0 Out ifindex 6 0a:58:0a:f4:01:02 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 61, id 17095, offset 0, flags [DF], proto TCP (6), length 60)
10.244.1.2.45952 > 169.254.0.3.30973: Flags [S], cksum 0x3469 (correct), seq 800905722, win 65280, options [mss 1360,sackOK,TS val 1346754696 ecr 0,nop,wscale 7], length 0
18:51:34.073740 5a3f1f71bd56639 Out ifindex 12 0a:58:0a:f4:01:01 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 60, id 17095, offset 0, flags [DF], proto TCP (6), length 60)
10.244.1.2.45952 > 10.244.1.6.80: Flags [S], cksum 0x4b1e (correct), seq 800905722, win 65280, options [mss 1360,sackOK,TS val 1346754696 ecr 0,nop,wscale 7], length 0
18:51:34.073756 5a3f1f71bd56639 P ifindex 12 0a:58:0a:f4:01:06 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 64, id 0, offset 0, flags [DF], proto TCP (6), length 60)
10.244.1.6.80 > 10.244.1.2.45952: Flags [S.], cksum 0x181e (incorrect -> 0x3288), seq 1220991992, ack 800905723, win 64704, options [mss 1360,sackOK,TS val 2055240581 ecr 1346754696,nop,wscale 7], length 0
18:51:34.073990 ovn-k8s-mp0 In ifindex 6 0a:58:0a:f4:01:01 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60)
169.254.0.3.30973 > 10.244.1.2.45952: Flags [S.], cksum 0x1bd3 (correct), seq 1220991992, ack 800905723, win 64704, options [mss 1360,sackOK,TS val 2055240581 ecr 1346754696,nop,wscale 7], length 0
18:51:34.073996 ovn-k8s-mp0 Out ifindex 6 0a:58:0a:f4:01:02 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 62, id 0, offset 0, flags [DF], proto TCP (6), length 60)
172.18.0.2.30973 > 10.244.0.3.45952: Flags [S.], cksum 0x1abf (correct), seq 1220991992, ack 800905723, win 64704, options [mss 1360,sackOK,TS val 2055240581 ecr 1346754696,nop,wscale 7], length 0
18:51:34.074221 genev_sys_6081 Out ifindex 8 0a:58:64:58:00:02 ethertype IPv4 (0x0800), length 80: (tos 0x0, ttl 61, id 0, offset 0, flags [DF], proto TCP (6), length 60)
172.18.0.2.30973 > 10.244.0.3.45952: Flags [S.], cksum 0x1abf (correct), seq 1220991992, ack 800905723, win 64704, options [mss 1360,sackOK,TS val 2055240581 ecr 1346754696,nop,wscale 7], length 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment