Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
📘 Add example fail2ban filter & jail configuration file
Browse files Browse the repository at this point in the history
Close #62
  • Loading branch information
dwisiswant0 committed Mar 15, 2021
1 parent 4431ef7 commit 003e7b7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions teler.fail2ban-filter.example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Fail2Ban filter detected threats in teler log

[Definition]

failregex = \[<HOST>\] \[(Common Web Attack(: .*)?|CVE|Bad (IP Address|Referrer|Crawler)|Directory Bruteforce)\] .*$

# NOTES: You can ignore false-positive threats hereby or whitelist in the teler configuration file
ignoreregex =

datepattern = {^LN-BEG}
11 changes: 11 additions & 0 deletions teler.fail2ban-jail.example.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[teler]
enabled = true
port = http,https
filter = teler
logpath = /path/to/teler-threats.log
## Change as you wish
# Ban rules
maxretry = 10
findtime = 60
# Ban in seconds
bantime = 600

0 comments on commit 003e7b7

Please sign in to comment.