Check for Network Interference with nw
Build the nw security interference command. It compares DNS answers, TLS connections, and HTTP replies to find signs of tampering.
Signs of interference (security interference)
Compares the answers of several DNS servers, tests TLS with different server names, and compares HTTP with HTTPS. It looks for signs of tampering.
How to read the result
- Each finding has a code, such as DNS_ANSWER_MISMATCH or TLS_SNI_DEPENDENT_FAILURE, and a confidence level.
- After one test, confidence is never high. A finding is a sign, not proof.
- No finding does not always mean that all is fine.
Exit codes
Same as diagnose: 0 with no error or warning, 1 with one, 2 wrong command.
Install nw
If you have Go, this one command is enough. It puts the file in $(go env GOPATH)/bin, usually ~/go/bin.
Other ways to install are on the nwrk.ir install page: ready-made builds for Linux, macOS, and Windows, and install scripts.
The install scripts download a script and run it. Read the script before you run it.
nwrk.ir install page (opens in a new tab)This page only builds the command. You run nw yourself, on your own device.
How to Use It
- Type the domain.
- Add at least two DNS servers, so nw can compare their answers.
- Copy and run the command. Then read the finding codes.
Questions and Answers
Does a finding prove tampering?
No. A finding is a sign, not proof. One test never gives high confidence.
What if there is no finding?
It does not always mean that all is fine. nw may not have enough evidence. Look for the code INTERFERENCE_INSUFFICIENT_EVIDENCE.
Good to Know
This page only builds the command. It runs no test. To run it, install nw on your own device. The commands come from the nwrk.ir docs for version 0.5.
Related Tools
- DNS Lookup with nwBuild the nw command that asks DNS servers about a domain. Works with UDP, TCP, DoT, and DoH. Learn what NXDOMAIN and timeout errors mean.
- Diagnose Why a Website Won't Load with nwBuild the nw diagnose command. It tests DNS, TCP, TLS, and HTTP one by one and shows the first step that fails, so you know where the problem is.
- nw Command BuilderBuild the exact nw command to test DNS, TCP, TLS, or HTTP, trace a path, or find why a connection fails. Learn how to read the result and the exit code.
Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)