CH-J Toolsserver management over SSH
Menu
All guides and articles →

How to verify that HTTP/3 and QUIC really work

Why an Alt-Svc header is not proof, what to check in NGINX and the firewall, and how to confirm a real QUIC transfer.

Why does the site load even when HTTP/3 is broken?

You enable HTTP/3, see an Alt-Svc header and open the website successfully. That still does not tell you whether a single request used QUIC. The browser can load everything over HTTP/2 on TCP while UDP traffic is blocked. To diagnose this, separate three questions: does the endpoint advertise HTTP/3, can the client attempt it, and does an actual request complete over that protocol?

Start with the exact public hostname that users visit. Replace server.example in the commands with your hostname. On Linux, this request retrieves response headers without downloading the body:

curl -sS -I --max-time 20 https://server.example/

For example, Alt-Svc: h3=":443"; ma=300 advertises an alternative service using HTTP/3 on port 443 of the same host, remembered for 300 seconds. It does not test the UDP listener, routing or firewall. A HEAD request can also be handled differently from GET, so compare with the actual resource if the header is missing.

Which parts of the connection can prevent QUIC?

HTTP/3 carries HTTP requests over QUIC, which uses UDP and integrates TLS 1.3. An HTTPS service accepting TCP 443 is therefore only part of the setup. The following failures require different fixes:

  • The client lacks HTTP/3 support, or browser policy prevents it from trying QUIC.
  • The public endpoint advertises h3 but has no working QUIC listener, or its certificate cannot be validated for the requested hostname.
  • A host firewall, cloud firewall, router, NAT rule or load balancer permits TCP 443 but does not forward UDP 443.
  • IPv4 and IPv6 reach different endpoints or have different firewall rules, making success depend on which address the client selects.
  • A CDN terminates the public connection. Its HTTP/3 support and the protocol it uses to the origin are separate settings.

Write down where TLS terminates before changing NGINX. If users connect to a CDN, a successful public test proves QUIC to that CDN endpoint. It does not prove QUIC to your origin. Conversely, an origin that works directly cannot repair a public load balancer that only accepts TCP. Test each intended endpoint separately.

How do you prove a transfer with curl on Linux or Windows?

Check the executable first. On Linux run curl -V and look for HTTP3 in the Features line. An unknown --http3-only option or a message that the installed build lacks support is a client limitation, not evidence against the server. Use a trusted HTTP/3-capable build for testing rather than replacing production packages without checking their dependencies.

curl -V
curl -sS --http3-only --connect-timeout 10 --max-time 30 -o /dev/null -w 'HTTP=%{http_version} status=%{response_code}\n' https://server.example/

The command downloads the response body and discards it locally. Require both successful command completion and HTTP=3. For a healthy page you might see this illustrative output; a different status needs application diagnosis even if QUIC itself works:

HTTP=3 status=200

Use --http3-only for this check. The --http3 option permits fallback, so a completed download alone could still mean HTTP/2. Do not add redirect following initially: inspect any redirect and test the destination hostname separately. That keeps the reported protocol attached to an endpoint you can identify.

In Windows PowerShell call curl.exe explicitly so an alias does not invoke another tool. Check that executable independently; Windows does not guarantee an HTTP/3-capable curl installation. Use NUL in place of the Linux output sink:

curl.exe -V
curl.exe -sS --http3-only --connect-timeout 10 --max-time 30 -o NUL -w "HTTP=%{http_version} status=%{response_code}\n" https://server.example/

How do you configure the Linux NGINX endpoint safely?

On the Linux server inspect the NGINX binary that actually serves the site. Its version, HTTP/3 module and linked TLS library must support QUIC. The HTTP/3 module is not built into every package. In containers, run the checks inside the serving container rather than against an unrelated host installation.

nginx -V 2>&1
sudo nginx -t

The following is a fragment for an existing HTTPS server block on NGINX 1.25.1 or later with the HTTP/2 and HTTP/3 modules. Keep your existing server_name, valid certificate, certificate key and location configuration. Ensure the effective TLS policy permits TLS 1.3. Adapt existing listen directives instead of duplicating them, and specify reuseport only once for a shared address and port across virtual hosts.

listen 443 ssl;
listen 443 quic reuseport;
http2 on;
ssl_protocols TLSv1.2 TLSv1.3;
add_header Alt-Svc 'h3=":443"; ma=300' always;

These listeners illustrate IPv4. If the hostname publishes IPv6, configure the corresponding IPv6 TCP and QUIC listeners too. Check the default virtual host TLS policy and verify the resulting response headers; location-level header settings can change what is inherited. Keep ma short during rollout so a mistaken advertisement expires quickly.

On Ubuntu or Debian installations managed by systemd with the nginx unit, validate and reload as follows. If validation fails, fix the reported configuration error before proceeding. A successful syntax check does not test external UDP reachability.

sudo nginx -t && sudo systemctl reload nginx

How do you locate a UDP 443 filtering problem?

Check for a UDP listener on the Linux endpoint after reloading. A TCP listener alone does not serve QUIC. Use ss to inspect the local socket, then review the active firewall. On Ubuntu or Debian systems already managed with UFW, the read-only checks are:

sudo ss -lunp 'sport = :443'
sudo ufw status verbose

If policy permits public HTTP/3 and UFW is the active filter, allow its UDP port. Do not enable UFW just to run this test, and do not flush firewall rules. Keep existing SSH and HTTPS access rules. If another firewall manager is in use, change its configuration instead of mixing managers.

sudo ufw allow 443/udp

Check cloud security rules, UDP forwarding on NAT and load balancer listeners separately. Then run this bounded capture on the Linux endpoint while an external client repeats the forced HTTP/3 request. It requires tcpdump to be installed and stops after 30 packets, or earlier with Ctrl+C:

sudo tcpdump -ni any -c 30 'udp port 443'

No arriving packets points toward the client, selected address or upstream path. Incoming packets without replies narrow the search to the endpoint and its filtering. Traffic in both directions still does not prove a completed HTTP request: QUIC handshakes and retries also produce UDP packets.

How do you verify the public result and isolate address problems?

  1. Repeat the forced curl request from outside the server network. Record the hostname, client build, network and result so another administrator can reproduce it.
  2. In browser developer tools, open the Network panel and enable the Protocol column. Reload after receiving the advertisement, and inspect an actual network response showing h3. A cached response alone is not a new transfer.
  3. Test from a second independent network if QUIC times out. Corporate networks, VPN paths and public Wi-Fi can have different UDP policies.
  4. If the hostname has both address families, repeat with curl -4 and curl -6. Investigate only the family that fails before changing the working one.

To isolate one backend on Linux, --resolve pins the hostname to an address while keeping the hostname for TLS verification and HTTP routing. Replace this documentation address with the intended endpoint. This bypasses normal address selection, so label it as a direct endpoint test rather than the public DNS result:

curl -sS --http3-only --resolve server.example:443:203.0.113.10 --connect-timeout 10 --max-time 30 -o /dev/null -w 'HTTP=%{http_version} status=%{response_code}\n' https://server.example/

A completed request confirms that endpoint from that client at that time. It does not certify every address, every CDN location or every visitor network. If direct testing works but public testing fails, return to DNS, the public TLS endpoint and the forwarding path.

Which shortcuts make the result misleading?

  • Do not treat an Alt-Svc header, an open UDP socket or a packet capture as a substitute for a completed HTTP/3 request.
  • Do not use a TCP port test to declare UDP 443 reachable. TCP and UDP firewall decisions are separate.
  • Do not declare the server unsupported after a single timeout. First verify the client and compare another network.
  • Do not replace the hostname in the URL with an IP address to bypass DNS. That can change certificate verification and virtual host selection; use --resolve instead.

Do not make --insecure or -k part of the verification procedure. It disables certificate verification, so a successful transfer no longer demonstrates an authenticated connection to the intended server. Fix the hostname, certificate chain or client trust store instead.

How should you roll out HTTP/3 and measure its benefit?

Keep HTTP/2 and ordinary HTTPS over TCP available. QUIC can avoid TCP-level blocking between independent streams when packets are lost, but congestion control, application dependencies and server load still affect response times. A clean wired connection may show little benefit. Do not promise a speed increase from a protocol label.

  • Compare the same resources with equivalent cache state, similar concurrency and repeated runs. Separate connection setup from sustained transfers.
  • Include representative client networks and observe server CPU use alongside latency and transfer completion. Report failed QUIC attempts as well as successes.
  • After changes to certificates, firewall rules, DNS or load balancers, repeat an external forced HTTP/3 request and an ordinary HTTPS check.
  • Increase the Alt-Svc lifetime only after the public path is stable. During rollback, keep TCP service working and account for advertisements clients may already have cached.

Keep a small operations record of the tested hostname, addresses, listener configuration and firewall owners. This makes later regressions easier to locate than a note saying only that HTTP/3 was enabled.

How does CH-J Tools help verify HTTP/3?

Server Diagnostics includes a bundled HTTP client, so its HTTP/3 test does not depend on the system curl. It distinguishes an advertised service from a confirmed transfer:

  • Alt-Svc is treated only as an advertisement of support.
  • HTTP/3 is confirmed only after a completed QUIC transfer.
  • A UDP timeout leaves server support unverified because the intervening network may be responsible.
  • A fallback to another protocol does not count as HTTP/3 success.

Frequently asked questions

Can HTTP/3 work without an Alt-Svc header?

Yes. A client can try a known HTTP/3 endpoint directly, as curl --http3-only does. The header helps clients discover an alternative service; it is not part of the proof that a forced request succeeded.

Does HTTP/3 require a separate certificate?

No. The certificate must be valid for the requested hostname and trusted by the client. An existing suitable HTTPS certificate can be used; QUIC requires TLS 1.3 support at the endpoint.

Why does the browser still show h2 after I enabled HTTP/3?

It may still be discovering the alternative service, reusing a connection, following policy or falling back after a failed QUIC attempt. Inspect a fresh network request and compare it with a forced curl test.

Does HTTP/3 between a browser and CDN require HTTP/3 to the origin?

No. These are separate connections. Confirm the browser-facing protocol at the public endpoint, and test the origin independently if you also intend to use QUIC on that connection.

Does a 404 response mean the HTTP/3 test failed?

A completed response over HTTP/3 confirms the transport even if the application returns 404. It does not confirm that the requested page exists. Check the protocol, successful transfer completion and application status separately.

Detailed documentation

RFC 9114: HTTP/3 →

NGINX: QUIC and HTTP/3 →

NGINX: HTTP/3 module →

NGINX: HTTP/2 module →

NGINX: SSL module →

Biometric unlock and security →

All tutorials by category →