Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ensure ¶
Ensure creates all NFTBan system users and groups idempotently.
Creates (in order):
- system groups: nftban, nftban-auditor, nftban-panel, suricata
- nftban system user (primary group: nftban, home: /var/lib/nftban, shell: nologin)
- adds root to the nftban group (for config-read access)
Idempotent: each step skips creation if the entity already exists. Safe to run on hosts where package installs previously created the same entities.
Returns an error only if a creation command fails on a missing entity. Distro dispatch uses distro.ID (normalized by detect.DetectDistro).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.