clean-dns-bpf icon indicating copy to clipboard operation
clean-dns-bpf copied to clipboard

基于 Rust + eBPF 丢弃 GFW DNS 污染包

Results 11 clean-dns-bpf issues
Sort by recently updated
recently updated
newest added

其实一直挺关注BPF的,就是不知道Gnu/Linux内核如何支持xdp.有没有Debian Gnu/Linux下的详细讲解

`└─# ip link set dev eth0 xdp obj ./clean-dns.elf libbpf: elf: couldn't find symbol table in ./clean-dns.elf, stripped object file? ERROR: opening BPF object file failed`

This version don't incompatibility with openwrt, i write c version for it. https://github.com/zhylmzr/clean-dns-c/tree/main

![2021-11-09 18-34-17屏幕截图](https://user-images.githubusercontent.com/8669055/140912499-bbf803ff-42b1-41c5-9bd7-7e5fe02ed51f.png) 图里114的正确结果也满足ip.id = 0并且1Q1A

`[root@localhost rust]# sudo ip link set dev eth0 xdp obj ./clean-dns.elf No ELF library support compiled in. [root@localhost rust]# uname -r 5.14.13-1.el7.elrepo.x86_64 [root@localhost rust]#` 尝试过很多种方法。

系统: ``` uname -a Linux Debian-VM-x64 5.10.0-8-amd64 #1 SMP Debian 5.10.46-4 (2021-08-03) x86_64 GNU/Linux ``` 运行: ``` ip link set dev ens33 xdp obj ./clean-dns.elf Segmentation fault ``` 日志: ```...