backup
This commit is contained in:
@@ -1,13 +0,0 @@
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# BanGUI — Simulated authentication failure filter
|
||||
#
|
||||
# Matches lines written by Docker/simulate_failed_logins.sh
|
||||
# Format: <timestamp> bangui-auth: authentication failure from <HOST>
|
||||
# Jail: manual-Jail
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
[Definition]
|
||||
|
||||
failregex = ^.* bangui-auth: authentication failure from <HOST>\s*$
|
||||
|
||||
ignoreregex =
|
||||
@@ -1,25 +1,10 @@
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# BanGUI — Blocklist-import jail
|
||||
#
|
||||
# Dedicated jail for IPs banned via the BanGUI blocklist import
|
||||
# feature. This is a manual-ban jail: it does not watch any log
|
||||
# file. All bans are injected programmatically via
|
||||
# fail2ban-client set blocklist-import banip <ip>
|
||||
# which the BanGUI backend uses through its fail2ban socket
|
||||
# client.
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
[blocklist-import]
|
||||
|
||||
enabled = true
|
||||
# No log-based detection — only manual banip commands are used.
|
||||
enabled = false
|
||||
filter =
|
||||
logpath = /dev/null
|
||||
backend = auto
|
||||
maxretry = 1
|
||||
findtime = 1d
|
||||
# Block imported IPs for 24 hours.
|
||||
bantime = 86400
|
||||
|
||||
# Never ban the Docker bridge network or localhost.
|
||||
ignoreip = 127.0.0.0/8 ::1 172.16.0.0/12
|
||||
|
||||
@@ -1,19 +1,10 @@
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# BanGUI — Simulated authentication failure jail
|
||||
#
|
||||
# Watches Docker/logs/auth.log (mounted at /remotelogs/bangui)
|
||||
# for lines produced by Docker/simulate_failed_logins.sh.
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
|
||||
[manual-Jail]
|
||||
|
||||
enabled = true
|
||||
enabled = false
|
||||
filter = manual-Jail
|
||||
logpath = /remotelogs/bangui/auth.log
|
||||
backend = polling
|
||||
maxretry = 3
|
||||
findtime = 120
|
||||
bantime = 60
|
||||
|
||||
# Never ban localhost, the Docker bridge network, or the host machine.
|
||||
ignoreip = 127.0.0.0/8 ::1 172.16.0.0/12
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
# Local overrides — not overwritten by the container init script.
|
||||
# Provides banaction so all jails can resolve %(action_)s interpolation.
|
||||
|
||||
[DEFAULT]
|
||||
banaction = iptables-multiport
|
||||
banaction_allports = iptables-allports
|
||||
Reference in New Issue
Block a user