diff --git a/ddos-mitigator.sh b/ddos-mitigator.sh index 0cd158d..43b63b6 100755 --- a/ddos-mitigator.sh +++ b/ddos-mitigator.sh @@ -42,6 +42,8 @@ MY_IP="94.199.214.20" MY_PORT="443" # After this point, no editing is required. +start=$(date +%s) + # These suffixes must be appended to the respective addresses and subnets. suffix8="/8" suffix16="/16" @@ -501,4 +503,6 @@ while read -r addrwithsuffix ; do exec_as_root fail2ban-client set "${jail}" banip "${addrwithsuffix}" done < "${banlist}" -echo "${green}All done!${reset}" +end=$(date +%s) + +echo "${green}All done in $((end - start)) seconds!${reset}"