{"id":15056995,"url":"https://github.com/banyc/xdp_hello","last_synced_at":"2026-02-17T07:09:16.024Z","repository":{"id":219970181,"uuid":"750156261","full_name":"Banyc/xdp_hello","owner":"Banyc","description":"DDoS mitigation","archived":false,"fork":false,"pushed_at":"2024-02-04T07:52:40.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-12T22:04:01.098Z","etag":null,"topics":["ddos","ebpf","xdp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Banyc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-30T04:55:23.000Z","updated_at":"2024-07-21T16:17:53.000Z","dependencies_parsed_at":"2024-02-06T03:32:06.122Z","dependency_job_id":null,"html_url":"https://github.com/Banyc/xdp_hello","commit_stats":null,"previous_names":["banyc/xdp_hello"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Banyc/xdp_hello","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fxdp_hello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fxdp_hello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fxdp_hello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fxdp_hello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Banyc","download_url":"https://codeload.github.com/Banyc/xdp_hello/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Banyc%2Fxdp_hello/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262302466,"owners_count":23290269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddos","ebpf","xdp"],"created_at":"2024-09-24T21:59:50.383Z","updated_at":"2025-10-13T10:21:12.765Z","avatar_url":"https://github.com/Banyc.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# app\n\n## Prerequisites\n\n1. Install bpf-linker: `cargo install bpf-linker`\n\n## Build eBPF\n\n```bash\ncargo xtask build-ebpf\n```\n\nTo perform a release build you can use the `--release` flag.\nYou may also change the target architecture with the `--target` flag.\n\n## Build Userspace\n\n```bash\ncargo build\n```\n\n## Run\n\n### DDoS mitigation\n\nRun BPF program:\n\n```bash\nRUST_LOG=info cargo xtask run --bin ddos_mitigation -- --port 80 --port 443 --pps 1\n```\n\n- The restricted local ports are `443` and `80`\n- Restriction will be imposted if the packets per second exceed `1` for each port\n\nTrust an IP:\n\n```bash\ncurl -X PUT http://127.0.0.1:6969/ip/1.1.1.1\n```\n\nForget an IP:\n\n```bash\ncurl -X DELETE http://127.0.0.1:6969/ip/1.1.1.1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fxdp_hello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbanyc%2Fxdp_hello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbanyc%2Fxdp_hello/lists"}