This repository has been archived by the owner on Feb 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📘 Add example fail2ban filter & jail configuration file
Close #62
- Loading branch information
1 parent
c693211
commit 3545aeb
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |