cURL を使用した Fail2ban アクションバン

cURL を使用した Fail2ban アクションバン

私のUbuntuサーバーのメールは働く下記のコマンドで確認しました。

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

私の中でjail.local

例: 侵入者ip=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 が禁止されるようで、電子メールも受信しましたが、curl が API にトリガーされない理由がわかりません。

何か見逃しているのでしょうか?


私はもう試した

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

curlアクション.conf

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

関連情報