Closed craig closed 1 year ago
Hey!
It appears you're using a newer version of LibBPF that breaks the build process. I'll have to look into this further, but for now I'd recommend going back to LibBPF 7fc4d50 by either doing cd libbpf && git checkout 7fc4d50
or re-cloning the repository (or deleting the libbpf
clone) and performing git submodule update --init
which should automatically checkout the commit that works with the firewall.
You may also use the following to clone the repository and its submodules (e.g. LibBPF using the correct commit).
git clone --recursive https://github.com/gamemann/XDP-Firewall
I'm going to keep this issue open since I want to get the tool working with the latest version of LibBPF or the newer XDP loader (libxdp) in the future once I have the time. The last time I used libxdp
, it was pretty unorganized, but that was months ago. So it has probably changed since.
Thanks for the hint! Yea, it would be great if newest libxdp worked of course. I'm pretty happy this runs on stock Debian 11, thank you for your work! :)
No problem and thank you! I agree it's awesome things can work on vanilla Linux OS's for XDP compared to other network libraries such as the DPDK which usually require additional changes :smile:
Thanks for the hint! Yea, it would be great if newest libxdp worked of course. I'm pretty happy this runs on stock Debian 11, thank you for your work! :)
This workaround also works with Ubuntu 20 / 22. Thanks.
Hi Christian,
I'm trying to build the repo on debian 11 / Kernel 5.10.0-19-amd64 like this:
Unfortunately, I'm hitting a build error:
Any hints on this? Could you share how you're building?