firewall/ReadMe.md
2024-09-24 19:44:54 -06:00

607 B

Prerequisites

  1. NFT
  2. Redis

How to Run

  • cd /opt
  • git clone https://git.poster.place/verita84/firewall

Configure Redis Schema

bash firewall.sh import-db

Configure firewall.sh

  • Edit the portConfig variables to allow ports
  • Modify NGINX_ACCESS to point to your NGINX config file

Enable SystemD

  • cp firewall.service /etc/systemd/system
  • systemctl enable --now firewall

Add Detection by the Minute via Cron

*/1 * * * * bash /opt/firewall/firewall.sh attacker-protection
*/5 * * * * bash /opt/firewall/firewall.sh forgive