A NetBox plugin for documenting network security policy: rulebooks, zones, and NSM object links
Project description
netbox-nsm
NetBox plugin for security policy documentation (zones, rulebooks, object links).
No firewall push — inventory and policy only.
Status: WIP · NetBox: 4.5–4.6 · Plugin: 0.4.3 · Requires: netbox-custom-objects
Features
- Security Panel on prefix, IP, device, VM, custom objects —
+ Assignfor zones, addresses, … - Rulebooks with flexible columns (zones, addresses, labels, …)
- Rules — table, grouping, zone matrix
- IP Analysis — address resolution (panel loupe or
/plugins/netbox-nsm/ip-analysis/) - Object Analyzer — graph from any NetBox object
Screenshots
Setup — import COT types and run demos:
Object config — nsm_config per COT type:
Rulebooks list and detail (fields, enforcement targets):
Rules tab — zone grouping (Starter demo, 62.5k rules) and address-based rules:
Zone matrix — permit/deny between zones:
IP Analysis — destination tree with merge/diff:
Installation
pip install netbox-nsm
PLUGINS = ["netbox_custom_objects", "netbox_nsm"]
PLUGINS_CONFIG = {
"netbox_nsm": {
"menu_label": "Security",
"panel_label": "Security",
"setup_menu": True,
"setup_allow_destructive_actions": True, # demos only; disable in prod
},
}
./manage.py migrate netbox_custom_objects --no-input
./manage.py migrate netbox_nsm --no-input
First run
Security → Configuration → Setup — sections 1 → 2 → 3 (labels, COTs, type configs), then optional 4 Starter demo.
Then: open a prefix → Security Panel → + Assign → zone. Rulebooks under Security → Rulebooks.
Details: docs/using_netbox_nsm.md
API
/api/plugins/netbox-nsm/ — nsm-configs/<slug>/, object-links/, ip-analysis/
Rules and policy objects: netbox-custom-objects API.
Demos
| Demo | Where | Notes |
|---|---|---|
| Starter | Setup §4 | Sync; recommended — zone matrix + addresses schema |
| Enterprise DC | Setup §4 | Empty IPAM DB only |
| Addresses Million Scale | CLI scripts/create_addresses_million_scale.py |
Bench; RQ worker required |
Documentation
| File | Topic |
|---|---|
| docs/using_netbox_nsm.md | Operations |
| docs/DATABASE.md | PostgreSQL tables |
| docs/RULE_DATA_STORAGE.md | UI vs DB data model |
| ARCHITECTURE.md | Code (developers) |
| CHANGELOG.md | Versions |
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_nsm-0.4.4.tar.gz.
File metadata
- Download URL: netbox_nsm-0.4.4.tar.gz
- Upload date:
- Size: 439.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cf38f20ba29bee1f76c57657b5ae7b0d38c52c898a6476cdf03ddcb7d94e2dc
|
|
| MD5 |
2163c502c4489e918566d1a3721b969a
|
|
| BLAKE2b-256 |
224443e8010d5a750c491df197f38305249ab043bbf626f1d2930c24ee543608
|
Provenance
The following attestation bundles were made for netbox_nsm-0.4.4.tar.gz:
Publisher:
publish.yml on christianbur/netbox-nsm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_nsm-0.4.4.tar.gz -
Subject digest:
9cf38f20ba29bee1f76c57657b5ae7b0d38c52c898a6476cdf03ddcb7d94e2dc - Sigstore transparency entry: 1819906707
- Sigstore integration time:
-
Permalink:
christianbur/netbox-nsm@f8b9ca7114b3624feeb2ab46c88836429ab5d6d9 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/christianbur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f8b9ca7114b3624feeb2ab46c88836429ab5d6d9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file netbox_nsm-0.4.4-py3-none-any.whl.
File metadata
- Download URL: netbox_nsm-0.4.4-py3-none-any.whl
- Upload date:
- Size: 577.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e2cba11b14376b7ef63552d0ca02ad4e25636a7d89a1f23da3ebe7e519fc0e8
|
|
| MD5 |
d7697e5ef9b22769c66c23303eacab74
|
|
| BLAKE2b-256 |
e9ccd412c051e3ab2f192eee94fce675854416f55cd13ca1162ce74ebf43a0ec
|
Provenance
The following attestation bundles were made for netbox_nsm-0.4.4-py3-none-any.whl:
Publisher:
publish.yml on christianbur/netbox-nsm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_nsm-0.4.4-py3-none-any.whl -
Subject digest:
0e2cba11b14376b7ef63552d0ca02ad4e25636a7d89a1f23da3ebe7e519fc0e8 - Sigstore transparency entry: 1819906743
- Sigstore integration time:
-
Permalink:
christianbur/netbox-nsm@f8b9ca7114b3624feeb2ab46c88836429ab5d6d9 -
Branch / Tag:
refs/tags/v0.4.4 - Owner: https://github.com/christianbur
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@f8b9ca7114b3624feeb2ab46c88836429ab5d6d9 -
Trigger Event:
release
-
Statement type: