Fail2Ban
Edit Fail2Ban
Using this endpoint you can edit the Fail2Ban config and black or whitelist new ips.
post/api/v1/edit/fail2ban
Request body
Example request
{
"attr": {
"ban_time": "86400",
"ban_time_increment": "1",
"blacklist": "10.100.6.5/32,10.100.8.4/32",
"max_attempts": "5",
"max_ban_time": "86400",
"netban_ipv4": "24",
"netban_ipv6": "64",
"retry_window": "600",
"whitelist": "mailcow.tld"
},
"items": "none"
}Response
OK