https://github.com/rogercoll/xdpdrop
XDP drop package in Rust
https://github.com/rogercoll/xdpdrop
ebpf filter xdp
Last synced: 2 months ago
JSON representation
XDP drop package in Rust
- Host: GitHub
- URL: https://github.com/rogercoll/xdpdrop
- Owner: rogercoll
- License: apache-2.0
- Created: 2023-01-07T17:18:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T07:46:34.000Z (over 3 years ago)
- Last Synced: 2025-10-08T20:19:54.495Z (9 months ago)
- Topics: ebpf, filter, xdp
- Language: C
- Homepage:
- Size: 521 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xdpdrop
Drop networking packets of a specific IPv4 or DNS domain using XDP (eXpress Data Path), an eBPF-based high-performance data path used to send and receive network packets at high rates.
## Usage
```
make build
sudo target/debug/main --interface eth0 --dns-list ./examples/advertising.txt
// cat /sys/kernel/debug/tracing/trace_pipe
```
### DNS lists
Standard format for DNS blocklists files: https://github.com/blocklistproject/Lists
### IP lists
One IPv4 per line on the file.
## TODO
- IPV6 drop