From: Dirk Brenken Date: Sat, 26 Oct 2024 19:24:52 +0000 (+0200) Subject: banIP: update to 1.0.0-9 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1076ea030a157e54a9f9689640b4fee42e0a979c;p=feed%2Fpackages.git banIP: update to 1.0.0-9 * fixed gathering/printing of system information in banIP status * removed broken iblocklist.com feeds * updated readme Signed-off-by: Dirk Brenken (cherry picked from commit fb19c1469654f39b3904accfb398bb88b884562b) --- diff --git a/net/banip/Makefile b/net/banip/Makefile index 1c231bbbe6..118a6fb2ba 100644 --- a/net/banip/Makefile +++ b/net/banip/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=banip PKG_VERSION:=1.0.0 -PKG_RELEASE:=8 +PKG_RELEASE:=9 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 d7c4781768..ac0345af87 100644 --- a/net/banip/files/README.md +++ b/net/banip/files/README.md @@ -39,8 +39,6 @@ IP address blocking is commonly used to protect against brute force attacks, pre | firehol4 | firehol level 4 compilation | x | x | | | [Link](https://iplists.firehol.org/?ipset=firehol_level4) | | greensnow | suspicious server IPs | x | x | | | [Link](https://greensnow.co) | | hagezi | Threat IP blocklist | | | x | tcp: 80, 443 | [Link](https://github.com/hagezi/dns-blocklists) | -| iblockads | Advertising IPs | | | x | tcp: 80, 443 | [Link](https://www.iblocklist.com) | -| iblockspy | Malicious spyware IPs | | | x | tcp: 80, 443 | [Link](https://www.iblocklist.com) | | ipblackhole | blackhole IPs | x | x | | | [Link](https://github.com/BlackHoleMonster/IP-BlackHole) | | ipsum | malicious IPs | x | x | | | [Link](https://github.com/stamparm/ipsum) | | ipthreat | hacker and botnet TPs | x | x | | | [Link](https://ipthreat.net) | diff --git a/net/banip/files/banip-functions.sh b/net/banip/files/banip-functions.sh index 4daddf642c..c0a20f4441 100644 --- a/net/banip/files/banip-functions.sh +++ b/net/banip/files/banip-functions.sh @@ -103,8 +103,8 @@ f_system() { ban_packages="$("${ban_ubuscmd}" -S call rpc-sys packagelist '{ "all": true }' 2>/dev/null)" ban_memory="$("${ban_awkcmd}" '/^MemAvailable/{printf "%s",int($2/1000)}' "/proc/meminfo" 2>/dev/null)" ban_ver="$(printf "%s" "${ban_packages}" | "${ban_jsoncmd}" -ql1 -e '@.packages.banip')" - ban_sysver="$("${ban_ubuscmd}" -S call system board 2>/dev/null | "${ban_jsoncmd}" -ql1 -e '@.model' -e '@.release.description' | - "${ban_awkcmd}" 'BEGIN{RS="";FS="\n"}{printf "%s, %s",$1,$2}')" + ban_sysver="$("${ban_ubuscmd}" -S call system board 2>/dev/null | "${ban_jsoncmd}" -ql1 -e '@.model' -e '@.release.target' -e '@.release.distribution' -e '@.release.version' -e '@.release.revision' | + "${ban_awkcmd}" 'BEGIN{RS="";FS="\n"}{printf "%s, %s, %s %s %s %s",$1,$2,$3,$4,$5,$6}')" if [ -z "${ban_cores}" ]; then cpu="$("${ban_grepcmd}" -c '^processor' /proc/cpuinfo 2>/dev/null)" core="$("${ban_grepcmd}" -cm1 '^core id' /proc/cpuinfo 2>/dev/null)" diff --git a/net/banip/files/banip.feeds b/net/banip/files/banip.feeds index da93ece0c4..5d7b346532 100644 --- a/net/banip/files/banip.feeds +++ b/net/banip/files/banip.feeds @@ -148,18 +148,6 @@ "descr": "Threat IP blocklist", "flag": "tcp 80 443" }, - "iblockads":{ - "url_4": "https://list.iblocklist.com/?list=dgxtneitpuvgqqcpfulq&fileformat=cidr&archiveformat=gz", - "rule_4": "/^127\\./{next}/^(([1-9][0-9]{0,2}\\.){1}([0-9]{1,3}\\.){2}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\\/(1?[0-9]|2?[0-9]|3?[0-2]))?)$/{printf \"%s,\\n\",$1}", - "descr": "advertising IPs", - "flag": "gz tcp 80 443" - }, - "iblockspy":{ - "url_4": "https://list.iblocklist.com/?list=llvtlsjyoyiczbkjsxpf&fileformat=cidr&archiveformat=gz", - "rule_4": "/^127\\./{next}/^(([1-9][0-9]{0,2}\\.){1}([0-9]{1,3}\\.){2}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\\/(1?[0-9]|2?[0-9]|3?[0-2]))?)$/{printf \"%s,\\n\",$1}", - "descr": "malicious spyware IPs", - "flag": "gz tcp 80 443" - }, "ipblackhole":{ "url_4": "https://blackhole.s-e-r-v-e-r.pw/blackhole-today", "rule_4": "/^127\\./{next}/^(([1-9][0-9]{0,2}\\.){1}([0-9]{1,3}\\.){2}(1?[0-9][0-9]?|2[0-4][0-9]|25[0-5])(\\/(1?[0-9]|2?[0-9]|3?[0-2]))?)$/{printf \"%s,\\n\",$1}",