An open API service indexing awesome lists of open source software.

https://github.com/pmvita/firewall-ip-blocker

A Python-based Firewall Application with a Graphical User Interface (GUI) that blocks unauthorized IP addresses and logs malicious activity.
https://github.com/pmvita/firewall-ip-blocker

devsec python

Last synced: about 1 year ago
JSON representation

A Python-based Firewall Application with a Graphical User Interface (GUI) that blocks unauthorized IP addresses and logs malicious activity.

Awesome Lists containing this project

README

          

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python: 3.7+](https://img.shields.io/badge/Python-3.7+-blue.svg)](https://www.python.org/downloads/)
[![Build Status](https://img.shields.io/badge/Build-Passing-green.svg)](https://github.com/Pmvita/Firewall-IP-Blocker/actions)
[![CompTIA Network+](https://img.shields.io/badge/CompTIA%20Network%2B-Certified-blue.svg)](https://www.comptia.org/certification/network-plus)


DevSec Logo

🔥 Simple Firewall with IP Blocking

A Python-based **Firewall Application** with a **Graphical User Interface (GUI)** that blocks unauthorized IP addresses and logs malicious activity.

## 🚀 Features

✅ **Block & Unblock IPs**: Add or remove IP addresses from the blocked list.
✅ **Check Access**: Verify if an IP address is blocked.
✅ **Activity Logging**: Keeps a log of all blocked/unblocked IPs in `firewall_log.txt`.
✅ **User-Friendly GUI**: Simple interface built using **Tkinter**.

## 🛠️ Installation

1. **Clone the repository**:
```sh
git clone https://github.com/Pmvita/Firewall-IP-Blocker.git
cd Firewall-IP-Blocker
```

2. **Ensure Python is installed** (Python 3.7+ required).
Check your version:
```sh
python --version
```

3. **Install required dependencies**:
```sh
pip install -r requirements.txt
```
*(If `requirements.txt` is missing, manually install dependencies: `pip install tk`.)*

## 📌 Usage

**Run the Firewall Application**:
```sh
python firewall.py
```

**Available Actions**:
- **Block IP**: Enter an IP address and click "Block IP" to add it to the blocked list.
- **Unblock IP**: Select a blocked IP and click "Unblock IP" to remove it.
- **Check IP**: Enter an IP and click "Check IP" to see if it's blocked.

## 📂 File Structure

```
Firewall-IP-Blocker/
├── firewall.py # Main Firewall Application
├── firewall_log.txt # Logs blocked/unblocked IPs
├── requirements.txt # Dependencies
├── README.md # Documentation
```

## 🖥️ Screenshots

### 🔹 Main Interface


Main Interface

*(Save screenshots in a `screenshots/` folder inside the project directory.)*

## 🤝 Contributing

Contributions are welcome! Feel free to fork the repository, improve the code, and submit a pull request.

## 📜 License

This project is licensed under the **MIT License**.

## ✨ Author

Developed by **Pierre Mvita**
GitHub: [Pmvita](https://github.com/Pmvita)