Skip to main content
HandyWeb

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.

Example: 1.1.1.1 or tls://9.9.9.9 or https://dns.google/dns-query

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.

go install github.com/radestsam/nwrk/cmd/nw@latest

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

  1. Type the domain.
  2. Add at least two DNS servers, so nw can compare their answers.
  3. 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.

Source code of this tool (opens in a new tab)Report a problem on GitHub (opens in a new tab)