kernellogger, (edited ) The "#eBPF for #Linux Admins" series from Ansil Hameed grew and right now contains seven parts.
It among others covers how to write a "eBPF program to block all packets via XDP"[1] and how to "block a TCP port of an interface instead of all packet"[2].
This article series based on his "journey to demystify eBPF" also covers some eBPF basics and things related to it: https://ansilh.com/tags/ebpf/
[1] https://ansilh.com/posts/04-ebpf-for-linux-admins-part4/
[2] https://ansilh.com/posts/05-ebpf-for-linux-admins-part5/