← 返回命令列表

Linux command

fail2ban-client 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

fail2ban-client status [jail]

Remove

fail2ban-client set [jail] unbanip [ip_address]

Example

fail2ban-client ping

说明

fail2ban-client configures and controls the fail2ban server. Fail2ban monitors log files and bans IP addresses that show malicious behavior like repeated failed login attempts. Used for managing jail status, banning/unbanning IPs, and server control.

参数

status _jail_
Show jail status
set _jail_ _action_ _value_
Configure jail settings
unbanip _ip_
Remove IP from ban list
ping
Check server is alive
start
Start the server
stop
Stop the server
reload
Reload configuration

FAQ

What is the fail2ban-client command used for?

fail2ban-client configures and controls the fail2ban server. Fail2ban monitors log files and bans IP addresses that show malicious behavior like repeated failed login attempts. Used for managing jail status, banning/unbanning IPs, and server control.

How do I run a basic fail2ban-client example?

Run `fail2ban-client status [jail]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does status _jail_ do in fail2ban-client?

Show jail status