Open Roberto6969 opened 4 years ago
Try giving fail2ban-telegram.sh file execution permissions
sudo chmod +x fail2ban-telegram.sh
And I see you are using a different path to store the script than on the manual. Try to copy it on /etc/fal2ban/scripts/
Hello,
fail2ban-telegram script could not be executed:
2020-07-16 16:14:09,366 fail2ban.utils [1]: ERROR b6524f70 -- exec: /home/pi/fail2ban/scripts/fail2ban-telegram.sh start 2020-07-16 16:14:09,366 fail2ban.jail [1]: DEBUG Starting jail 'sshd-ddos' 2020-07-16 16:14:09,367 fail2ban.utils [1]: ERROR b6524f70 -- stderr: '/bin/sh: /home/pi/fail2ban/scripts/fail2ban-telegram.sh: not found' 2020-07-16 16:14:09,367 fail2ban.utils [1]: ERROR b6524f70 -- returned 127 2020-07-16 16:14:09,367 fail2ban.utils [1]: INFO HINT on 127: "Command not found". Make sure that all commands in '/home/pi/fail2ban/scripts/fail2ban-telegram.sh start' are in the PATH of fail2ban-server pr$ 2020-07-16 16:14:09,368 fail2ban.actions [1]: ERROR Failed to start jail 'sshd' action 'telegram': Error starting action Jail('sshd')/telegram: 'Script error'
But the same script /scripts/fail2ban-telegram.sh I can execute manually and send telegram. Do you have any idea how to solve this?
Thank You!