Add files via upload
This commit is contained in:
1 parent
f01c6e4c5a
commit
9bb5cdd619
5 files changed
+76
No files matched your search
@@ -0,0 +1,6 @@
|
||||
__pycache__/
|
||||
*.pyc
|
||||
.env
|
||||
*.pcap
|
||||
*.log
|
||||
data/
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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
|
||||
@@ -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).
|
||||
Reference in new issue
Block a user