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

https://github.com/zaeem20/pyfirewall

A simple Firewall implementation in python, with nice and interactive Terminal UI
https://github.com/zaeem20/pyfirewall

ethical-hacking-tools firewall networking networking-in-python python scapy

Last synced: 7 months ago
JSON representation

A simple Firewall implementation in python, with nice and interactive Terminal UI

Awesome Lists containing this project

README

          

### PyFirewall

#### A simple firewall with cross platform support. with Interactive TUI

![UI Screenshot](assets/image.png)

#### Features:
- Block IPs
- Block Ports

#### Requirements:
- Python 3.6+
- Windows, Linux
- Admin Privileges
- Python Libraries:
- os
- scapy
- subprocess
- platform
- pydivert (for windows)
- socket
- ipaddress
- rich

#### Installation:
- Install requirements using pip:
```bash
pip install -e .
```

- For windows you need to run the script on elevated privileges (as admin) to use the pydivert library.
- For Linux you need to run the script on elevated privileges (sudo) to use the iptables command.

```bash
python3 main.py
```

#### Credits

Made with ❤️ by [Zaeem20](https;//github.com/Zaeem20)