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

📝 Redirecting Egress Packets Through Cloudflare Tunnels via eBPF Program on Linux #1368

Open
victorstewart opened this issue Dec 12, 2024 · 1 comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Documentation Improvements or additions to documentation

Comments

@victorstewart
Copy link

victorstewart commented Dec 12, 2024

not sure how to classify this, but chose documentation.

i use Cloudflare tunnels to expose my dev cluster to the Internet. packets come into through a tunnel, and then get redirected into an XDP load balancer on the physical NIC... which will either push the packet to another machine on the subnet or redirect it into the network namespace of a container.

my problem now is figuring out how i can use an eBPF program to redirect "response" packets back through either that same tunnel or another tunnel on another machine?

hoping this isn't impossible without switching to WARP connectors.

@victorstewart victorstewart added Priority: Normal Minor issue impacting one or more users Type: Documentation Improvements or additions to documentation labels Dec 12, 2024
@victorstewart
Copy link
Author

it seems like cloudflare tunnels capture outgoing packets by hijacking the local DNS resolver... if so then as long as i dump the packet on any local egress interface i should be good... will report back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Normal Minor issue impacting one or more users Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant