Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 1.08 KB

INSTALL.md

File metadata and controls

42 lines (36 loc) · 1.08 KB

Installation

I assume:

  • you run linux Debian (Test & run on debian 11.3)
  • the default jail configuration is defaults-debian.conf (in /etc/fail2ban/jail.d)

Clone repository

$ sudo -i
# cd /opt/ 
# git clone https://github.com/etienne-64/fail2ban-jails-telegram.git

Create your bot

Tuto on sendpluse.com . Read the part : "How to Create a New Bot for Telegram"

If you forgot your id:

  • go totelegram and select @userinfobot (find in the Search bar)
  • in message area, write "/start"
  • you get id, first name and languade

Prepare script

In the folder /opt/fail2ban-jails-telegram

# echo "your telegram id" > telegram.id         # echo "331640851" > telegram.id 
# echo "your telegram key" > telegram.key       # echo "900081109:AA67e8kZe77ghj7i5fwb7H_UJBuuuuuykE4" > telegram.key
# chmod +x install.sh

Improve the jails

Modify default-debian.conf

Run script

# ./install.sh

Update

# cd /opt/fail2ban-jails-telegram
# git pull
# ./install.sh