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

Provide usage examples in README.md to confirm operation #11

Open
kevinworth opened this issue Aug 15, 2023 · 7 comments
Open

Provide usage examples in README.md to confirm operation #11

kevinworth opened this issue Aug 15, 2023 · 7 comments

Comments

@kevinworth
Copy link

The original kernel introduction of bpfilter includes a series of usage examples via iptables ping and bpftool. A similar example set of commands (and perhaps expected log output from the bpfilter daemon) would be a huge help in confirming things are hooked in properly after building/loading the binary.

@qdeslandes
Copy link
Contributor

This is a great idea! I'm currently working on BPF_NETFILTER program type support for iptables, which slightly will change bpfilter's behaviour when used with iptables. I'll be able to provide up-to-date usage examples after that! :)

@tengliu0929
Copy link

Could you please list the python subversion this project used, I tried python3.12, but got some python libs had been deprecated for python3.12.

@qdeslandes
Copy link
Contributor

@tengliu0929 Could you provide more details about the error? The README lists the required packages for Fedora 38+, are you using a different distribution? Did you install the packages using pip or your package manager?

@tengliu0929
Copy link

But I use ubuntu21.04, does this make a difference? I suppose it is the version of python3.12 that does matters, not the pip version

@tengliu0929
Copy link

Build error, I tried on ubuntu22.04 and ubuntu23.04, but get the same error, does you not define the macro BPF_NETFILTER?
Uploading BPFILTER.png…

@qdeslandes
Copy link
Contributor

That's the reason then: BPF_NETFILTER has been added to Linux in version 6.4.

On Ubuntu, their are two ways to build and use bpfilter:

  • Use Ubuntu 23.10 or more recent (e.g. 24.04 when it comes out).
  • Use Ubuntu 22.04 and enable the hadware enablement (HWE) stack.

Both solutions would provide Linux 6.5, which is recent enable to support BPF_NETFILTER.

@tengliu0929
Copy link

ok, got it , try later, thank you for your reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants