Turbocharge Jellyfin Streaming: Enabling QUIC (HTTP/3) via SWAG
Want to enable cutting edge speed for Jellyfin? Your QUIC / HTTP3 setup is here, with example firewall rules and reverse proxy configs included.
If you host your own media server, you already know the pain of streaming over a spotty cellular connection or a terrible hotel Wi-Fi network. While Jellyfin is an absolute powerhouse, streaming over standard TCP means that the moment your phone drops a single packet, the entire stream freezes while the network waits to resend it.
The solution? HTTP/3 and QUIC.
Instead of TCP, HTTP/3 uses QUIC (Quick UDP Internet Connections). Because it runs over UDP, it doesn't suffer from "head-of-line blocking." If a packet gets dropped, the video keeps playing seamlessly while the missing data is recovered. It drastically reduces latency, establishes connections faster, and makes remote streaming incredibly resilient.
However, getting HTTP/3 working through a reverse proxy can be a nightmare. While there are a hundred guides for Traefik, this is the definitive guide to enabling QUIC for Jellyfin through SWAG (LinuxServer's NGINX proxy).
Secure Jellyfin with HTTPS: Reverse Proxy Guide (SWAG, NPM & Traefik)
Before enabling UDP/QUIC speed acceleration, you need a working HTTPS reverse proxy stack. If you haven't yet deployed your SWAG container, configured Let's Encrypt SSL certificates, or set up WebSocket proxy headers, follow my foundational pillar guide first.
Step 1: Open UDP Port 443 in OPNsense (or your Router)
HTTP/3 strictly requires UDP Port 443. Standard HTTPS only uses TCP 443. If you don't explicitly forward UDP 443 to your SWAG server, QUIC will silently fail and clients will gracefully downgrade back to TCP.
In OPNsense, go to Firewall > NAT > Destination NAT and clone your existing TCP 443 rule, but switch the protocol to UDP, or, just edit it and allow TCP & UDP simultaneously. It should look like this:

Note: This is simply a port forward to my reverse proxy, named as an alias in my firewall as "FTL_Proxy".
Step 2: Expose UDP in Docker Compose (Optional)
If you are using standard Docker bridge networking, you must explicitly expose the UDP port in your SWAG compose.yaml. If you are using a macvlan network with a dedicated IP (like my setup), you can skip this, as the container already exposes all ports.
services:
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
ports:
- "443:443/tcp"
- "443:443/udp" # Required for HTTP/3 QUIC
If you're using a different kind of reverse proxy, check how to setup / allow / enable 443/udp for it.
Step 3: Configuring NGINX in SWAG for Jellyfin HTTP/3
Now for the fun part. Open your SWAG NGINX configuration for Jellyfin (usually located at /config/nginx/proxy-confs/jellyfin.subdomain.conf).
You need to tell NGINX to listen for QUIC connections, advertise HTTP/3 to the client browser, and enable the specific QUIC retry security protocols to prevent UDP reflection attacks.
Here is my exact, production-ready SWAG config block:
server {
listen 443 ssl;
listen 443 quic; # Listen for UDP QUIC
listen [::]:443 ssl;
listen [::]:443 quic;
server_name jf.*;
# Advertise HTTP/3 to the client (always send, even on error responses)
add_header Alt-Svc 'h3=":443"; ma=86400' always;
# Enable QUIC specifics & anti-amplification protection
http3 on;
quic_retry on; # Security: prevents IP spoofing/reflection attacks
include /config/nginx/ssl.conf;
client_max_body_size 128M;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app 10.0.0.49; # Your Jellyfin LAN IP
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
}
}

1. Initial Handshake over TCP: Web browsers and client apps always initiate their first connection over standard TCP.
2. The Alt-Svc Advertisement: The SWAG NGINX server responds over TCP with the Alt-Svc: h3=":443"; ma=86400 header, informing the client that HTTP/3 is available on UDP port 443.
3. Automatic QUIC Acceleration: The client browser caches this instruction and automatically establishes the ultra-resilient UDP / QUIC connection on all subsequent requests or after a page refresh.
Step 4: Restart SWAG and Verify
Once your configuration is saved, restart the SWAG container:
docker restart swag
To test if it's working, open your Jellyfin URL in Chrome or Firefox, open the Developer Tools (F12), and navigate to the Network tab. Refresh the page and look at the "Protocol" column. If it says h3 instead of h2, congratulations—you are officially streaming over HTTP/3 QUIC!
Your mobile viewing experience on cellular networks is about to get a massive upgrade. No more buffering!
What's Next?
Now that your proxy is handling blazing-fast UDP traffic, ensure it is locked down by reading our guide on deploying CrowdSec WAF with SWAG.

Frequently Asked Questions
Why does HTTP/3 (QUIC) make Jellyfin stream faster?
HTTP/3 uses UDP instead of TCP. Traditional TCP requires strict packet ordering, meaning one dropped packet halts the entire stream (head-of-line blocking). UDP allows video data to keep flowing seamlessly even on spotty connections like cellular data or hotel Wi-Fi, drastically reducing buffering.
Do I need to open a new port for QUIC?
Yes. While standard HTTPS uses TCP port 443, HTTP/3 requires UDP port 443. You must configure your router (like OPNsense) to forward UDP 443 to your reverse proxy.
How do I know if Jellyfin is actually using QUIC?
You can verify QUIC is working by opening your browser's Developer Tools (F12), navigating to the Network tab, and ensuring the "Protocol" column says h3 (HTTP/3) instead of h2.
Written by
