I Install Caddy on FreeBSD behind OPNsense and I get error: secure connection failed.
I installed the same configuration on another site with caddy on debian than freeBSD without problem, same rules: port forward 80 and 443.
I start another webserver on port 80 and forward to this IP adress and I can reach the server from external.
I miss something but what?
2. Error messages and/or full log output:
{"level":"error","ts":1728030275.7452548,"logger":"tls.obtain","msg":"could not get certificate from issuer","identifier":"toto.pequod.sokil.fr","issuer":"acme-v02.api.letsencrypt.org-directory","error":"HTTP 400 urn:ietf:params:acme:error:connection - 89.219.181.98: Fetching http://toto.pequod.sokil.fr/.well-known/acme-challenge/fKLS-zkEi6tdDN1I63p0Xy8e6RSsOtIjaq_rE-H9iVo: Timeout during connect (likely firewall problem)"}
{"level":"error","ts":1728030275.7454224,"logger":"tls.obtain","msg":"will retry","error":"[toto.pequod.sokil.fr] Obtain: [toto.pequod.sokil.fr] solving challenge: toto.pequod.sokil.fr: [toto.pequod.sokil.fr] authorization failed: HTTP 400 urn:ietf:params:acme:error:connection - 89.219.181.98: Fetching http://toto.pequod.sokil.fr/.well-known/acme-challenge/fKLS-zkEi6tdDN1I63p0Xy8e6RSsOtIjaq_rE-H9iVo: Timeout during connect (likely firewall problem) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":5,"retrying_in":600,"elapsed":725.25959746,"max_duration":2592000}
3. Caddy version:
Caddy 2.8.4_3
4. How I installed and ran Caddy:
NA
a. System environment:
FreeBSD 14.1-RELEASE
OPNsense 24.7.5_3-amd64
Everything on Proxmox 8.2.5
Make sure ports 80 and 443 are correctly forwarded to your server’s IP, in your router/firewall. I don’t know FreeBSD, but make sure it doesn’t have some software firewall blocking those ports.
If this is a home server, make sure your ISP isn’t blocking the use ports 80 and 443, some ISPs don’t allow use of those ports.