mirror of https://github.com/fail2ban/fail2ban
Make Abusix lookup compatible with Dash
parent
96d404f0fb
commit
901eeff53d
|
@ -62,7 +62,8 @@ actioncheck =
|
||||||
# Values: CMD
|
# Values: CMD
|
||||||
#
|
#
|
||||||
actionban = oifs=${IFS};
|
actionban = oifs=${IFS};
|
||||||
IFS=.; SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(dig +short -t txt -q $4.$3.$2.$1.abuse-contacts.abusix.org);
|
REV_IP=$(printf %%s ${IP}. | tac -s.)
|
||||||
|
ADDRESSES=$(dig +short -t txt -q ${REV_IP}abuse-contacts.abusix.org)
|
||||||
IFS=,; ADDRESSES=$(echo $ADDRESSES)
|
IFS=,; ADDRESSES=$(echo $ADDRESSES)
|
||||||
IFS=${oifs}
|
IFS=${oifs}
|
||||||
IP=<ip>
|
IP=<ip>
|
||||||
|
|
Loading…
Reference in New Issue