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 preparation
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
The first official public release is not available yet. Once the source has passed its publication review, portable Windows AMD64 and Linux AMD64/ARM64 packages will be available through GitHub Releases. 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.
No official Windows binaries are signed with Authenticode yet. A checksum and GitHub build provenance help verify integrity and source but do not make an executable trusted by Windows. Release binaries will be explicitly labeled unsigned until a trusted signing provider approves the project and the signed binary passes Windows verification.
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; it no longer contacts a DFN-branded service by default. There is no background telemetry. Use osidiag only on networks and systems you are authorized to diagnose.
The project will be published under the Apache License 2.0. Its source, tests, release workflow and release verification guide (not yet public) will be available in official source repository (not yet public) after the source-history review.
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
The first public release is being prepared. There is no official public executable to download yet. Windows builds are not Authenticode-signed.