fix
This commit is contained in:
parent
32d1c71cc2
commit
5faf92f10e
@ -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 "=================================================================="
|
||||
|
Loading…
Reference in New Issue
Block a user