Skip to content

FywOoie/xdp-SYN-flood-defender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xdp-SYN-flood-defender

A simple ddos defender using eBPF and cilium/eBPF library.

  • a SYN counter: use eBPF map to count number of packets of each IPs
  • SYN flood defender: explore one more step to block hosts that send SYN packets too fast

Environment

sudo apt-get update
sudo apt-get install -y make clang llvm libelf-dev libbpf-dev bpfcc-tools libbpfcc-dev

SYN counter using XDP

cd syn_counter
make
go run syn_counter.go
or
./counter

SYN flood defender using XDP

cd syn_flood_defender
make
go run syn_flood_defender.go
or
./defender
cd ../attack
pip install scapy
python syn_flood.py

Reference:

About

A simple defender using eBPF XDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published