Sharp.Augeas/Sharp.Augeas.Test/lens/tests/test_fail2ban.aug

25 lines
413 B
Plaintext
Raw Normal View History

2022-11-08 20:57:02 +03:00
module Test_fail2ban =
let conf = "[DEFAULT]
mta = ssmtp
bantime = 432000
destemail = fail2ban@domain.com
findtime = 3600
maxretry = 3
[sshd]
enabled = true
"
test Fail2ban.lns get conf =
{ "DEFAULT"
{ "mta" = "ssmtp" }
{ "bantime" = "432000" }
{ "destemail" = "fail2ban@domain.com" }
{ "findtime" = "3600" }
{ "maxretry" = "3" }
{} }
{ "sshd"
{ "enabled" = "true" } }