From 9bb5cdd6193eb8af6a2c2cf00512c50cdc2e5d61 Mon Sep 17 00:00:00 2001 From: "Er.Adam Eehan" Date: Wed, 11 Nov 2026 13:36:40 +0530 Subject: [PATCH] Add files via upload --- .gitignore | 6 ++++++ CONTRIBUTING.md | 5 +++++ LICENSE | 21 +++++++++++++++++++++ Makefile | 12 ++++++++++++ README.md | 32 ++++++++++++++++++++++++++++++++ 5 files changed, 76 insertions(+) create mode 100644 .gitignore create mode 100644 CONTRIBUTING.md create mode 100644 LICENSE create mode 100644 Makefile create mode 100644 README.md diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b875961 --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +__pycache__/ +*.pyc +.env +*.pcap +*.log +data/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..aa7243f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,5 @@ +# Contributing +- Open an issue before big changes. +- Never commit real SIM keys (Ki/OPc), passwords or WireGuard private keys. +- Any radio-related change must keep the "lab only / licensed only" warnings. +- Run `make lint` before a pull request. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8ba4a3c --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 open-community-net contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b8b06cf --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +.PHONY: sockets-demo lab-up lab-down monitoring-up lint +sockets-demo: + python3 sockets/python/tcp_chat_server.py +lab-up: + cd lab-4g5g && docker compose up -d +lab-down: + cd lab-4g5g && docker compose down +monitoring-up: + cd monitoring && docker compose up -d +lint: + python3 -m py_compile sockets/python/*.py + shellcheck lab-4g5g/scripts/*.sh mesh/openwrt/scripts/*.sh || true diff --git a/README.md b/README.md new file mode 100644 index 0000000..c3496ce --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# open-community-net + +Open source toolkit for building a **community-owned network**: socket-level code, +a lab 4G/5G stack (srsRAN + Open5GS), an OpenWrt mesh, a gateway, and monitoring. + +> ⚠️ **Legal first.** In India, transmitting on mobile bands (700/900/1800/2100/2300/2500 MHz, 3.3 GHz) +> without a DoT/WPC licence is illegal and interferes with real networks. +> Everything in `lab-4g5g/` is for **cable-connected or shielded-box testing only**, using the +> test PLMN 001/01 at minimal power. See `docs/01-legal-india.md`. + +## Layout +| Folder | What it is | +|---|---| +| `docs/` | Overview, legal notes, architecture, roadmap, community model | +| `sockets/` | TCP chat, UDP echo, simple file transfer (Python) | +| `lab-4g5g/` | Open5GS core + srsRAN eNB/UE configs, docker-compose, SIM provisioning | +| `mesh/openwrt/` | OpenWrt + BATMAN-adv mesh configs and node setup script | +| `gateway/` | NAT/firewall (nftables), WireGuard uplink, captive portal (CoovaChilli) | +| `monitoring/` | Prometheus + Grafana stack | + +## Quick start +```bash +make sockets-demo # run the TCP chat server locally +make lab-up # start Open5GS core in docker (lab only) +make monitoring-up # Prometheus + Grafana on :3000 +``` + +## Honest note +Code is free. Fibre, towers, spectrum and electricity are not. See `docs/04-community-model.md` +for how communities share those costs (panchayat, K-FON, CSR, membership). + +Licence: MIT (see LICENSE).