Network panel misreports WARP/WireGuard tun as "Ethernet (10gbit)" and shows tunnel IP instead of Wi-Fi
System details
Omarchy 4.0.0-1 (Arch) · Intel Pentium Silver N5030 · Wi-Fi 6 AX200 (wlp2s0) + Realtek RTL8111 (enp3s0) · Wi-Fi SSID osarchy · CloudflareWARP VPN
What's wrong?
The network panel hero reads "Ethernet (10gbit)" while the machine is actually on Wi-Fi, and the IP shown is the WARP tunnel IP (172.16.0.2) instead of the Wi-Fi IP (10.42.0.148). SSID/gateway are empty. The bar icon is correct (Wi-Fi glyph, from the Quickshell NetworkManager backend via Panel.qml kind), so only the panel header/details — fed by omarchy-network-status — are wrong.
Root cause
bin/omarchy-network-status selects the active interface from the route table via ip route get 1.1.1.1, not from NetworkManager. CloudflareWARP installs a policy-routed default route (fwmark 0x100cf → table 65743) that captures that probe, so iface resolves to CloudflareWARP. Because the tun has no /sys/class/net/CloudflareWARP/wireless, the script classifies it type=ethernet, and /sys/class/net/CloudflareWARP/speed reports a bogus 10000 Mbps → formatHeaderSpeed(10000) renders "10gbit" (Model.js). Panel.qml then keys the hero off info.type/info.speed and shows info.ip.
Note bin/omarchy-network-band already does this correctly — it selects the connected device from nmcli device status (TYPE == wifi) instead of the route table.
Steps to reproduce
- Connect to Wi-Fi (
wlp2s0, any SSID). - Start CloudflareWARP (or any VPN whose
tunwins the default route, e.g. WireGuardAllowedIPs = 0.0.0.0/0). - Open the network panel (Wi-Fi icon in bar, or
SUPER+CTRL+W). - Observe hero "Ethernet (10gbit)" and IP
172.16.0.2.
Diagnostics
$ ip route get 1.1.1.1
1.1.1.1 dev CloudflareWARP table 65743 src 172.16.0.2 uid 1000
$ ip rule
0: from all lookup local
32765: not from all fwmark 0x100cf lookup 65743
32766: from all lookup main
32767: from all lookup default
$ omarchy-network-status --verbose
iface CloudflareWARP
ip 172.16.0.2
type ethernet
speed 10000
duplex full
$ ls -d /sys/class/net/CloudflareWARP/device # does not exist (virtual iface)
$ cat /sys/class/net/CloudflareWARP/speed # -> 10000
$ ls -d /sys/class/net/wlp2s0/wireless # -> exists
$ ls -d /sys/class/net/enp3s0/device # -> exists (physical NIC)
Suggested fix
After resolving the route's iface, if it is not a real NIC (/sys/class/net/$iface/wireless and /sys/class/net/$iface/device both absent → virtual tun/tap/vpn), re-resolve from NetworkManager:
LC_ALL=C nmcli -t -f DEVICE,TYPE,STATE device status \
| awk -F: '$2 == "ethernet" && $3 == "connected" { print $1; exit }'
# fallback:
LC_ALL=C nmcli -t -f DEVICE,TYPE,STATE device status \
| awk -F: '$2 == "wifi" && $3 == "connected" { print $1; exit }'
Ethernet first, to match the panel's kind precedence. When the probe route's dev differs from the physical iface, derive gateway from the physical device's default route (ip -j route show dev <iface> default | jq -r '.[0].gateway // ""'), and report speed/duplex for real NICs only.
Filed by deepseek-v4-flash-free via opencode.
Open PR #8866 addresses this exact WARP or WireGuard misclassification. It derives the physical interface and gateway from the main routing table rather than the policy-routed 1.1.1.1 probe, so the panel retains the Wi-Fi interface and LAN address behind the tunnel. It includes a focused regression test.
Reproduced on a worker built from the Omarchy ISO, on current quattro (b83d3df). I added a tun device (warp0, 172.16.0.2) and a policy rule that sends the 1.1.1.1 lookup to its own table, which is what WARP's table 65743 does. The worker uses Ethernet rather than Wi-Fi, but the selection logic is the same. omarchy-network-status --verbose then reported iface warp0, ip 172.16.0.2, an empty gateway, type ethernet and speed 10000, so the header shows "10gbit" and the tunnel address.
The cause is the one you describe. Both the compact and verbose paths in bin/omarchy-network-status pick the device from ip route get 1.1.1.1, which follows policy routing into the tunnel (lines 25 and 88). Then every device without a wireless directory is reported as Ethernet, with its sysfs speed (line 111). One detail has changed since you filed: on quattro the header title now prefers the connected Wi-Fi SSID from NetworkManager. On a Wi-Fi machine it would read "
#8866 fixes this. It picks the connected Wi-Fi or Ethernet device from NetworkManager instead of the route probe. On the same worker with the same tunnel, its head (8af95b5) reported enp0s2, the LAN address and the real gateway, and its own regression test passed. I have linked it to this issue, so this issue closes when #8866 merges. #8866 has gaps that will be raised in its own review. When both Wi-Fi and Ethernet are connected, it takes whichever NetworkManager lists first. It matches the word "connected" without LC_ALL=C, so it can miss the device on a non-English session. And if NetworkManager reports no connected device, it falls back to the main routing table's default route, which can still be the tunnel. #13525 reports the same bug with Clash TUN.
Codex Medium checked this as a second opinion, after my reproduction. It agreed on the mechanism and on #8866 fixing it, and it found the gaps listed above. Its independence from my reasoning is not guaranteed. This now waits on the maintainer to decide on #8866.