bots.txt | ||
crawlers.txt | ||
firewall.service | ||
firewall.sh | ||
ipv4-filter.nft | ||
ipv6-filter.nft | ||
nft.rules | ||
ReadMe.md | ||
safe.txt |
Prerequisites
- NFT
- Redis
Install
cd /opt
git clone https://git.poster.place/verita84/firewall
cp firewall.service /etc/systemd/system
systemctl enable --now 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
Add Detection by the Minute via Cron
*/1 * * * * bash /opt/firewall/firewall.sh attacker-protection
*/5 * * * * bash /opt/firewall/firewall.sh forgive
Accessing the Menu
bash firewall.sh