dev-resources.site
for different kinds of informations.
Aya Rust tutorial Part Two - Setting up
Published at
5/9/2024
Categories
ebpf
rust
linux
networking
Author
stevelatif
Author
10 person written this
stevelatif
open
© steve latif
Part Two: Setting up the Prerequisites
Assumptions
All the examples will be run on Ubuntu Linux. On other distributions your mileage may vary
First step: setup dependencies
Install packages
$ sudo apt install clang llvm libelf-dev libpcap-dev build-essential libc6-dev-i386 \
graphviz make gcc libssl-dev bc libelf-dev libcap-dev clang gcc-multilib \
libncurses5-dev git pkg-config libmnl-dev bison flex linux-tools-$(uname -r)
Verify that you have bpftool installed on your system
$ sudo bpftool prog
If there are problems installing it from a package, you can install it from source:
$ git clone --recurse-submodules https://github.com/libbpf/bpftool.git
$ cd bpftool/src
$ make -j$(nproc)
$ sudo https://raw.githubusercontent.com/stevelatif/articles/main/blogs/bpftool prog
Install rust, following the instructions at https://rustup.rs/
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Once you have rust and cargo installed and in your path, install the following rust related tools:
$ rustup udpate
$ cargo install cargo-generate
$ cargo install bpf-linker
$ cargo install cargo-generate
$ cargo install rustfmt
$ cargo install bpf-linker
ebpf Article's
30 articles in total
Unlocking Cloud-Native Security with Cilium and eBPF
read article
Let’s Get Into the Weeds: The OSI Model and Why it Still Matters
read article
Expanding eBPF Compile Once, Run Everywhere(CO-RE) to Userspace Compatibility
read article
eBPF Practical Tutorial: Using eBPF to Trace Go Routine States
read article
Measuring Function Latency with eBPF
read article
The use of eBPF – in Netflix, GPU infrastructure, Windows programs and more
read article
eBPF Tutorial by Example 21: Programmable Packet Processing with XDP
read article
eBPF Tutorial by Example: Capturing TCP Information with XDP
read article
eBPF Development Practice: Modifying System Call Arguments with eBPF
read article
eBPF Developer Tutorial: XDP Load Balancer
read article
Using eBPF to Trace Nginx Requests
read article
Fast Packet IO
read article
eBPF: Revolutionizing Linux Kernel Programming
read article
Cilium no EKS [Lab Session]
read article
Fooling Port Scanners: Simulating Open Ports with eBPF and Rust
read article
Simple Firewall with Rust and Aya
read article
Aya Rust Tutorial part 5: Using Maps
read article
Aya Rust tutorial Part Four XDP Hello World
read article
eBPF, sidecars, and the future of the service mesh
read article
eBPF: Unleashing Kernel Magic for Modern Infrastructure
read article
Aya Rust tutorial Part Two - Setting up
currently reading
Aya Rust tutorial Part Three XDP Pass
read article
Aya Rust tutorial Part One
read article
Unveiling the Simplicity of Cluster Mesh for Kubernetes Deployments
read article
Beyond the Buzz: Embracing the Magic of eBPF in Kubernetes
read article
Wednesday Links - Edition 2023-03-13
read article
Why context matters in Kubernetes securityÂ
read article
Programmability and Performance in the Linux Kernel by eBPF.
read article
eBPF, Service Mesh and Sidecar
read article
eBPF Tutorial by Example 16: Monitoring Memory Leaks
read article
Featured ones: