{"id":50358637,"url":"https://github.com/tatupesonen/moatd","last_synced_at":"2026-05-30T00:01:27.838Z","repository":{"id":360973475,"uuid":"1252519928","full_name":"tatupesonen/moatd","owner":"tatupesonen","description":"tiny eBPF firewall","archived":false,"fork":false,"pushed_at":"2026-05-28T17:49:34.000Z","size":3045,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-05-28T18:08:46.335Z","etag":null,"topics":["ebpf","firewall","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tatupesonen.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-28T15:48:18.000Z","updated_at":"2026-05-28T17:49:38.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tatupesonen/moatd","commit_stats":null,"previous_names":["tatupesonen/moatd"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/tatupesonen/moatd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fmoatd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fmoatd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fmoatd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fmoatd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tatupesonen","download_url":"https://codeload.github.com/tatupesonen/moatd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatupesonen%2Fmoatd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33675019,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ebpf","firewall","rust"],"created_at":"2026-05-30T00:01:26.999Z","updated_at":"2026-05-30T00:01:27.832Z","avatar_url":"https://github.com/tatupesonen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"moatd.png\" alt=\"moatd\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A small, fast host firewall for Linux. eBPF in the kernel, ufw-style commands.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://github.com/tatupesonen/moatd/actions\"\u003e\u003cimg alt=\"CI\" src=\"https://github.com/tatupesonen/moatd/actions/workflows/ci.yml/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## What it is\n\nA host firewall that filters packets with eBPF (XDP on ingress, TC on egress) before they reach the kernel network stack.\n\n## Install\n\n```sh\ngit clone git@github.com:tatupesonen/moatd.git\ncd moatd\ncargo build --release\nsudo make install\nsudo systemctl daemon-reload\nsudo moatd enable\n```\n\n## Usage\n\n```sh\n# Allow SSH from anywhere\nsudo moatd allow 22/tcp\n\n# Allow HTTP and HTTPS\nsudo moatd allow 80/tcp\nsudo moatd allow 443/tcp\n\n# Allow SSH only on the tailscale interface\nsudo moatd allow in on tailscale0 to any port 22\n\n# Block inbound HTTP\nsudo moatd deny in port 80 proto tcp\n\n# Default deny incoming (outbound replies still pass)\nsudo moatd default deny incoming\n\n# List, delete, reset\nsudo moatd list\nsudo moatd delete 2\nsudo moatd reset\n\n# Show status, toggle logging\nsudo moatd status\nsudo moatd logging on\n```\n\nFull rule grammar:\n\n```\nmoatd \u003callow|deny|reject\u003e [in|out]\n                           [on \u003ciface\u003e]\n                           [from \u003ccidr\u003e] [port \u003cp|p-p\u003e]\n                           [to \u003ccidr\u003e]   [port \u003cp|p-p\u003e]\n                           [proto tcp|udp|icmp]\n```\n\n## Documentation\n\nThe full guide lives under [`book/`](book/):\n\n```sh\ncargo install mdbook\nmdbook serve book\n```\n\n## License\n\nGPL-3.0-or-later. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatupesonen%2Fmoatd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatupesonen%2Fmoatd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatupesonen%2Fmoatd/lists"}