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 eBPF program in a line
1
sudo ecli run lsm-connect
run
1
docker run -it -v `pwd`/:/src/ yunwei37/ebpm:latest
Run:
1
sudo ecli/build/bin/Release/ecli run examples/bpftools/lsm-connect/package.json
reference
https://github.com/leodido/demo-cloud-native-ebpf-day