feat: write consolidated blocklists and mirror git-diffable router state

- Add `write_blocklist_files()` to emit final IPv4/IPv6 blocklists to `reports/app/data/`
- Add `APP_REPORT_DIR` / `APP_REPORT_DATA_DIR` constants for consolidated outputs
- Write firewall state snapshots to `data/mikrotik/` for git diff auditing
- Capture router state before scanning; fall back to scan-only if router is unreachable
- Use `split_cidr_versions` for CIDR-aware subnet splitting
- Update README with output layout and git-diffable state notes
This commit is contained in:
zwitschi committed 2026-08-05 19:44:09 +02:00
1 parent 6005340ecb
commit 28c77691bb
4 files changed
+91 -26

No files matched your search

+4
View File
@@ -39,6 +39,10 @@ REPORT_DIR = os.path.join(PROJECT_ROOT, "reports")
COPYPARTY_REPORT_DIR = os.path.join(REPORT_DIR, "copyparty")
NPM_REPORT_DIR = os.path.join(REPORT_DIR, "npm")
# Consolidated application outputs (blocklists, shared data)
APP_REPORT_DIR = os.path.join(REPORT_DIR, "app")
APP_REPORT_DATA_DIR = os.path.join(APP_REPORT_DIR, "data")
# MikroTik reports + structured snapshots from each run
MIKROTIK_REPORT_DIR = os.path.join(REPORT_DIR, "mikrotik")
MIKROTIK_REPORT_DATA_DIR = os.path.join(MIKROTIK_REPORT_DIR, "data")