Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ipip traffic for ipv4 ldrie dynamic balancers #9

Merged
merged 1 commit into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading