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 = 

관련 정보