Open-source tooling / Go
osidiag.
A Go command-line tool that brings networking diagnostics together across all seven OSI layers.
The Swiss Army knife for network troubleshooting.
Public release · v0.4.1
Why I built it
A successful ping does not prove an HTTPS application is working. A TCP port can accept connections while a proxy cannot reach its upstream, and a certificate can change depending on SNI. I wanted the evidence in one terminal session, organized by the OSI model.
osidiag is a Go CLI for native Windows 11, Linux and WSL2. It presents the seven layers as a readable scorecard and lets me drill into focused tests.
What it checks
| Layer | What osidiag observes |
|---|---|
| L1 – Physical | Interfaces, link/carrier, speed and available Wi-Fi metrics |
| L2 – Data link | ARP/neighbor cache, cached gateway MAC and passive DHCP lease metadata |
| L3 – Network | Local routes, IP addressing, ICMP and traceroute |
| L4 – Transport | Direct TCP connectivity to a specified target, local listening sockets |
| L5 – Session | Local TCP states as an approximation, not a complete OSI layer 5 check |
| L6 – Presentation | TLS handshake, certificate trust, expiry, SNI and certificate selection |
| L7 – Application | HTTP status/redirects/headers and DNS lookups |
The interactive terminal view, text/table reports and JSON output support both human investigation and scripting. Optional speed-test commands can perform bounded single-stream HTTP downloads, not full line-capacity measurements.
Practical commands
osidiag check example.com --output table
osidiag check example.com --output json
osidiag trace example.com --hops 20 --probes 3
osidiag http example.com -v
osidiag tls app.example.com --connect-ip 203.0.113.10 --compare-sni -v
osidiag wifi -v
An SNI comparison against one edge IP can reveal certificate-selection behaviour, but not by itself prove an origin certificate is valid. A successful TCP connection only establishes one transport fact, not the health of the backend.
Windows, Linux and installation
osidiag v0.4.1 is publicly available from the official v0.4.1 GitHub release. The portable packages cover Linux AMD64/ARM64 and Windows 11 AMD64. For Windows, download osidiag-windows-amd64-unsigned.zip (unsigned). Linux packages are osidiag-linux-amd64.tar.gz and osidiag-linux-arm64.tar.gz. There is no installer, service or background updater: extract the binary, run it, and delete it to uninstall. An optional manually assigned Linux cap_net_raw can be removed with sudo setcap -r ./osidiag.
The v0.4.1 Windows executable is not Authenticode-signed. Windows SmartScreen or Smart App Control may warn or block execution. Check SHA256SUMS and GitHub build provenance using the release verification guide; these checks do not establish a trusted Windows publisher signature. Future Windows packages will only be labeled signed after trusted signing is approved and verified.
Privacy, scope and limitations
The CLI reads local interface, socket and Wi-Fi information. Explicit DNS, ping, TCP, traceroute, TLS and HTTP tests contact the selected target; speedtest requires an explicitly selected portal or download URL and has no default endpoint. There is no background telemetry. Use osidiag only on networks and systems you are authorized to diagnose.
The project is published under the Apache License 2.0. Its source, tests, release workflow and release verification guide are available in the official source repository.
Code signing policy
The Code signing policy lists the author/reviewer/approver responsibilities, privacy, installation and removal, and planned SignPath Foundation requirements. Approval and trusted signing have not yet happened.
Official downloads
Only use official GitHub release archives. Check SHA256SUMS, provenance and signing status in the release notes.
Browse GitHub Releases ↗