This project sets up a local firewall using nftables (or iptables) and integrates Fail2Ban for intrusion prevention. The firewall restricts incoming traffic to essential services (like SSH), and Fail2Ban monitors authentication logs to block IPs that show malicious activity, such as repeated failed SSH login attempts.
Focus: Network defense, SSH security.
- Host-based firewall configuration using
nftables. - Default deny-all policy with selective allowed services.
- Fail2Ban setup to block IP addresses showing brute-force patterns.
- Automated installation and configuration scripts (Bash).
- Logs and status checks for auditing blocked IPs.
nftablesoriptables(modern Linux firewall)Fail2Ban(intrusion prevention)- Bash scripting
git clone https://github.com/KaidenW03/local-firewall-ips.git cd local-firewall-ips
sudo bash setup_firewall.sh
sudo nft list ruleset sudo fail2ban-client status sshd