๐ darkone.security.network
Network services โ isolation and supervision (R78โR80). (wip)
Covers isolation of network services (R78: server category), hardening and monitoring of exposed services (R79: fail2ban, HTTP headers, ANSSI TLS) and reduction of the network surface (R80).
Options
Section titled โOptionsโ- enable
boolEnable ANSSI network hardening (R78โR80). - exposedServices
listOf strPublic services to jail with fail2ban (R79). Each entry MUST resolve to a filter โ one shipped by fail2ban, or one declared infiltersโ or the assertion refuses the build. - filters
attrsFilters usable inexposedServices, on top of those fail2ban ships. Caddy, Synapse and Kanidm need theirs written against real journal output โ declare them here once the patterns are confirmed.- journalmatch
strJournal match for the jail (fail2ban runs on the systemd backend). - failregex
strFailure pattern, written tofilter.d/<name>.conf. Empty when fail2ban already ships the filter and only the match is missing.
- journalmatch
- publicListeners
listOf strServices allowed to listen on 0.0.0.0 / :: (R80). - httpsHeaders
boolAdds ANSSI HTTP security headers in Nginx/Caddy (R79). - tlsCiphers
listOf strANSSI TLS cipher suite for Nginx (R79).
darkone.security.network = { enable = false; exposedServices = [ ]; filters.journalmatch = "_SYSTEMD_UNIT=forgejo.service"; filters.failregex = ""; publicListeners = [ ]; httpsHeaders = true; tlsCiphers = [ ];};