The Python Network Firewall is a lightweight, real-time network monitoring tool designed to help users analyze active internet connections on their system. It works by capturing live TCP and UDP connections using Windows’ built-in netstat command and intelligently classifying them as SAFE, SUSPICIOUS, or UNSAFE based on their behavior. The project focuses on clear visualization, easy understanding, and real-time analysis. Using the Rich library, it presents a clean and colorful terminal dashboard that updates every second, showing details like time, protocol, source address, destination address, and threat status. Unlike traditional firewalls, this tool does not modify system security settings or block traffic. Instead, it is designed as an analysis and monitoring tool that helps users understand what is happening on their network in real time — ideal for students, beginners, and cybersecurity learners.
To monitor live network connections in an easy and understandable format, To classify network traffic based on simple rule-based logic, To present real-time updates using a modern terminal UI, To help users visually detect suspicious or unknown connections.
Helps users understand incoming and outgoing network traffic, Shows how firewalls classify traffic based on ports and addresses, Demonstrates practical use of Python in cybersecurity, Useful for college projects, learning OS networking, and real-time monitoring.
Real-time monitoring of TCP/UDP connections, Works without administrator permissions, Automatically detects and highlights suspicious connections, Clean, professional dashboard with Rich library, Easy to run, simple to understand.