Files
marketplace-ai/plugins/server-ops/skills/service-reachability/SKILL.md
T

2.8 KiB

name, description
name description
service-reachability Определяет причину таймаута, ошибки TLS или неожиданного ответа сервиса со стороны сервера или рабочего компьютера.

Use the server-ops checkout for all repository paths and commands in this skill.

  1. Use server-operate to resolve the server and approved connection. Identify the expected hostname, port, transport, request path, response, and source network. Use SSH for server-side checks and the workstation for outside checks. Follow the repository's scope rules if a second server or another test location is needed.

  2. On the server, check the listener address, address family, transport, and owning process using ss -lntup. Check the active firewall and, when present, the reverse proxy's route and upstream listener. Test the local proxy and its upstream separately. Where possible, probe the upstream from the proxy's network namespace using its configured protocol, address, port, and Host or TLS name. Limit logs to the affected service and probe time. Report visibility limits of the SSH account.

  3. From the workstation, resolve the configured name with the client resolver. Check IPv4 and IPv6 separately when both are expected. Send a request through the normal client route. When investigating DNS or a proxy, also test the approved address directly while keeping the hostname for TLS and HTTP. Replace the placeholders in these HTTPS probes with the actual hostname, port, path, and approved address.

    curl -sS --max-time 10 -o /dev/null -w 'HTTP %{http_code}\n' 'https://HOST:PORT/PATH'
    curl -sS --max-time 10 -o /dev/null -w 'HTTP %{http_code}\n' --noproxy '*' --resolve 'HOST:PORT:IP' 'https://HOST:PORT/PATH'
    

    Bracket IPv6 addresses in --resolve. For HTTPS, keep certificate chain and hostname verification enabled. Inspect redirects before following them. For UDP, use an expected protocol response as evidence of reachability. When the task calls for functional or authenticated checks, use the service client and keep credentials and sensitive paths out of output.

  4. Compare the observations at each step. A successful TCP connection verifies the listener path. The HTTP status verifies the response at the requested path. An expected redirect or authentication challenge can confirm endpoint reachability, with the authenticated function still pending. Report the last layer that passed and the first failure or unknown, with the probe source, address family, observed status, and command exit status. Record the result.