{"id":17851629,"url":"https://github.com/ivanitskiy/ebpf-fw","last_synced_at":"2026-04-24T16:36:08.353Z","repository":{"id":212572830,"uuid":"730794991","full_name":"ivanitskiy/ebpf-fw","owner":"ivanitskiy","description":"A simple demo of building a network firewall with eBPF","archived":false,"fork":false,"pushed_at":"2023-12-15T18:23:49.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T16:51:12.815Z","etag":null,"topics":["demo","ebpf","firewall","poc","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivanitskiy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-12-12T17:30:13.000Z","updated_at":"2023-12-15T18:20:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"39c6a0b2-8256-4f4f-bf3d-f7735ada349f","html_url":"https://github.com/ivanitskiy/ebpf-fw","commit_stats":null,"previous_names":["ivanitskiy/ebpf-fw"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivanitskiy/ebpf-fw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanitskiy%2Febpf-fw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanitskiy%2Febpf-fw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanitskiy%2Febpf-fw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanitskiy%2Febpf-fw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivanitskiy","download_url":"https://codeload.github.com/ivanitskiy/ebpf-fw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivanitskiy%2Febpf-fw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32231142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["demo","ebpf","firewall","poc","rust"],"created_at":"2024-10-27T23:22:08.687Z","updated_at":"2026-04-24T16:36:08.325Z","avatar_url":"https://github.com/ivanitskiy.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ebpf-fw\nA simple demo of building a network firewall with eBPF with the help of https://github.com/aya-rs/aya\n\n\nThis demo loads `XDP` eBPF application and does a few things:\n - parses Ethernet protocol\n - if it is IPv6 - drop it\n - if it is IPv4 - print SRC and DST for TCP or UDP only\n\n\nTo run it to drop all packets for 80 coming from \u003cyour IP\u003e `RUST_LOG=info cargo xtask run  -- -i enp0s3 -p 80 -s \u003cyour IP\u003e`\n\nThe source of the eBPF program is here: [myapp/myapp-ebpf/src/main.rs](./myapp/myapp-ebpf/src/main.rs).\n\nHere is how to use it: \n```\nOptions:\n  -i, --iface \u003cIFACE\u003e            [default: enp0s3]\n  -s, --source-ips \u003cSOURCE_IPS\u003e\n  -p, --port \u003cPORT\u003e\n  -h, --help                     Print help\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanitskiy%2Febpf-fw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivanitskiy%2Febpf-fw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivanitskiy%2Febpf-fw/lists"}