omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Network indicator shows red/limited with working Clash TUN Internet access and default connectivity endpoint

Open honbolau opened this issue 1 month ago • 6 comments

System details

  • Omarchy: 4.5.0rc3-1
  • Hardware: Apple MacBookPro16,1; Intel Core i9-9880H; Intel UHD 630 and AMD Navi 14 discrete graphics
  • Kernel: 7.2.11-arch1-Watanare-T2-1-t2 (linux-t2 7.2.11.arch1-1)
  • NetworkManager: 1.58.1-2
  • Clash Verge Rev: clash-verge-rev-bin 2.5.8-1
  • Mihomo: v1.19.32
  • Physical uplink: Wi-Fi (wlp5s0); TUN interface: Meta

What's wrong?

With Clash Verge TUN enabled, the Omarchy bar shows the Wi-Fi icon in red with an exclamation mark even though normal Internet access works through the TUN. A fresh nmcli networking connectivity check reports limited.

The configured Omarchy connectivity endpoint is unchanged:

[connectivity]
uri=http://ping.omacom.io/nm-check.txt
response=

This is a network-indicator/TUN integration report, not a claim that Omarchy causes the upstream connection reset or that NetworkManager should fabricate a successful physical-uplink check. The current indicator is consistent with NetworkManager's reported state, but does not distinguish a failed direct-uplink probe from working routed Internet access through TUN.

Observed configuration and reproduction

  1. Use Omarchy with NetworkManager managing a Wi-Fi uplink and Clash Verge Rev TUN enabled (auto-route: true, auto-detect-interface: true, stack mips). auto-redirect is not enabled.
  2. Keep Omarchy's default connectivity URL above.
  3. In this environment the endpoint's direct path fails, whereas its proxy path works. The endpoint was excluded from Fake-IP and configured to use a proxy group; DNS now returns real public IPv4 addresses. The old higher-priority DIRECT rule was removed and the running core's rules were checked.
  4. Run the paired requests below and a fresh NetworkManager check. Normal routed access works, but the physical-device-bound request fails and the bar remains red.

The direct-path failure is an environment-specific prerequisite; this may not reproduce on networks where the endpoint is directly reachable. A controlled TUN-off/on comparison has not been performed, so this report does not establish a version regression or claim that enabling TUN alone causes the upstream reset.

Verified comparison

All three requests used --noproxy '*', IPv4, the same URL, and the same real destination IPv4 via --resolve, to avoid explicit HTTP proxy environment variables, Fake-IP, or DNS rotation affecting the comparison:

# Substitute an actual current A record for REAL_IPV4.
curl --noproxy '*' -4 --max-time 6 \
  --resolve 'ping.omacom.io:80:REAL_IPV4' \
  -o /dev/null -w 'HTTP %{http_code}\n' \
  http://ping.omacom.io/nm-check.txt

# Repeat with each interface binding:
# --interface if!Meta
# --interface if!wlp5s0
Request Observed result
Normal routed request HTTP 204
Bound to Meta HTTP 204
Bound to wlp5s0 curl exit 56: Recv failure: Connection reset by peer
nmcli networking connectivity check limited
Wi-Fi IPv4 / IPv6 connectivity reported by NM both 3 (limited)

Route lookups independently show a normal destination lookup selecting Meta in table 2022, while a lookup with oif wlp5s0 selects the physical Wi-Fi gateway. Read-only inspection found no Mihomo nftables redirect rules and no 0x2023/0x2024 auto-redirect mark rules.

NetworkManager's matching-version source sets CURLOPT_INTERFACE to if!<interface> for its checks: https://github.com/NetworkManager/NetworkManager/blob/1.58.1/src/core/nm-connectivity.c

This source and the paired requests support a physical-uplink-versus-routed-path mismatch. No packet capture of NetworkManager's own request was collected, and the exact component injecting the direct-path reset has not been identified.

Expected behavior / integration question

Could the network panel distinguish physical-uplink connectivity limited from Internet usable through a TUN/VPN, rather than presenting an undifferentiated red Internet warning? If the existing indicator is intentionally physical-uplink-only, making that scope clear in the panel/tooltip would help.

I would prefer to retain Omarchy's default endpoint and keep connectivity checking enabled, rather than silence the warning by disabling checks or changing the URL. I am not requesting that failed checks be treated as successful without evidence.

Related reports and scope

  • https://github.com/clash-verge-rev/clash-verge-rev/issues/925 — similar TUN/limited indicator symptom; excluding Fake-IP resolved that reporter's case, but did not resolve this direct-path failure.
  • https://github.com/appshubcc/Bettbox/issues/560 — ordinary requests work while device-bound requests fail. Its reported mark/redirect mechanism differs from this machine, which has no such redirect rules; not claimed to be the same root cause.
  • https://github.com/omacom/omarchy/issues/13525 — related TUN network-panel integration, but concerns misclassification as Ethernet, not this limited-connectivity warning.

Diagnostics and privacy

omarchy debug --no-sudo --print returned Unknown Omarchy command on this installation; the installed omarchy-debug --no-sudo --print executable was used instead. Full diagnostics are retained locally rather than uploaded, because unrelated logs can contain private network information. Relevant version, connectivity, route, and HTTP evidence is included above. No subscription credentials, proxy-node details, SSID, or private addresses are included.

The symptom and tests were investigated and this report was prepared with AI assistance; the distinction between observations and hypotheses is intentional.

honbolau avatar Nov 02 '26 06:11 honbolau

Same symptom with a VPN kill switch, through a different mechanism: NordVPN 6.0.2 (NordLynx, kill switch on), Omarchy 4.5.0, NetworkManager 1.58.1, Wi-Fi wlo1.

curl --noproxy '*' -4 --max-time 6 -o /dev/null -w '%{http_code}' http://ping.omacom.io/nm-check.txt:

Request Result
routed HTTP 204
--interface nordlynx HTTP 204
--interface wlo1 curl exit 28 (timeout)

The kill switch drops anything leaving the physical interface outside the tunnel, and NM binds its check to wlo1, so nmcli networking connectivity stays limited for as long as the VPN is up, while everything works. In 4.5's network panel that is restricted: the red icon, and connectivityPoll re-running the check every 10 s, panel closed or not, for the whole VPN session.

My workaround is [connectivity] enabled=false, which also loses portal detection. Omarchy offers NordVPN under Install, and other VPNs with a kill switch likely end up the same way.

sergihrs avatar Nov 05 '26 15:11 sergihrs

Additional confirmed case with NordVPN/NordLynx on Omarchy 4.5.0-3, Hyprland 0.56.2-4, Quickshell 0.3.2.r7.g2b4501a-1. Both Ethernet and Wi-Fi were connected.

Observed while NordVPN reported Connected:

Check Result
nmcli networking connectivity check limited
Ethernet IPv4 connectivity 3 (limited)
Wi-Fi IPv4 connectivity 3 (limited)
nordlynx IPv4 connectivity 4 (full)
Routed HTTP request to http://ping.omacom.io/nm-check.txt 204, X-NetworkManager-Status: online
Routed HTTPS request to the same endpoint 204, online header
Routed HTTPS request to GitHub 200

The bar and network panel nevertheless displayed “limited internet access.” The installed panel derives its connectivity solely from Networking.connectivity; it does not account for the per-device full connectivity already reported by NetworkManager for the VPN interface.

This supports distinguishing limited physical-link probing from usable Internet access through the tunnel. A VPN being enabled alone should not suppress real failures, but an undifferentiated Internet warning is misleading when the tunnel has independently confirmed full connectivity.

Local workaround: cloned omarchy.network into the user plugin directory. Only when the aggregate result is Limited and checks are enabled, consult NetworkManager's per-device IPv4/IPv6 connectivity. If a WireGuard/TUN/IP-tunnel device reports Full, display full connectivity; otherwise retain Limited. Portal, disconnected, and disabled-check states remain unchanged. The query reads local NetworkManager state rather than adding HTTP probes. No routing, VPN, firewall, or NetworkManager settings were changed.

Focused tests cover full versus limited tunnels, physical-device-only full results, separation between device records, portal/disconnected/disabled-check behavior, and the active NordLynx result. After restarting the shell, local visual inspection confirmed that the warning disappeared from both the icon and panel while NordVPN remained connected.

We have not performed a VPN-off comparison, bound-interface requests, or firewall inspection on this machine, so the exact reason the physical probes fail is not independently established here. No claim is made that this machine's failure mechanism is identical to the earlier reports. Full logs and desktop captures are withheld to avoid unrelated private information.

The user requested reporting this; investigation, workaround, and this comment were prepared with AI assistance.

pwhittin avatar Nov 05 '26 16:11 pwhittin

Same confirmed case with AmneziaVPN on Omarchy 4.5.0. Ethernet were connected.

mlive1992 avatar Nov 05 '26 17:11 mlive1992

Fourth confirmed case, on NordVPN with an Ethernet uplink, and it reproduces here on omarchy 4.5.0-3, NetworkManager 1.58.1-2, kernel 7.2.15-1-omarchy.

Check Result
nmcli networking connectivity limited
enp4s0 (Ethernet) IPv4 connectivity 3 (limited)
nordlynx (WireGuard) IPv4 connectivity 4 (full)
curl --interface nordlynx http://ping.omacom.io/nm-check.txt HTTP 204
curl --interface enp4s0 http://ping.omacom.io/nm-check.txt curl exit 28, timeout
unbound curl HTTP 204

nmcli -t -f DEVICE,TYPE,STATE,IP4-CONNECTIVITY,IP6-CONNECTIVITY device:

enp4s0:ethernet:connected:limited:none
lo:loopback:connected (externally):unknown:unknown
nordlynx:wireguard:connected (externally):full:none
wlo1:wifi:unavailable:none:none
p2p-dev-wlo1:wifi-p2p:unavailable:none:none

This confirms the mechanism @sergihrs described for NordVPN without needing to inspect firewall rules: the kill switch drops traffic that leaves enp4s0 outside the tunnel, NetworkManager binds its probe to the physical device, and the tunnel's landside is reachable only through nordlynx. The aggregated limited is therefore accurate about the physical link and wrong about the machine, which is exactly the distinction this issue asks for.

There is already a PR for this: #17340 by @kill74, opened three days before I looked. It probes ping.omacom.io through the normal route while NetworkManager reports limited and clears the warning only on an exact 204. That handles routed VPNs NetworkManager does not manage itself, which is broader than what I built, and it puts the probe in a shared shell service instead of per-monitor panel code. #17340 should be the one that lands.

I opened #17793 as a cheaper alternative to the probe in that PR, not as a replacement for it: it reads the per-device connectivity NetworkManager already tracks, and only when a connected tunnel device (wireguard, tun, tap, ip-tunnel, vpn) reports full for IPv4 or IPv6.

  • Only limited is reinterpreted. portal still means signing in, and none still means no route.
  • The read is a process, so it runs on aggregate changes, on open, and on VPN device add/remove. #17340's version keeps a 10s timer running for the whole VPN session, which is the steady-state cost this issue started with.
  • A visible panel rereads the verdict through the existing recheck, so a tunnel that stops carrying traffic puts the warning back.

The trade-off is coverage: my version does nothing for a VPN that NetworkManager does not probe itself. I have not tested that case, and #17340 does not have the problem.

Panel before/after, from a fixture that reproduces this shape (physical link limited, tunnel full). The panel is rendered on its own, so no desktop, SSID, or address is in either image:

  • before: red icon and "LIMITED INTERNET ACCESS" header
  • after: normal icon, no warning

Captures are ready to drag into this comment (gh cannot upload media):

  • before: ~/Work/vpn ethernet bug omarchy issue/network-panel-before.png
  • after: ~/Work/vpn ethernet bug omarchy issue/network-panel-after.png
  • installed panel showing the false warning with NordVPN connected, IP redacted: ~/Pictures/Screenshots/vpn-limited-panel-redacted.png

Investigation and the patch were prepared with AI assistance.

isHeSatoshi avatar Nov 05 '26 18:11 isHeSatoshi

I read the report and all replies and checked the current network-panel connectivity mapping on quattro. The panel still maps NetworkManager’s aggregate limited state to the red warning. #17340 is open and already links this issue; I have not verified its fix.

Codex High reviewed this. The configured classification model (deepseek-v4p1-flash) returned no classification, so classification remains unsettled and triage stopped before runtime verification. No code was changed or tested, and no technical second opinion was requested. This is waiting for classification to be completed before verification can continue.

omarchybot avatar Nov 18 '26 18:11 omarchybot

The same problem with Omarchy 4.5.0-3. The AI analyzer says: NetworkManager binds its connectivity probe to the physical interface, NordVPN's firewall blocks that path, so NM reports "limited" — even though everything works through the tunnel. The Omarchy bar then shows the red warning. This is Omarchy issue #17326, and the fix PR is still open upstream. Your VPN connection is actually working perfectly. What you saw is a known Omarchy bug (#17326):

  1. NetworkManager checks internet connectivity by making an HTTP request bound to the physical Wi-Fi interface (wlp192s0)
  2. While NordVPN is connected, its firewall blocks anything leaving the physical interface outside the tunnel — so that probe times out
  3. NetworkManager concludes "limited connectivity" and the Omarchy bar shows the red "Limited internet access" warning
  4. Meanwhile, traffic through the tunnel (nordlynx) works fine

massimosgrelli avatar Dec 02 '26 12:12 massimosgrelli