Cloud-flare tunnel with multiple and wildcard subdomain not working

I have tried a lot of combination but failed. I am using virtual box machine (ubuntu 22 with docker and portainer)
I am successfully able get only the first url.

I wanted to do something like this :

tunnel: 6ff42ae2-765d-4adf-8112-31c55c1551ef
credentials-file: /root/.cloudflared/6ff42ae2-765d-4adf-8112-31c55c1551ef.json


ingress:
  # Rules map traffic from a hostname to a local service:
  - hostname: example.com
    service: https://localhost:8000
  # Rules can match the request's path to a regular expression:
  - hostname: static.example.com
    path: \.(jpg|png|css|js)$
    service: https://localhost:8001
  # Rules can match the request's hostname to a wildcard character:
  - hostname: '*.example.com'
    service: https://localhost:8002
  # An example of a catch-all rule:
  - service: https://localhost:8003

Here is my config

tunnel: 6ff42ae2-765d-4adf-8112-31c55c1551ef
credentials-file: /root/.cloudflared/6ff42ae2-765d-4adf-8112-31c55c1551ef.json
ingress :
      - hostname: example.com
        service: http://localhost:8000
      - hostname: code.sub1.example.com
        service: http://localhost:8433
      - hostname: '*.sub1.example.com'
        service: http://localhost:9443
      - service: http_status:404

Here is the DNS I am using


CNAME | *.s2  | 6ff42ae2-765d-4adf-8112-31c55c1551ef.cfargotunnel.com
CNAME | s2  | 6ff42ae2-765d-4adf-8112-31c55c1551ef.cfargotunnel.com

So here is the problem, only the example.com hostname is available, the code.sub1.example.com does not.

Some times I found

Error code: SSL_ERROR_NO_CYPHER_OVERLAP

sometimes I have no reply. Where I am doing it wrong?

Note 6ff42ae2-765d-4adf-8112-31c55c1551ef.cfargotunnel.com is example tunle from example!

That’s not a tunnel issue, it’s this:

4 Likes

So if I use wildcard let’s encrypt ssl certificate does it solves the problem with 3rd party ssl certificate problem? I made this work by using 1 LVL subdomains