参考文献

环境说明

  • nginx version: nginx/1.18.0
  • CentOS Linux release 8.3.2011
  • fail2ban 0.11.2
  • 防火墙:firewalld

问题说明

步骤说明

[root@iZbp14vt99zpj8dde2fdlmZ wwwroot]# fail2ban-client status nginx-cc
Status for the jail: nginx-cc
|- Filter
|  |- Currently failed: 12
|  |- Total failed:     338
|  `- File list:        /home/wwwlogs/access.log
`- Actions
   |- Currently banned: 19
   |- Total banned:     21
   `- Banned IP list:   47.117.94.207 47.117.33.84 47.117.79.197 47.117.84.41 47.117.67.205 47.117.73.237 47.117.37.92 47.117.75.161 47.117.39.76 47.117.65.124 47.117.39.232 47.117.35.77 47.117.34.254 113.57.182.197 185.142.236.43 169.255.6.18 47.90.209.11 120.36.229.157 61.151.178.176