Syntax for the CLI command spf2bd (FailToBan)
Last adaption: 06.2024
New:
- Layout adjustments
This article refers to a Beta version
| Command | Parameter | Description | Example | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
spf2bdspf2bd getspf2bd get |
Shows the services that are protected by FailToBan | spf2bd get | |||||||||
spf2bd setspf2bd set |
Changes parameters for monitoring services | spf2bd set service "sshd" ban_time "3600" | |||||||||
| service | Service to which the monitoring applies
| ||||||||||
| ban_time | Duration of blocking for an IP address | ||||||||||
| max_try | Number of attempts before access is blocked for an IP address | ||||||||||
| try_time | Time period within which the trials are counted | ||||||||||
spf2bd newspf2bd new |
Adds a service for monitoring | spf2bd new service "sshd" ban_time "3600" max_try "3" try_time "86400" | |||||||||
| service | Service to which the monitoring applies
| ||||||||||
| ban_time | Duration of blocking for an IP address | ||||||||||
| max_try | Number of attempts before access is blocked for an IP address | ||||||||||
| try_time | Time period within which the trials are counted | ||||||||||
spf2bd delspf2bd del |
Removes the protection of a service | spf2bd del service "sshd" | |||||||||
| service | Service to which the monitoring applies
| ||||||||||
spf2bd ipspf2bd ip getspf2bd ip get |
Shows IP addresses for which access to certain services is blocked and the duration of the remaining block | spf2bd ip get | |||||||||
spf2bd ip removespf2bd ip remove |
Cancels the ban on an IP or service. | spf2bd ip remove service "user-ui" ip "192.168.175.86" | |||||||||
| service | Service to which the monitoring applies
| ||||||||||
| ip | IP address to be released |


