This commit is contained in:
Your Name 2024-09-24 09:42:31 -06:00
parent ffc5b607d9
commit 02e5d984b3

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
DATE="$(date +%d/%b/%Y:%H:%M -d '1 minute ago')"
MY_IP=($(redis-cli --raw SMEMBERS my_ip)) MY_IP=($(redis-cli --raw SMEMBERS my_ip))
ATTACK_THRESHOLD="50" ATTACK_THRESHOLD="50"
NGINX_ACCESS="/tmp/access.log" NGINX_ACCESS="/tmp/access.log"
@ -54,8 +55,6 @@ RULE_SET='/opt/firewall/nft.rules'
MENU_TOP="=============================FireWall=================================" MENU_TOP="=============================FireWall================================="
MENU_BOTTOM="=====================================================================" MENU_BOTTOM="====================================================================="
#Cache the Date and Current Firewall Rules at every launch
DATE="$(date +%d/%b/%Y:%H:%M -d '1 minute ago')"
nft list table filter >$NFT_CACHE nft list table filter >$NFT_CACHE
ipBlockParser() { ipBlockParser() {