English
简体中文繁體中文EnglishРусскийفارسی

Home › Blog › Fixes

The sorting machine is stuck

Common WireGuard for Windows errors: unable to create network adapter, no internet after start, DNS failures, service problems and other VPNs.

Compiled on

When it stops, find the slot that jammed
When it stops, find the slot that jammed Milestoned from Deutschland(Germany), CC BY 2.0

Everything is written in the Log tab. Press Save first, then compare.

First see which layer it is: the app does not open, the tunnel does not start, or it starts and nothing passes. Keep the log open, start again, and read the last ten lines.

What it says

Log or messageCauseFix
Unable to create network adapterDriver missing or in useRestart; remove and install the new version
Stops right after startingA line it does not knowRun the config checker
Unable to set interface addressesAddress used by another adapterRemove the old adapter or change the address
Active but no internetNo forwarding, or DNSPing 10.8.0.1, then 1.1.1.1
Handshake did not completePackets lost or wrong keySee no handshake
A network card: on Windows WireGuard has to create a virtual adapter
A network card: on Windows WireGuard has to create a virtual adapter CEphoto, Uwe Aranas, CC BY-SA 3.0

Internet but no names

Administrator prompt
ipconfig /flushdns
nslookup example.com 1.1.1.1

If the second works, DNS in the tunnel is wrong. Set DNS = to an address that works at the far end.

Fighting other programs

  • Another VPN's kill switch left on blocks WireGuard.
  • Hyper-V or VMware adapters use the same range.
  • Security software distrusts the driver; allow wireguard.exe.
Another network card: a leftover adapter can block a new one
Another network card: a leftover adapter can block a new one afrank99, CC BY-SA 2.0

A clean reinstall

  1. Stop the tunnelDeactivate, then quit from the tray
  2. UninstallRemove WireGuard in Settings
  3. LeftoversShow hidden devices in Device Manager and delete WireGuard Tunnel
  4. Restart, installUse the official installer
Every step

Reading the log

Create the adapter, set addresses, routes and DNS, start, send a handshake, receive the answer. Where it stops is where the fault is.

A normal start, shortened
Starting WireGuard
Creating network adapter
Interface created
Setting interface configuration
Peer 1 created
Interface up
Sending handshake initiation to peer 1
Receiving handshake response from peer 1
Keypair 1 created for peer 1

Keypair 1 created is success; afterwards look at forwarding and DNS. Only repeated initiations: network or keys. No Interface created: the driver.

Why the driver does not install

  • The system is too old or years behind on updates.
  • Security software blocks it, mostly in companies; ask the administrator, do not turn protection off.
  • An old driver collides with core isolation; install the latest version.
  • Leftovers: Device Manager → View → Show hidden devices, remove the grey WireGuard adapters.

It starts and nothing passes

One after another
ping 10.8.0.1
ping 1.1.1.1
nslookup example.com
tracert -d 1.1.1.1

First fails: the tunnel. Only the second: the server does not forward, or AllowedIPs never meant to reach the internet. Only the third: DNS. All pass and the browser fails: half-loaded pages or a proxy in the browser. If the first hop of the last one is still your router, the route did not change.

Block untunneled traffic

With 0.0.0.0/0 a checkbox appears: block untunneled traffic (kill-switch). With it the computer has no network while the tunnel does not work, not even the printer. Many "starting cuts me off" cases are this. To keep the local network write 0.0.0.0/1, 128.0.0.0/1 instead; the box disappears and routing stays the same.

Connect at startup

A started tunnel becomes a service and returns after a reboot. By hand:

Administrator
wireguard /installtunnelservice "C:\configs\home.conf"
wireguard /uninstalltunnelservice home

The service is called WireGuardTunnel$home.

When you are on it remotely

Starting a full tunnel changes the default route and ends your remote session at once. Use split AllowedIPs, exclude your own address, or have somebody on site.

A normal user sees an empty window.

Only administrators may use it by default. Have one open it, or allow operators as in the Windows page.

Fails after an update.

Restart once; a new driver needs it.

Access is denied?

No administrator rights. The administrator can set LimitedOperatorUI in the registry and add the user to Network Configuration Operators.

Two tunnels at once?

Yes, if AllowedIPs do not overlap.

Dead after sleep?

Wait a few seconds; otherwise deactivate and activate, and update the Wi-Fi driver.

Next letter

On the same round

Postcodes: WireGuard Windows error, unable to create network adapter, WireGuard connected no internet