-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
2 additions
and
20 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 |
---|---|---|
@@ -1,35 +1,17 @@ | ||
## Version 2024/10/15 | ||
# Fail2Ban filter configuration for Asterisk security | ||
# | ||
|
||
[INCLUDES] | ||
|
||
# Read common prefixes. If any customizations available -- read them from | ||
# common.local | ||
before = common.conf | ||
|
||
|
||
[Definition] | ||
|
||
_daemon = asterisk | ||
|
||
# Option: failregex | ||
# Notes.: regex to match the password failures messages in the logfile. The | ||
# host must be matched by a group named "host". The tag "<HOST>" can | ||
# be used for standard IP/hostname matching and is only an alias for | ||
# (?:::f{4,6}:)?(?P<host>\S+) | ||
# Values: TEXT | ||
# | ||
|
||
failregex = SECURITY.* SecurityEvent="FailedACL".*RemoteAddress=".+?/.+?/<HOST>/.+?".* | ||
SECURITY.* SecurityEvent="InvalidAccountID".*RemoteAddress=".+?/.+?/<HOST>/.+?".* | ||
SECURITY.* SecurityEvent="ChallengeResponseFailed".*RemoteAddress=".+?/.+?/<HOST>/.+?".* | ||
SECURITY.* SecurityEvent="InvalidPassword".*RemoteAddress=".+?/.+?/<HOST>/.+?".* | ||
SECURITY.* SecurityEvent="FailedACL".*RemoteAddress=".+?/.+?/<HOST>/.+?".* | ||
|
||
|
||
# Option: ignoreregex | ||
# Notes.: regex to ignore. If this regex matches, the line is ignored. | ||
# Values: TEXT | ||
# | ||
ignoreregex = Asterisk GIT-master | ||
ignoreregex = Asterisk GIT-master |
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