cURL을 사용하는 Fail2ban

cURL을 사용하는 Fail2ban

내 Ubuntu 서버 이메일은 다음과 같습니다.피복재. 다음 명령으로 확인했습니다.

echo "Mail is working on this server." | mail -s subject <[email protected]>

내 내내jail.local

전임자. 침입자아이피=1.1.1.1

[sshd]
port       = 2222
destemail  = [email protected]
sendername = fail2ban
mta        = mail
action     = %(action_mwl)s
actionban  = curl -s https://www.app.com/ssh/ban?ip=1.1.1.1

금지된 자격 증명을 사용한 SSH 시도가 5번 실패했을 때 IP가 금지된 것처럼 보였습니다. 이메일도 받았지만 왜 컬이 내 API를 트리거하지 않았는지 모르겠습니다.

내가 뭐 놓친 거 없니?


나는 노력했다

[sshd]
port       = 2222
destemail  = [email protected]
sendername = fail2ban
mta        = mail
bantime    = 1m
maxretry   = 1
action     = %(action_mwl)s
banaction  = %(curlAction)s <<<< ADDED ⭐️

컬 작업.conf

[Definition]
actionstart =
actionstop = 
actioncheck = 
actionban = curl -s https://www.app.com/ssh/ban?ip=1.1.1.1
actionunban = 

관련 정보