fail2ban解封IP

fail2ban可以解封或者添加IP到白名单,但网上基本都是写的直接改iptables

  1. 错误提示:
  2. ERROR  NOK: ('Invalid Action name',)
  3. 'Invalid Action name'
  4.  
  5. 日志提示:
  6. May 11 17:12:32 localhost fail2ban.comm[132096]: WARNING Command ['get', 'JAIL', 'actionban', 'x.x.x.x'] has failed. Received KeyError('Invalid Action name',)
  7.  
  8. fail2ban解封命令:
  9. fail2ban-client set [$JAIL_Name] unbanip [xx.xx.xx.xx]
1 1