2023년 10월 19일 목요일

[Linux] fail2ban에서 차단된 IP 해제

 [ 출처 : https://blog.naver.com/]

# fail2ban-client postfix

 Status for the jail: postfix
|- Filter
|  |- Currently failed: 4
|  |- Total failed:     7
|  `- File list:        /var/log/maillog
`- Actions
   |- Currently banned: 0
   |- Total banned:     1
   `- Banned IP list: 121.xxx.xxx.x

로그에서 차단된 IP를 확인

# cat /var/log/fail2ban.log* | grep "] Ban"|awk '{print $NF}' | sort | uniq -c | sort -n

차단된 IP를 해제
# fail2ban-client set postfix unbanip 121.xxx.xxx.x

댓글 없음:

댓글 쓰기