ihciah / clean-dns-bpf Goto Github PK
View Code? Open in Web Editor NEW基于 Rust + eBPF 丢弃 GFW DNS 污染包
基于 Rust + eBPF 丢弃 GFW DNS 污染包
ubuntu 21.04
其实一直挺关注BPF的,就是不知道Gnu/Linux内核如何支持xdp.有没有Debian Gnu/Linux下的详细讲解
aliyun
Dose it support macOS ? Thanks.
This version don't incompatibility with openwrt, i write c version for it.
RT
如题
系统:
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
日志:
Oct 9 14:34:11 Debian-VM-x64 kernel: [ 212.184511] ip[2211] segfault at 10 ip 00007fcf5f36e582 sp 00007fff796b4de0 error 4 in libbpf.so.0.3.0[7fcf5f358000+23000]
Oct 9 14:34:11 Debian-VM-x64 kernel: [ 212.184517] Code: 49 63 47 60 48 8d 58 01 48 69 c0 d8 00 00 00 48 89 5c 24 18 48 89 44 24 50 49 8b 9f 00 01 00 00 48 b8 ab aa aa aa aa aa aa aa <48> 8b 73 10 48 f7 e6 48 c1 ea 04 48 89 54 24 10 48 83 fe 170f 86
rt
└─# 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
[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]#
尝试过很多种方法。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.