From 945e1bbd40a401659e5926007789187812a5c41e Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 25 Sep 2024 14:55:21 -0600 Subject: [PATCH] fix --- firewall.sh | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) diff --git a/firewall.sh b/firewall.sh index 3db7bc8..612cd65 100755 --- a/firewall.sh +++ b/firewall.sh @@ -4,7 +4,7 @@ MY_IP=($(redis-cli --raw SMEMBERS my_ip)) ATTACK_THRESHOLD="50" NGINX_ACCESS="/tmp/access.log" ACCESS="/tmp/minute.log" -HTTP_LIMIT="100" +HTTP_LIMIT="200" RATE_LIMITED_HTTP="30" MODULES="/opt/firewall/modules" TMP_BLOCK_TIMEOUT="20" @@ -180,23 +180,16 @@ import-saved() { start() { basic-security + sysctl -w net.ipv4.conf.all.forwarding=1 + import-saved + blockCountry + wireguard-networking + docker restart uptime-kuma + #Docker + $NFT insert rule filter input iif docker0 accept - if [[ $HOSTNAME == *"nas"* ]]; then - sysctl -w net.ipv4.conf.all.forwarding=1 - import-saved - blockCountry - wireguard-networking - docker restart uptime-kuma - - #Docker - $NFT insert rule filter input iif docker0 accept - - #HTTP Rate Limit - bash $MODULES/module-rate-limit-web.sh $HTTP_LIMIT - - else - virtualization - fi + #HTTP Rate Limit + bash $MODULES/module-rate-limit-web.sh $HTTP_LIMIT message "Starting Firewall" }