You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WireGuard uses direct routing for same-subnet traffic similar to hybrid
mode, but Traceflow was not checking for WireGuard mode when determining
packet actions and forwarding behavior.
This commit adds WireGuard mode checks in the Traceflow packet parsing
and flow generation logic to correctly handle packets when WireGuard
encryption is enabled.
Signed-off-by: xliuxu <[email protected]>
// In hybrid mode or WireGuard mode, packets to Pod IPs in the same subnet are forwarded
353
+
// directly without encapsulation. Check if the destination is a Pod IP to determine
354
+
// the correct action (Forwarded vs ForwardedOutOfNetwork).
355
+
if (c.networkConfig.TrafficEncapMode==config.TrafficEncapModeHybrid||c.networkConfig.TrafficEncryptionMode==config.TrafficEncryptionModeWireGuard) &&c.podSubnetChecker!=nil {
0 commit comments