{"id":25872735,"url":"https://github.com/alejomalia/leccfirewall","last_synced_at":"2026-05-11T11:37:03.668Z","repository":{"id":279876654,"uuid":"940294041","full_name":"AlejoMalia/leccfirewall","owner":"AlejoMalia","description":"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.","archived":false,"fork":false,"pushed_at":"2025-02-28T01:33:05.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T08:21:46.244Z","etag":null,"topics":["communication-protocol","framework","http","i2c","iart","iot","lecc","maskpert","mqtt","multi-protocol-support","protocol","python","tcp","udp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlejoMalia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T23:42:46.000Z","updated_at":"2025-02-28T01:33:08.000Z","dependencies_parsed_at":"2025-02-28T08:21:51.850Z","dependency_job_id":"82c007eb-8ff7-461e-b264-9758cc312e71","html_url":"https://github.com/AlejoMalia/leccfirewall","commit_stats":null,"previous_names":["alejomalia/leccfirewall"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoMalia%2Fleccfirewall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoMalia%2Fleccfirewall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoMalia%2Fleccfirewall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlejoMalia%2Fleccfirewall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlejoMalia","download_url":"https://codeload.github.com/AlejoMalia/leccfirewall/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241478250,"owners_count":19969254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["communication-protocol","framework","http","i2c","iart","iot","lecc","maskpert","mqtt","multi-protocol-support","protocol","python","tcp","udp"],"created_at":"2025-03-02T08:22:16.074Z","updated_at":"2026-05-11T11:37:03.614Z","avatar_url":"https://github.com/AlejoMalia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"LECCFirewall\n========================\n![HEADER](docs/banner01.png)\n\nA dynamic communication firewall built on the *LECC framework* to ensure uninterrupted connectivity. **LeccFirewall** is an advanced communication management system that leverages the [LECC framework](https://github.com/AlejoMalia/lecc) 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.\n\n![Python](https://img.shields.io/badge/Python-3.7+-blue) ![License](https://img.shields.io/badge/License-MIT-yellow)\n\nFeatures\n--------\n\n*   🌐 **Multi-Protocol Support:** Works with HTTP, TCP, UDP, MQTT, UART, Bluetooth, and more.\n*   🧩 **Dynamic Adaptation:** Automatically switches to available protocols during failures.\n*   🚀 **Priority-Based Routing:** Ensures critical systems (e.g., payment terminals) stay online.\n*   📺 **Real-Time Monitoring:** Continuously checks and updates connection status.\n\nInstallation\n------------\n\n1.  Clone the repository:\n    \n        git clone https://github.com/AlejoMalia/LeccFirewall.git\n        cd LeccFirewall\n    \n2.  Install dependencies:\n    \n        pip install -r requirements.txt\n    \n3.  Run the firewall:\n    \n        python leccfirewall.py\n    \n\nUse Cases\n---------\n\n### 1\\. Hospital Critical Systems\n\n⚠️ **Problem:** Internet cuts interrupt patient monitors.\n\n🧪 **Solution:** LeccFirewall switches MQTT sensor data to UART or TCP over a local network, keeping doctors informed.\n\n💎 **Outcome:** Continuous patient monitoring despite network issues.\n\n### 2\\. Smart City Traffic Management\n\n⚠️ **Problem:** Network failure stops traffic light coordination.\n\n🧪 **Solution:** LeccFirewall uses UDP or Ethernet backups to maintain local control until the main network recovers.\n\n💎 **Outcome:** Traffic flows smoothly during outages.\n\nConfiguration\n-------------\n\nEdit `leccfirewall.py` to define your system's roles and priorities:\n\n    self.device_roles = {\n        \"http\": \"critical\",  # Payment terminals\n        \"udp\": \"secondary\",  # Local network backup\n        \"tcp\": \"secondary\"   # Server\n    }\n    self.priority_rules = {\n        \"critical\": [\"HTTP\", \"UDP\", \"TCP\"],\n        \"secondary\": [\"TCP\", \"UDP\"]\n    }\n\nDependencies\n------------\n\nListed in `requirements.txt`:\n\n    requests\n    paho-mqtt\n    smbus2\n    flask\n\nContributing\n------------\n\nFeel free to fork this repository, submit pull requests, or open issues for suggestions!\n\nLicense\n-------\n\nThis project is open-source under the MIT License.\n\nCredits\n-------\n\n|                                                                                    | Name        | Role         | GitHub                                         |\n| ---------------------------------------------------------------------------------- | ----------- | ------------ | ---------------------------------------------- |\n| ![Alejo](https://github.com/alejomalia.png?size=72) | Alejo |   Author \u0026 Development   | [@alejomalia](https://github.com/alejomalia) |\n\n[![Twitter](https://img.shields.io/badge/Twitter-black?style=for-the-badge\u0026logo=twitter\u0026logoColor=white)](https://twitter.com/alejomalia_) [![Instagram](https://img.shields.io/badge/Instagram-black?style=for-the-badge\u0026logo=instagram\u0026logoColor=white)](https://www.instagram.com/alejomalia/)\n\n\u003csmall\u003e*Developed with assistance from Grok3, created by xAI.*\u003c/small\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejomalia%2Fleccfirewall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falejomalia%2Fleccfirewall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falejomalia%2Fleccfirewall/lists"}