mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 10:14:44 +08:00
647 B
647 B
layout, title, date, category, author, tags, summary
| layout | title | date | category | author | tags | summary | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| post | lsm-connect | 2022-10-10 16:18 | bpftools | yunwei37 |
|
BPF LSM program (on socket_connect hook) that prevents any connection towards 1.1.1.1 to happen. Found in demo-cloud-native-ebpf-day |
run
docker run -it -v `pwd`/:/src/ yunwei37/ebpm:latest
or compile with ecc:
$ ecc lsm-connect.bpf.c
Compiling bpf object...
Packing ebpf object and config into package.json...
Run:
sudo ecli examples/bpftools/lsm-connect/package.json