nftables: serve allow, disallow and allowed, keeping allowances as its own state

The operator, 2026-11-21 20:35: a firewall module has tools to control the
firewall beside the provisioning from declarations. The holder keeps one
allowance per protocol, port and interface in its state allowances, says every
change as allowances-changed, removes an allowance at its until by a timer on
its own state (and every expired one at its start, before started), and rules
marks each allowance loaded by its comment in the mesh's table. It writes no
rule: the node-engine renders the allowances.

Builds: ADR 0683; design 33 control-verbs §1-§7, §9; design 47 H H-A-304..310, H-A-312 (2)
This commit is contained in:
2026-11-21 20:40:35 +01:00
parent 553bfb0ccf
commit 7bd1e74086
5 changed files with 582 additions and 10 deletions
+11 -1
View File
@@ -15,10 +15,20 @@
"serves": [
"rules",
"reload",
"remove"
"remove",
"allow",
"disallow",
"allowed"
]
}
],
"requires": [
{
"name": "allowances",
"storage": "key-value",
"template": "state"
}
],
"filtering": {
"into": "/etc/nftables.conf"
},