This commit is contained in:
Your Name 2024-09-10 09:59:56 -06:00
parent 32d1c71cc2
commit 5faf92f10e

View File

@ -319,9 +319,15 @@ start() {
status() {
DATE="$(date +%d/%b/%Y:%H:%M -d '1 min ago' )"
STATS=$( grep $DATE $NGINX_ACCESS | grep -vi $MY_IP | wc -l )
GET=$( grep $DATE $NGINX_ACCESS | grep -vi $MY_IP | grep -i get | wc -l )
POST=$( grep $DATE $NGINX_ACCESS | grep -vi $MY_IP | grep -i post | wc -l )
PUT=$( grep $DATE $NGINX_ACCESS | grep -vi $MY_IP | grep -i put | wc -l )
echo "=================================================================="
echo "Firewall Length: $($NFT list table filter | wc -l)"
echo "Traffic Last Minute: $STATS"
echo "GET: $GET"
echo "PUT: $PUT"
echo "POST: $POST"
echo "Blocked IP's:"
cat /tmp/tmp-blocked.txt
echo "=================================================================="