Logo van Network Diag

Network Diag

Organisatie
serversathome
network-diag

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Add to TypingMind

Overzicht

Uitgeverserversathome
Repositoryhomelabhero
Skillnaamnetwork-diag
Sterren
104
Forks
4
Meegeleverde bestanden
Alleen instructies
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door serversathome op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Network Diag in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/serversathome/homelabhero.git /tmp/homelabhero
mkdir -p .claude/skills
cp -r /tmp/homelabhero/ops/.claude/skills/network-diag .claude/skills/network-diag
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Network Diag in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Network Diag automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Network Diag niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Network diagnostics

Read infra/network.md for topology, subnets, DNS, and mesh CIDR first. The per-platform commands live in capabilities/ (linux.md for host interfaces, routes and resolvers; routeros.md for a MikroTik switch, which is not a POSIX shell), and are not loaded up front: read the one for the host you are probing.

Ask the gateway first, if it is registered

When a UniFi console is registered (hh list shows platform unifi), start there. One command rules the whole fabric in or out before probing host by host:

hh unifi summary                 # WAN, internet, LAN, WiFi, devices, clients
hh unifi devices                 # anything not ONLINE explains a lot at once

An offline switch or access point accounts for every host behind it, so finding one here saves troubleshooting those hosts individually. The unifi-ops skill covers the rest, including clients and VLANs.

This is read-only: it diagnoses the fabric, it does not reconfigure it. UniFi changes are made by hand in the UniFi app.

Then ask the mesh and the edge, if they are registered

The overlay and the ingress each have their own control plane, and each answers when the host in question does not. Check them before shelling anywhere:

hh netbird summary               # is the peer even connected? (netbird-ops)
hh cloudflare summary            # is the tunnel up? (cloudflare-ops)

This is the order that saves the most time: fabric, then overlay, then edge, then the host. Three of those four answer while the host is unreachable, so working inward means you usually know WHERE the break is before you try to log in to anything.

What none of them can see, and this skill can: DNS resolution inside a host, the host's own interfaces and routes, and whether the service itself is alive. A NetBird peer can be connected and a Cloudflare tunnel healthy while the app behind them returns 502 all day.

Localize: is it reachability, name resolution, or the service

ping -c2 <host-ip>                 # L3 reachability by IP
nc -vz <host> <port>               # is the service port open
dig <name> @<internal-resolver>    # does the name resolve, to what

Three quick outcomes:

  • IP pings, name fails -> DNS problem (go to DNS section)
  • Neither pings -> host or path down (mesh, switch, gateway)
  • Both fine, port closed -> the service, not the network (hand back to the app)

NetBird mesh

Ask the control plane first - it answers when the peer does not:

hh netbird summary                 # offline peers, agent version drift
hh netbird peers                   # last seen, per peer
hh netbird peer <name>             # one peer in full

Then the peer's own opinion, which is a good second source and a poor first one:

netbird status                     # local peers and connection state
hh run <alias> "netbird status"       # from the far side, if reachable another way

If a host is reachable on its LAN IP but not its mesh IP, the mesh peer is down. Restart NetBird on that host; peers commonly need a nudge after the host reboots.

DNS

resolvectl status | head -30
dig <name> @<internal-resolver>
dig <name> @1.1.1.1                # compare internal vs external answer

Split-horizon mismatches (internal name resolving differently per VLAN, or a stale record after a gateway change) show up as "works from here, not from there". Compare answers from two vantage points.

Ingress

There may be TWO ways in, and checking only one is the most common way to conclude wrongly that a service is not published:

  • a Cloudflare Tunnel, and
  • a NetBird BYOP reverse proxy, if the account runs one.

Ask both before deciding:

hh netbird services                # NetBird-published, and public vs mesh-only
hh cloudflare tunnels              # Cloudflare-published

A NetBird service marked mesh-only is reachable over the mesh and gated by group membership - it has a domain and a certificate and is deliberately NOT on the internet. That is a configuration, not a fault.

Cloudflare Tunnels

Cloudflare's own view first, for the same reason:

hh cloudflare tunnels              # status and live connection counts
hh cloudflare tunnel-show <name>   # which hostname maps to which service
hh cloudflare records <zone> <name>  # does the DNS record point at it

A hostname needs BOTH an ingress rule and a CNAME to <tunnel-id>.cfargotunnel.com; one without the other is a common half-finished state that looks like a tunnel fault and is not.

Then the daemon on the host:

hh run <tunnel-host> "cloudflared tunnel list"
hh run <tunnel-host> "systemctl status cloudflared"
hh run <tunnel-host> "journalctl -u cloudflared -n 80 --no-pager"

Physical layer (10GbE)

If storage throughput suddenly tanks, check for link renegotiation.

hh run truenas "ethtool <iface> | grep -i speed"
hh run truenas "ip -s link show <iface>"   # errors/drops climbing

The UCG-Ultra and the XS708E are managed from their own UIs; note findings here and in infra/network.md, since they are not SSH targets.

Veelgestelde vragen

Wat doet de AI-skill Network Diag?

Diagnose homelab connectivity, DNS, mesh, and ingress issues. Use this whenever the user reports that hosts or services are unreachable, DNS is not resolving, the NetBird mesh is flaky, a Cloudflare Tunnel is down, the UCG-Ultra gateway or Netgear 10GbE switch is involved, a link dropped or renegotiated speed, or a service works locally but not remotely. Trigger this early in any "everything is down" situation, since broad outages are usually a network or DNS layer wearing an application costume.

Waarom Network Diag gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Network Diag bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Network Diag in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/serversathome/homelabhero/tree/main/ops/.claude/skills/network-diag. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Network Diag gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Network Diag gebruiken?

Zoveel als je wilt. Je kunt Network Diag gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Network Diag gratis?

Deze skill is door serversathome op GitHub gepubliceerd. Bekijk de repository voor de licentievoorwaarden. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇