A BPF program for high speed filtering.
No followers yet
Once you ship this you can't edit the description of the project, but you'll be able to add more devlogs and re-ship it as you add new features!
Wrote a benchmarking program for the traffic speeds in rust! Graph is attached bellow. TLDR of the graph is that with my method we're basically equivalent to the base case (zero filtering) and at some points beats it, which i'm really pleased about! So there's no almost no cost to sniffing packets with the program.
This is sort of a hard project to explain, I am able to detect what browser someone is using before their request even hits the server. No JavaScript. No User-Agents. It's implemented at the Kernel so could theoretically process 26 million packets per second on consumer hardware. I'm doing this with XDP and BPF filters, which is sort of like Java except it has only 256 bytes of ram.