This repository has been archived by the owner on Aug 8, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from linuxserver-labs/dev-conf
- Loading branch information
Showing
43 changed files
with
706 additions
and
209 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,16 @@ | ||
name: Check for base image updates | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "52 0 * * 0" | ||
|
||
jobs: | ||
call-workflow: | ||
uses: linuxserver-labs/docker-actions/.github/workflows/check-baseimage-update.yml@v5 | ||
with: | ||
repo_owner: ${{ github.repository_owner }} | ||
baseimage: "alpine" | ||
basebranch: "master" | ||
app_name: "fail2Ban" | ||
secrets: | ||
repo_release_token: ${{ secrets.repo_release_token }} |
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
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,6 @@ | ||
{ | ||
"files.associations": { | ||
"**/fail2ban/**/**.conf": "ini", | ||
"**/fail2ban/**/**.local": "ini" | ||
} | ||
} |
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
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
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,51 @@ | ||
[Definition] | ||
|
||
# Option: actionstart | ||
# Notes.: command executed on demand at the first ban (or at the start of Fail2Ban if actionstart_on_demand is set to false). | ||
# Values: CMD | ||
# | ||
actionstart = curl -X POST -d '{"tag": "f2b", "type": "info", "body": "The guard in <name> is waking up."}' \ | ||
-H "Content-Type: application/json" \ | ||
<url> | ||
|
||
# Option: actionstop | ||
# Notes.: command executed at the stop of jail (or at the end of Fail2Ban) | ||
# Values: CMD | ||
# | ||
actionstop = | ||
|
||
# Option: actioncheck | ||
# Notes.: command executed once before each actionban command | ||
# Values: CMD | ||
# | ||
actioncheck = | ||
|
||
# Option: actionban | ||
# Notes.: command executed when banning an IP. Take care that the | ||
# command is executed with Fail2Ban user rights. | ||
# Tags: <ip> IP address | ||
# <failures> number of failures | ||
# <time> unix timestamp of the ban time | ||
# Values: CMD | ||
# | ||
|
||
actionban = curl -X POST -d '{"tag": "f2b", "type": "warning", "body": "#I smell blood in <name>.\n<ip> has been banned."}' \ | ||
-H "Content-Type: application/json" \ | ||
<url> | ||
|
||
# Option: actionunban | ||
# Notes.: command executed when unbanning an IP. Take care that the | ||
# command is executed with Fail2Ban user rights. | ||
# Tags: <ip> IP address | ||
# <failures> number of failures | ||
# <time> unix timestamp of the ban time | ||
# Values: CMD | ||
# | ||
|
||
actionunban = curl -X POST -d '{"tag": "f2b", "type": "success", "body": "#Someone have seen the light in <name>.\n<ip> has been unbanned."}' \ | ||
-H "Content-Type: application/json" \ | ||
<url> | ||
|
||
[Init] | ||
|
||
url = http://apprise:8000/notify/default |
File renamed without changes.
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,86 @@ | ||
# Fail2Ban main configuration file | ||
# | ||
# Comments: use '#' for comment lines and ';' (following a space) for inline comments | ||
# | ||
# Changes: in most of the cases you should not modify this | ||
# file, but provide customizations in fail2ban.local file, e.g.: | ||
# | ||
# [DEFAULT] | ||
# loglevel = DEBUG | ||
# | ||
|
||
[DEFAULT] | ||
|
||
# Option: loglevel | ||
# Notes.: Set the log level output. | ||
# CRITICAL | ||
# ERROR | ||
# WARNING | ||
# NOTICE | ||
# INFO | ||
# DEBUG | ||
# Values: [ LEVEL ] Default: INFO | ||
# | ||
loglevel = INFO | ||
|
||
# Option: logtarget | ||
# Notes.: Set the log target. This could be a file, SYSLOG, STDERR or STDOUT. | ||
# Only one log target can be specified. | ||
# If you change logtarget from the default value and you are | ||
# using logrotate -- also adjust or disable rotation in the | ||
# corresponding configuration file | ||
# (e.g. /etc/logrotate.d/fail2ban on Debian systems) | ||
# Values: [ STDOUT | STDERR | SYSLOG | SYSOUT | FILE ] Default: STDERR | ||
# | ||
logtarget = /config/log/fail2ban/fail2ban.log | ||
|
||
# Option: syslogsocket | ||
# Notes: Set the syslog socket file. Only used when logtarget is SYSLOG | ||
# auto uses platform.system() to determine predefined paths | ||
# Values: [ auto | FILE ] Default: auto | ||
syslogsocket = auto | ||
|
||
# Option: socket | ||
# Notes.: Set the socket file. This is used to communicate with the daemon. Do | ||
# not remove this file when Fail2ban runs. It will not be possible to | ||
# communicate with the server afterwards. | ||
# Values: [ FILE ] Default: /var/run/fail2ban/fail2ban.sock | ||
# | ||
socket = /var/run/fail2ban/fail2ban.sock | ||
|
||
# Option: pidfile | ||
# Notes.: Set the PID file. This is used to store the process ID of the | ||
# fail2ban server. | ||
# Values: [ FILE ] Default: /var/run/fail2ban/fail2ban.pid | ||
# | ||
pidfile = /var/run/fail2ban/fail2ban.pid | ||
|
||
# Options: dbfile | ||
# Notes.: Set the file for the fail2ban persistent data to be stored. | ||
# A value of ":memory:" means database is only stored in memory | ||
# and data is lost when fail2ban is stopped. | ||
# A value of "None" disables the database. | ||
# Values: [ None :memory: FILE ] Default: /var/lib/fail2ban/fail2ban.sqlite3 | ||
dbfile = /config/fail2ban/fail2ban.sqlite3 | ||
|
||
# Options: dbpurgeage | ||
# Notes.: Sets age at which bans should be purged from the database | ||
# Values: [ SECONDS ] Default: 86400 (24hours) | ||
dbpurgeage = 1d | ||
|
||
# Options: dbmaxmatches | ||
# Notes.: Number of matches stored in database per ticket (resolvable via | ||
# tags <ipmatches>/<ipjailmatches> in actions) | ||
# Values: [ INT ] Default: 10 | ||
dbmaxmatches = 10 | ||
|
||
[Definition] | ||
|
||
|
||
[Thread] | ||
|
||
# Options: stacksize | ||
# Notes.: Specifies the stack size (in KiB) to be used for subsequently created threads, | ||
# and must be 0 or a positive integer value of at least 32. | ||
# Values: [ SIZE ] Default: 0 (use platform or configured default) | ||
#stacksize = 0 |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
[Definition] | ||
failregex = ^.*/api/login: 403 <HOST> \<nil\>.*$ | ||
ignoreregex = |
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,4 @@ | ||
[Definition] | ||
|
||
failregex = .*(Failed authentication attempt|invalid credentials|Attempted access of unknown user).* from <HOST> | ||
ignoreregex = |
Oops, something went wrong.