Skip to content

eBPF program written in Rust using the Aya library to block any incoming HTTP requests on a Linux machine. By deploying this program, you can prevent your machine from processing HTTP requests sent from other machines on the same network.

Notifications You must be signed in to change notification settings

X0rD3v1L/ebpf-rust

Repository files navigation

block-http-requests

Prerequisites

  1. Install bpf-linker: cargo install bpf-linker

Build eBPF

cargo xtask build-ebpf

To perform a release build you can use the --release flag. You may also change the target architecture with the --target flag.

Build Userspace

cargo build

Build eBPF and Userspace

cargo xtask build

Run

RUST_LOG=info cargo xtask run

About

eBPF program written in Rust using the Aya library to block any incoming HTTP requests on a Linux machine. By deploying this program, you can prevent your machine from processing HTTP requests sent from other machines on the same network.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published