With L4 you mean the transport layer? I’m a bit confused because in your examples you show layer 3 (IP).<p>This eBPF-based package dropper using machine learning (decision tree) might be of interest to you: <a href="https://github.com/CN-TU/machine-learning-in-ebpf">https://github.com/CN-TU/machine-learning-in-ebpf</a>
Neat! So this is a tool you can use to implement firewall-ish rules and drop packets from certain IP addresses. It looks like the actual XDP code is written in C, and somehow makes its way into the Go program, is this the way EBPF tools are usually implemented in Go?