Fail2Ban
Edit Fail2Ban
Changed onUsing this endpoint you can edit the Fail2Ban config and black or whitelist new ips.
post/api/v1/edit/fail2ban
Request
- Base URL/ (relative, and the document was published on a file host, not at the API’s origin)
- AuthAPI key in header X-API-Key
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
Changes
- info
added the new optional request property
/ - info
added the new optional request property
/
- info
- warning
removed the request property
/ - warning
removed the request property
/
- warning