{"id":18373993,"url":"https://github.com/enigmacurry/nifty-filter","last_synced_at":"2026-01-31T10:34:17.979Z","repository":{"id":260322842,"uuid":"880952415","full_name":"EnigmaCurry/nifty-filter","owner":"EnigmaCurry","description":"a template and configuration tool for netfilter / nftables","archived":false,"fork":false,"pushed_at":"2024-12-07T23:12:51.000Z","size":172,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T20:35:15.610Z","etag":null,"topics":["netfilter","nftables"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/nifty-filter","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EnigmaCurry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2024-10-30T16:48:09.000Z","updated_at":"2024-10-31T20:04:34.000Z","dependencies_parsed_at":"2025-04-14T00:25:36.377Z","dependency_job_id":null,"html_url":"https://github.com/EnigmaCurry/nifty-filter","commit_stats":null,"previous_names":["enigmacurry/nifty-filter"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/EnigmaCurry/nifty-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnigmaCurry%2Fnifty-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnigmaCurry%2Fnifty-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnigmaCurry%2Fnifty-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnigmaCurry%2Fnifty-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EnigmaCurry","download_url":"https://codeload.github.com/EnigmaCurry/nifty-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EnigmaCurry%2Fnifty-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28938653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["netfilter","nftables"],"created_at":"2024-11-06T00:13:00.292Z","updated_at":"2026-01-31T10:34:17.964Z","avatar_url":"https://github.com/EnigmaCurry.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nifty-filter\n\n\u003e 💥 warning: alpha pre-release version\n\nnifty-filter is a template and configuration tool for\n[netfilter](https://www.netfilter.org/) (nftables) and is useful for\ncreating a Linux based Internet protocol (IP) router. It is a program\nthat generates the `nftables.nft` config file, using its own internal\ntemplate. The configuration is done entirely by environment variables\n(or `.env` file) and the output is type checked and validated.\n\nThe jinja-like [template](templates/router.nft.txt) is powered by\n[djc/askama](https://github.com/djc/askama), which implements compile\ntime type checking of input values. Therefore, if you wish to\ncustomize the template, you will have to compile your own nifty-filter\nbinary. However, the default template is designed to cover most of the\nuse cases for a typical home LAN router, so if that suits your needs\nthen you can simply download the precompiled binary from the releases\npage.\n\n## Install\n\n[Download the latest release for your platform.](https://github.com/EnigmaCurry/nifty-filter/releases)\n\nOr install via cargo ([crates.io/crates/nifty-filter](https://crates.io/crates/nifty-filter)):\n\n```\ncargo install nifty-filter\n```\n\n## Examples\n\nThere are several included [examples](examples):\n\n * [home_router.sh](examples/home_router.sh) - This example is a\n   self-contained bash script where all config is defined inside the\n   script as environment variables.\n   \n * [home_router.env](examples/home_router.env) - This example is a\n   \"dot env\" file containging all the config variables. You can pass\n   this to `nifty-router --ignore-env --env-file [FILE]`.\n   \n \nYou can mix the two styles together as long you don't specify\n`--ignore-env`, in which case only the file passed to `--env-file`\nwill be used.\n   \n## Config styles\n\nYou can supply your configuration in two ways: set environment\nvariables and/or provide a `.env` file.\n\nExample with a `.env` file that ignores all other environment\nvariables:\n\n```bash\nnifty-filter nftables --env-file .env --ignore-env\n```\n\nExample with a `.env` file and mixing it with some outside environment\nvariables:\n\n```bash\nINTERFACE_LAN=eth0 \\\nINTERFACE_WAN=eth1 \\\nnifty-filter nftables --env-file .env\n```\n\nExample with only environment variables (but this is an incomplete\nconfig):\n\n```bash\nINTERFACE_LAN=eth0 \\\nINTERFACE_WAN=eth1 \\\nnifty-filter nftables\n```\n\nRun with extra validation which passes the output to `nft -c -f -` for\nsanity checking:\n\n```\n#...\nnifty-filter nftables --validate\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigmacurry%2Fnifty-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenigmacurry%2Fnifty-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenigmacurry%2Fnifty-filter/lists"}