From 419ae9e1c9701a23070f80412cf02ee2b7de226c Mon Sep 17 00:00:00 2001 From: Jez Caudle Date: Mon, 7 Jul 2025 11:11:12 +0000 Subject: [PATCH] Removed $_LOGIN_LIMIT variable --- .README.md.kate-swp | Bin 0 -> 409 bytes pf-badhost.sh | 8 +------- 2 files changed, 1 insertion(+), 7 deletions(-) create mode 100644 .README.md.kate-swp diff --git a/.README.md.kate-swp b/.README.md.kate-swp new file mode 100644 index 0000000000000000000000000000000000000000..f419be0515813b91106689477ef28587857fb8fb GIT binary patch literal 409 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vn(aC1ndP|H`dd;crwaT|XSnJ+i6cHQ* vlraNhA0YO14faIhGAbbWzCdxtd<5SQ#4mD%Yfk|36GyqgPyhuc*3bX|P{uoK literal 0 HcmV?d00001 diff --git a/pf-badhost.sh b/pf-badhost.sh index 749a74b..e59ab6e 100644 --- a/pf-badhost.sh +++ b/pf-badhost.sh @@ -170,7 +170,7 @@ https://sslbl.abuse.ch/blacklist/sslipblacklist.txt ### SSH attackers # https://lists.blocklist.de/lists/22.txt -# https://lists.blocklist.de/lists/ssh.txt +# https://lists.blocklist.de/lists/ssh.txt: # https://lists.blocklist.de/lists/bruteforcelogin.txt ### FTP attackers @@ -960,7 +960,6 @@ VAR_SANITY_CHECK() { IS_INT "${_IPV4}" || 'User defined variable "$_IPV4" contains a non-integer value - Unable to proceed!' IS_INT "${_IPV6}" || ERR 'User defined variable "$_IPV6" contains a non-integer value - Unable to proceed!' IS_INT "${_LOG}" || ERR 'User defined variable "$_LOG" contains a non-integer value - Unable to proceed!' - IS_INT "${_LOGIN_LIMIT}" || ERR 'User defined variable "$_LOGIN_LIMIT" contains a non-integer value - Unable to proceed!' IS_INT "${_NO_UID_CHECK}" || ERR 'User defined variable "$_NO_UID_CHECK" contains a non-integer value - Unable to proceed!' IS_INT "${_PRINT_ONLY}" || ERR 'User defined variable "$_PRINT_ONLY" contains a non-integer value - Unable to proceed!' IS_INT "${_RETRY}" || ERR 'User defined variable "$_RETRY" contains a non-integer value - Unable to proceed!' @@ -976,11 +975,6 @@ VAR_SANITY_CHECK() { ERR 'No address family enabled! Please enable IPv4 and/or IPv6 in your pf-badhost config!' fi - # Make sure $_LOGIN_LIMIT is greater than 0 - if [ "${_LOGIN_LIMIT}" -lt 1 ]; then - _LOGIN_LIMIT=1 - fi - # Make sure $RETRY is greater than 0 if [ "${_RETRY}" -lt 1 ]; then _RETRY=1