gamemann / XDP-Firewall

A firewall that utilizes the Linux kernel's XDP hook. The XDP hook allows for very fast network processing on Linux systems. This is great for dropping malicious traffic from a (D)DoS attack. IPv6 is supported with this firewall! I hope this helps network engineers/programmers interested in utilizing XDP!
https://deaconn.net/
MIT License
490 stars 87 forks source link

libbpf ERRO #48

Open mraniyah opened 3 months ago

mraniyah commented 3 months ago

ubuntu@ubunu2004:~/Desktop/XDP-Firewall$ sudo xdpfw -s libbpf: elf: skipping unrecognized data section(8) .xdp_run_config libbpf: elf: skipping unrecognized data section(9) xdp_metadata libbpf: elf: skipping unrecognized data section(20) .eh_frame libbpf: elf: skipping relo section(21) .rel.eh_frame for section(20) .eh_frame libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: prog 'xdp_pass': BPF program load failed: Invalid argument libbpf: prog 'xdp_pass': failed to load: -22 libbpf: failed to load object '/usr/local/lib/bpf/xdp-dispatcher.o' libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata libbpf: elf: skipping unrecognized data section(7) xdp_metadata Loaded XDP program on mode SKB/generic. Packets Allowed: 0 | Packets Dropped: 0

Is that correctly working? should I ignore these above?

gamemann commented 2 months ago

Hey, I apologize for the long delay (I've been really busy recently)! The warnings/errors above can be ignored, it just has to do with the XDP Dispatcher from xdp-tools trying to load a xdp_pass XDP test program.

When I have the time, I will look into skipping this test in the future.