Skip to content

scrollDynasty/windows-firewall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ Windows Packet Firewall

A modern, lightweight packet filtering firewall for Windows with real-time monitoring and logging capabilities.

License: MIT Windows C11 CMake

📸 Application Screenshots

Firewall Console Interface

Firewall Application Interface

Detailed Log File View

Firewall Log File

🌟 Features

🔒 Packet Filtering

  • HTTP traffic blocking (port 80)
  • HTTPS traffic logging (port 443)
  • Telnet blocking (port 23)
  • FTP monitoring (ports 20, 21)
  • ICMP traffic analysis

📊 Advanced Monitoring

  • Live packet analysis
  • Traffic statistics
  • Protocol-based filtering
  • Port-based rules

📝 Comprehensive Logging

  • Event logging
  • Traffic pattern analysis
  • Security threat detection
  • Performance metrics

🚀 Technologies

Core Technologies

  • Language: C17 (Modern C Standard)
  • System Integration: WinAPI
  • Packet Capture: Npcap

Build Ecosystem

  • Build System: CMake 3.15+
  • Toolchain: Clion 2024.3.2

Key Libraries

  • Packet Processing: LibPcap
  • Network Operations: WinSock2

📋 Prerequisites

  • Windows 10/11
  • Clion 2024.3.2
  • CMake 3.15+
  • Npcap library
  • Administrator privileges

⚙️ Installation

1. Clone Repository

git clone https://github.com/scrollDynasty/windows-firewall.git
cd windows-firewall

2. Install Npcap

3. Build Project

mkdir build
cd build
cmake ..
cmake --build . --config Release

🎮 Usage

1. Run as Administrator

.\firewall.exe

2. Network Interface Selection

  • Choose active network interface
  • Begin real-time monitoring

3. Traffic Monitoring

  • Watch live packet analysis
  • Review logs at ./logs/firewall.log

🛠️ Default Configuration

Port/Protocol Action Description
HTTP (80) ⛔ Block Prevent unencrypted traffic
HTTPS (443) 📝 Log Monitor secure web traffic
Telnet (23) ⛔ Block Disable insecure remote access
FTP (20, 21) 📝 Monitor Track file transfer activity
ICMP ✅ Allow Permit network diagnostics

🔍 Project Structure

firewall/
├── src/       # Core firewall logic
│   ├── core/  # Main implementation
│   ├── network/  # Network handling
│   └── utils/    # Utility functions
├── include/   # Header definitions
├── extern/    # External dependencies
└── docs/      # Project documentation

🤝 Contributing

Contributions are welcome! Please read our Contributing Guidelines.

📝 Version History

  • v1.0.0 (2025-01-25)
    • Initial release
    • Basic packet filtering
    • Logging system
    • Real-time monitoring

👤 Author

scrollDynasty

📄 License

MIT License - see LICENSE for details.

🙏 Acknowledgments

  • Npcap Development Team
  • LibPcap Contributors
  • Windows Network Programming Community

Made with ❤️ by scrollDynasty

© 2025 Windows Packet Firewall. All rights reserved.