{"id":26223402,"url":"https://github.com/stellaraf/netbox-to-nfa","last_synced_at":"2026-04-25T06:31:41.406Z","repository":{"id":67721519,"uuid":"381534419","full_name":"stellaraf/netbox-to-nfa","owner":"stellaraf","description":"Synchronize NetBox prefixes with Noction NFA Query Filters","archived":false,"fork":false,"pushed_at":"2023-11-17T17:01:08.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2023-11-18T17:46:59.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause-clear","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stellaraf.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}},"created_at":"2021-06-30T00:50:24.000Z","updated_at":"2023-11-18T17:46:59.838Z","dependencies_parsed_at":null,"dependency_job_id":"9a80b274-e22f-49eb-b073-037c681044b5","html_url":"https://github.com/stellaraf/netbox-to-nfa","commit_stats":null,"previous_names":[],"tags_count":5,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fnetbox-to-nfa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fnetbox-to-nfa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fnetbox-to-nfa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stellaraf%2Fnetbox-to-nfa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stellaraf","download_url":"https://codeload.github.com/stellaraf/netbox-to-nfa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243262300,"owners_count":20262983,"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":[],"created_at":"2025-03-12T17:32:38.220Z","updated_at":"2025-12-26T06:50:50.093Z","avatar_url":"https://github.com/stellaraf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cbr/\u003e\n  \u003cimg src=\"https://res.cloudinary.com/stellaraf/image/upload/v1604277355/stellar-logo-gradient.svg\" width=300 /\u003e\n  \u003cbr/\u003e\n  \u003ch3\u003enetbox-to-nfa\u003c/h3\u003e\n  \u003cbr/\u003e\n  \u003ca href=\"https://github.com/stellaraf/netbox-to-nfa/actions?query=workflow%3Arelease\"\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/stellaraf/netbox-to-nfa/release.yml?color=9100fa\u0026style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003cbr/\u003e\n  \n  Synchronize [NetBox](https://github.com/netbox-community/netbox) prefixes with Noction NFA Query Filters\n\n\u003c/div\u003e\n\n## Usage\n\n### Download the latest [release](https://github.com/stellaraf/netbox-to-nfa/releases/latest)\n\nThere are multiple builds of the release, for different CPU architectures/platforms:\n\nThere are multiple builds of the release, for different CPU architectures/platforms. Download and unpack the release for your platform:\n\n```shell\nwget \u003crelease url\u003e\ntar xvfz \u003crelease file\u003e nb2nfa\n```\n\n### Run the binary\n\n```console\n$ ./nb2nfa --help\n\nnb2nfa 0.2.0\n  Synchronize Netbox Prefixes with Noction NFA\n\nOptions:\n\n  -h, --help   display help information\n\nCommands:\n\n  help       display help information\n  purge      Purge all NFA Filters Managed by netbox-to-nfa\n  sync       Run synchronization\n  prefixes   List prefixes from NetBox that should be synced to NFA\n  filters    List all NFA filters\n  config     Get validated configuration variables\n\n```\n\n### Environment Variables\n\nAll of the below environment variables are required for netbox-to-nfa to run.\n\n| Name                     | Description                                                                                      |\n| :----------------------- | :----------------------------------------------------------------------------------------------- |\n| `NETBOX_URL`             | NetBox URL, e.g. `https://netbox.example.com`                                                    |\n| `NETBOX_TOKEN`           | NetBox API Token                                                                                 |\n| `NETBOX_NFA_ROLE`        | NetBox prefix role. A prefix must be assigned this role for it to be picked up.                  |\n| `NFA_URL`                | NFA URL, e.g. `https://nfa.example.com`                                                          |\n| `NFA_USERNAME`           | NFA admin username                                                                               |\n| `NB2NFA_EXCLUDED_RANGES` | Comma-separated list of prefixes for which traffic to/from will be excluded from each NFA filter |\n\n#### `NB2NFA_EXCLUDED_RANGES` Detail\n\nFor example, if you had a prefix from NetBox of `203.0.113.0/24`, and set:\n\n```bash\nexport NB2NFA_EXCLUDED_RANGES=\"192.0.2.0/24,2001:db8::/32\"\n```\n\nThe resulting NFA filter logic would look something like:\n\n- Anything **from** `203.0.113.0/24`, unless the destination is `192.0.2.0/24` or `2001:db8::/32`\n- Anything **to** `203.0.113.0/24`, unless the source is `192.0.2.0/24` or `2001:db8::/32`\n\n## Creating a New Release\n\nThis project uses [GoReleaser](https://goreleaser.com/) to manage releases. After completing code changes and committing them via Git, be sure to tag the release before pushing:\n\n```\ngit tag \u003crelease\u003e\n```\n\nOnce a new tag is pushed, GoReleaser will automagically create a new build \u0026 release.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fnetbox-to-nfa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstellaraf%2Fnetbox-to-nfa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstellaraf%2Fnetbox-to-nfa/lists"}