From: Dirk Brenken Date: Mon, 3 Mar 2025 18:44:37 +0000 (+0100) Subject: banIP: update 1.5.3-2 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=62a4633e7c0ed46926dfc15acdf6b57eb604aa9b;p=openwrt-packages.git banIP: update 1.5.3-2 * fix uci config processing (ban_logterm) * update the readme Signed-off-by: Dirk Brenken --- diff --git a/net/banip/Makefile b/net/banip/Makefile index 65804b16f..6a8407dde 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=1.5.3 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_LICENSE:=GPL-3.0-or-later PKG_MAINTAINER:=Dirk Brenken diff --git a/net/banip/files/README.md b/net/banip/files/README.md index 0b1f947d4..b9fa19180 100644 --- a/net/banip/files/README.md +++ b/net/banip/files/README.md @@ -354,7 +354,7 @@ LuCI : 'luci: failed login' sshd1 : 'error: maximum authentication attempts exceeded' sshd2 : 'sshd.*Connection closed by.*\[preauth\]' asterisk : 'SecurityEvent=\"InvalidAccountID\".*RemoteAddress=' -nginx : 'received a suspicious remote IP '\''.*'\''' +nginx : 'received a suspicious remote IP .*' openvpn : 'TLS Error: could not determine wrapping from \[AF_INET\]' AdGuard : 'AdGuardHome.*\[error\].*/control/login: from ip' ``` diff --git a/net/banip/files/banip-functions.sh b/net/banip/files/banip-functions.sh index 940765394..979506f49 100644 --- a/net/banip/files/banip-functions.sh +++ b/net/banip/files/banip-functions.sh @@ -267,7 +267,14 @@ f_conf() { local append option="${1}" value="${2//\"/\\\"}" eval "append=\"\${${option}}\"" - eval "${option}=\"${append}${value} \"" + case "${option}" in + "ban_logterm") + eval "${option}=\"${append}${value}\\|\"" + ;; + *) + eval "${option}=\"${append}${value} \"" + ;; + esac } } config_load banip