Skip to content

About

Experimental WINDTRE Italy router diagnostics and TP-Link VX830v Wi-Fi drift reference

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Routerdiag WINDTRE

Routerdiag WINDTRE is an experimental reference implementation for monitoring a TP-Link VX830v used behind a ZTE/WINDTRE 5G router in Italy.

It can collect router and internet health data, inspect nearby Wi-Fi networks, archive selected router diagnostics, send optional Telegram notifications, and detect Wi-Fi configuration drift. Repair support is available, but it is always opt-in.

Important

This repository documents one observed WINDTRE deployment and firmware family. Router APIs and payloads can change without notice. Start in read-only mode, inspect the output, and make a router backup before enabling repair.

Project status

This is a small, best-effort reference project. It has no support commitment, release schedule, compatibility guarantee, or roadmap. It is not affiliated with or endorsed by WINDTRE, TP-Link, or ZTE.

Supported setup

The implementation was designed around:

  • a TP-Link VX830v downstream router, normally at 192.168.1.1
  • a ZTE/WINDTRE 5G upstream router, normally at 192.168.192.1
  • Windows 10 or 11
  • Python 3.11 or newer

Other firmware versions may expose different private APIs. Treat repair as firmware-specific.

Install

From PowerShell:

git clone https://github.com/itlezy/routerdiag-wind.git
cd routerdiag-wind
.\scripts\windows\setup_routerdiag.ps1

The setup script creates .venv and installs the project there. It does not install a system-wide Python package.

Configure

Copy the public examples to ignored local files:

Copy-Item .env.example .env.local
Copy-Item .\profiles\wifi_profile.example.json .\profiles\wifi_profile.local.json
notepad .env.local
notepad .\profiles\wifi_profile.local.json

Set your router passwords, actual SSID, expected channels, and Wi-Fi repair profile locally. Never commit either local file.

The repair profile may contain the Wi-Fi passphrase because some VX830v firmware expects a complete Wi-Fi payload when applying changes. Keep the file private and restrict its Windows permissions.

Run safely

Take one read-only sample:

.\.venv\Scripts\python.exe -m routerdiag --once --history "" --no-router-logs

Run the continuous monitor in read-only mode:

.\.venv\Scripts\python.exe -m routerdiag

Enable repair only after reviewing your local profile and read-only output:

.\.venv\Scripts\python.exe -m routerdiag --repair

The standalone Wi-Fi guard also requires an explicit repair flag:

.\.venv\Scripts\python.exe -m routerdiag.wifi_guard
.\.venv\Scripts\python.exe -m routerdiag.wifi_guard --repair

Runtime logs and history are written under var/ and may contain hostnames, MAC addresses, local IP addresses, router identifiers, or disk serial numbers. The directory is ignored by Git; do not publish it.

Optional Telegram notifications

Set these values in .env.local:

ROUTERDIAG_TG_ENABLED=1
ROUTERDIAG_TG_BOT_TOKEN=
ROUTERDIAG_TG_CHAT_ID=

Then test with:

.\.venv\Scripts\python.exe -m routerdiag --test-telegram

Windows scheduled task

The helper installs a task for the current interactive user with limited privileges. It does not run as SYSTEM.

.\scripts\windows\install_routerdiag_task.ps1
.\scripts\windows\start_routerdiag_task.ps1
.\scripts\windows\routerdiag_status.ps1

Diagnostic utilities

HAR inspection helpers are under tools/har/. HAR files and decrypted router payloads are highly sensitive and are ignored by Git.

.\.venv\Scripts\python.exe .\tools\har\analyze_har.py C:\path\to\router.har --out .\var\router.har-diagnostics.md
.\.venv\Scripts\python.exe .\tools\har\decrypt_tplink_gdpr.py C:\path\to\router.har --key "key=<16-byte-key>&iv=<16-byte-iv>" --out .\var\router.gdpr-decrypted.jsonl

See also:

License

MIT. See LICENSE.

About

Experimental WINDTRE Italy router diagnostics and TP-Link VX830v Wi-Fi drift reference

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages