-
Notifications
You must be signed in to change notification settings - Fork 4k
encryption.wireguard.persistentKeepalive is not working effectively #35187
Copy link
Copy link
Closed
Labels
area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.Impacts bpf/ or low-level forwarding details, including map management and monitor messages.area/encryptionImpacts encryption support such as IPSec, WireGuard, or kTLS.Impacts encryption support such as IPSec, WireGuard, or kTLS.feature/wireguardRelates to Cilium's Wireguard featureRelates to Cilium's Wireguard featurekind/community-reportThis was reported by a user in the Cilium community, eg via Slack.This was reported by a user in the Cilium community, eg via Slack.kind/questionFrequently asked questions & answers. This issue will be linked from the documentation's FAQ.Frequently asked questions & answers. This issue will be linked from the documentation's FAQ.needs/triageThis issue requires triaging to establish severity and affected area.This issue requires triaging to establish severity and affected area.
Description
Metadata
Metadata
Assignees
Labels
area/datapathImpacts bpf/ or low-level forwarding details, including map management and monitor messages.Impacts bpf/ or low-level forwarding details, including map management and monitor messages.area/encryptionImpacts encryption support such as IPSec, WireGuard, or kTLS.Impacts encryption support such as IPSec, WireGuard, or kTLS.feature/wireguardRelates to Cilium's Wireguard featureRelates to Cilium's Wireguard featurekind/community-reportThis was reported by a user in the Cilium community, eg via Slack.This was reported by a user in the Cilium community, eg via Slack.kind/questionFrequently asked questions & answers. This issue will be linked from the documentation's FAQ.Frequently asked questions & answers. This issue will be linked from the documentation's FAQ.needs/triageThis issue requires triaging to establish severity and affected area.This issue requires triaging to establish severity and affected area.
Is there an existing issue for this?
Version
equal or higher than v1.16.0 and lower than v1.17.0
What happened?
I am not sure if this is a bug for cilium, but would like to learn the possibility or feedback from the community.
install cilium with
cilium install --version v1.16.2 --set encryption.enabled=true,encryption.type=wireguard,encryption.wireguard.persistentKeepalive=1s, and check thepersistentKeepalivepackage every 1 second iteration via tcpdump command as following.tcpdump -pvn -i cilium_wg0 -tt tcpdump: listening on cilium_wg0, link-type RAW (Raw IP), snapshot length 262144 bytes 1727905297.665510 IP (tos 0x0, ttl 64, id 51437, offset 0, flags [none], proto UDP (17), length 94) 172.18.0.3.48703 > 172.18.0.2.8472: OTV, flags [I] (0x08), overlay 0, instance 6 IP (tos 0x0, ttl 64, id 12044, offset 0, flags [DF], proto ICMP (1), length 44) 10.244.2.203 > 10.244.0.147: ICMP echo request, id 38309, seq 12743, length 24 1727905297.665768 IP (tos 0x0, ttl 64, id 25228, offset 0, flags [none], proto UDP (17), length 94) 172.18.0.3.55144 > 172.18.0.4.8472: OTV, flags [I] (0x08), overlay 0, instance 6 IP (tos 0x0, ttl 64, id 36536, offset 0, flags [DF], proto ICMP (1), length 44) 10.244.2.203 > 10.244.1.36: ICMP echo request, id 38309, seq 12743, length 24 1727905297.665810 IP (tos 0x0, ttl 64, id 1454, offset 0, flags [DF], proto ICMP (1), length 44) 172.18.0.3 > 172.18.0.4: ICMP echo request, id 38309, seq 12743, length 24 1727905297.666034 IP (tos 0x0, ttl 64, id 9719, offset 0, flags [none], proto UDP (17), length 94) 172.18.0.2.48703 > 172.18.0.3.8472: OTV, flags [I] (0x08), overlay 0, instance 4 IP (tos 0x0, ttl 64, id 56297, offset 0, flags [none], proto ICMP (1), length 44) 10.244.0.147 > 10.244.2.203: ICMP echo reply, id 38309, seq 12743, length 24 ...i cannot confirm the keepalive packet 1 second iteration.
but it looks like wireguard configuration on the host is successfully set,
How can we reproduce the issue?
Cilium Version
tomoyafujita@~/kind >cilium version cilium-cli: v0.16.0-6-g70bd400f compiled with go1.22.1 on linux/amd64 cilium image (default): v1.15.1 cilium image (stable): v1.16.2 cilium image (running): 1.16.2Kernel Version
Kubernetes Version
Regression
No response
Sysdump
cilium-sysdump-20241002-162642.zip
Relevant log output
No response
Anything else?
No response
Cilium Users Document
Code of Conduct