mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Make Abusix lookup compatible with Dash
This commit is contained in:
parent
96d404f0fb
commit
901eeff53d
1 changed files with 3 additions and 2 deletions
|
|
@ -62,8 +62,9 @@ actioncheck =
|
|||
# Values: CMD
|
||||
#
|
||||
actionban = oifs=${IFS};
|
||||
IFS=.; SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org);
|
||||
IFS=,; ADDRESSES=$(echo $ADDRESSES)
|
||||
REV_IP=$(printf %%s ${IP}. | tac -s.)
|
||||
ADDRESSES=$(dig +short -t txt -q ${REV_IP}abuse-contacts.abusix.org)
|
||||
IFS=,; ADDRESSES=$(echo $ADDRESSES)
|
||||
IFS=${oifs}
|
||||
IP=<ip>
|
||||
if [ ! -z "$ADDRESSES" ]; then
|
||||
|
|
|
|||
Loading…
Reference in a new issue