A dynamic communication firewall built on the LECC framework to ensure uninterrupted connectivity. LeccFirewall is an advanced communication management system that leverages the LECC framework to maintain connectivity in critical scenarios. It dynamically scans available protocols, prioritizes them based on user-defined roles, and reroutes data through fallback options when primary connections fail.
- 🌐 Multi-Protocol Support: Works with HTTP, TCP, UDP, MQTT, UART, Bluetooth, and more.
- 🧩 Dynamic Adaptation: Automatically switches to available protocols during failures.
- 🚀 Priority-Based Routing: Ensures critical systems (e.g., payment terminals) stay online.
- 📺 Real-Time Monitoring: Continuously checks and updates connection status.
-
Clone the repository:
git clone https://github.com/AlejoMalia/LeccFirewall.git cd LeccFirewall
-
Install dependencies:
pip install -r requirements.txt
-
Run the firewall:
python leccfirewall.py
🧪 Solution: LeccFirewall switches MQTT sensor data to UART or TCP over a local network, keeping doctors informed.
💎 Outcome: Continuous patient monitoring despite network issues.
🧪 Solution: LeccFirewall uses UDP or Ethernet backups to maintain local control until the main network recovers.
💎 Outcome: Traffic flows smoothly during outages.
Edit leccfirewall.py
to define your system's roles and priorities:
self.device_roles = {
"http": "critical", # Payment terminals
"udp": "secondary", # Local network backup
"tcp": "secondary" # Server
}
self.priority_rules = {
"critical": ["HTTP", "UDP", "TCP"],
"secondary": ["TCP", "UDP"]
}
Listed in requirements.txt
:
requests
paho-mqtt
smbus2
flask
Feel free to fork this repository, submit pull requests, or open issues for suggestions!
This project is open-source under the MIT License.
Name | Role | GitHub | |
---|---|---|---|
![]() |
Alejo | Author & Development | @alejomalia |
Developed with assistance from Grok3, created by xAI.