Skip to content

Commit

Permalink
Merge pull request #9 from nebius/IK8SNET-497
Browse files Browse the repository at this point in the history
Allow ipip traffic for ipv4 ldrie dynamic balancers
  • Loading branch information
alexferenets authored Feb 13, 2025
2 parents 10cf711 + 1f5fd2b commit 32eb5dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bpf/lib/conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,10 @@ ct_extract_ports6(struct __ctx_buff *ctx, int off, struct ipv6_ct_tuple *tuple)
return DROP_CT_INVALID_HDR;

break;
case IPPROTO_IPIP:
if (l4_load_ports(ctx, off+sizeof(struct iphdr), &tuple->dport) < 0)
return DROP_CT_INVALID_HDR;
break;
default:
/* Can't handle extension headers yet */
return DROP_CT_UNKNOWN_PROTO;
Expand Down
15 changes: 15 additions & 0 deletions nebius/patches/allow_ipip_traffic.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/bpf/lib/conntrack.h b/bpf/lib/conntrack.h
index 4fb2f84c1f..111d853636 100644
--- a/bpf/lib/conntrack.h
+++ b/bpf/lib/conntrack.h
@@ -553,6 +553,10 @@ ct_extract_ports6(struct __ctx_buff *ctx, int off, struct ipv6_ct_tuple *tuple)
return DROP_CT_INVALID_HDR;

break;
+ case IPPROTO_IPIP:
+ if (l4_load_ports(ctx, off+sizeof(struct iphdr), &tuple->dport) < 0)
+ return DROP_CT_INVALID_HDR;
+ break;
default:
/* Can't handle extension headers yet */
return DROP_CT_UNKNOWN_PROTO;

0 comments on commit 32eb5dd

Please sign in to comment.