recipe_fail2ban.ts view source
(options?: Fail2banJailOptions | undefined): string import {fail2ban_jail} from '@fuzdev/zap/recipe_fail2ban.js'; Build the fail2ban jail.local text for options.
Writes a [DEFAULT] section with the global ban/find/retry tunables and the
banaction, and a stricter [sshd] jail reading the journal, or sshd_logpath
when one is given. jail.local is read after the distro's jail.d/*.conf, so its
values win over a packaged default, such as Debian's nftables banaction or
Alpine's alpine-sshd filter.
options?
returns
string the complete jail.local text, terminated by a trailing newline.