TODO: Forgot to add the bpf loader for the ((current)) main go lol.
THIS IS AN EXPERIMENTAL PROJECT. NEVER USE IT ON YOUR PROD OR NEVER RELY ON IT!
This project uses eBPF and Go to drop TODO packets on a specified network interface using Traffic Control (TC).
Note: This README is a draft, do not rely on it.
- Linux kernel with eBPF support
- Go 1.18+
- Clang
- XDP Tools
git clone https://github.com/yourusername/ebpf-drop-packets.git
cd ebpf-drop-packetsgo run main.go -iface eth0Replace eth0 with your interface.
clang -O2 -g -target bpf -I/usr/include/asm-generic -I/usr/include/asm -I/usr/include/bpf -c flowz.c -o flowz.o
sudo ip link set dev eth0 xdp obj flowz.o