CaddyFile configuration for Caddy 2.4.6 to enable QUIC protocol

1. The problem I’m having:

Hello, i' m trying to solve a problem. I need to configure the CaddyFile so that Quic protocol is enabled on my Caddy server v2.4.6.

2. Error messages and/or full log output:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

3. Caddy version:

2.4.6

4. How I installed and ran Caddy:

a. System environment:

LInux, UBUNTU 22.04 LTS

b. Command:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

c. Service/unit/compose file:

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

d. My complete Caddy config:

I' m using a local domain(not a public one), and at the moment this is my Caddyfile {

http_port 2080

https_port 2082

}

caloecla.com:2080 {

    reverse_proxy   10.0.2.15:2080

    respond "Hello"

}

caloecla.com:2082 {

    tls internal

    reverse_proxy   10.0.2.15:2082

    respond "Hello sicuro"

}

it works when i do curl http://caloecla.com:2080 or curl https://caloecla.com:2082, and if i do curl -i option the first link show me that it uses http 1.1, instead the second uses http2. But i need to enable QUIC

PASTE OVER THIS, BETWEEN THE ``` LINES.
Please use the preview pane to ensure it looks nice.

5. Links to relevant resources:

Why are you stuck on this version?! It’s more than 2 years old! Upgrade to latest and it’ll be enabled by default.

1 Like

i’m using this version because i’ m tryng to implement a QUIC attack related to this version in my local virtual machine, for a university project exam. In the paper the user used that particular version of Caddy Server, and i don’t know if with new version the vulnerability is still there(maybe yes because is a QUIC vulns, not a caddy one)

I see. Well, in that version, enabling QUIC/HTTP3 was done by adding experimental_http3 to the global options. For example, you can add it after the https_port 2082 line.

thank you very much for the help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.