Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

cyb2rS2c/ACL_TaskForce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACL TaskForce

Human-led Unix ACL system that blocks malicious hosts and secures your network

Overview

This script automates IP blocking and allowlisting using UFW (Uncomplicated Firewall). It enables users to:

  • Block malicious IPs by adding them to a malicious_ips.txt file.
  • Remove specific IPs from the blocklist.
  • Allow specific IPs to access designated ports.
  • Revoke previously set firewall rules.

The script helps enhance server security by preventing unauthorized access while maintaining necessary connectivity.

Precautions

  • Run as root: The script requires sudo privileges to modify firewall rules.
  • Ensure malicious_ips.txt exists: This file is necessary to track blocked IPs. The script will create it if absent.
  • Use with caution: Improper use may block critical IPs, leading to connectivity issues.
  • Test before deployment: Always verify changes in a controlled environment before applying them to production systems.

Requirements

pip install -r requirements.txt

Installation

  1. Clone the repository:
git clone https://github.com/cyb2rS2c/ACL_TaskForce.git
cd ACL_TaskForce
  1. Ensure Python is installed and updated.

Usage

  1. Add malicious IPs to malicious_ips.txt.
  2. Run the script:
python3 prevent_malicious_ips_ufw.py
  1. Follow the menu prompts to add, remove, or modify firewall rules.

Ensure that you have the necessary privileges and that UFW is correctly configured before running the script.

Screenshots:

image

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

About

This script automates IP blocking and allowlisting using UFW

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages