View Single Post
Old 03-23-2024, 08:26 PM   #32
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question

So got the tunnel made (I think, LoL).

Created a config.yml file in the .cloudflared folder, which also contains my tunnel (UUID).json file, and pem.cert file.

Before all this, I have a registered domain, mywebsite.net, all setup in my Cloudflare dashboard. now the last task is connect the tunnel to that website, which is what I think the config.yml does. Here is its simple contents:
Quote:
url: http://localhost:8083
tunnel: (mytunnel UUID)
credentials-file: /root/.cloudflared/(mytunnel UUID).json
Then it asked me to start routing, as in:
Quote:
Start routing traffic
Now assign a CNAME record that points traffic to your tunnel subdomain:
If you are connecting an application, route the service to a public hostname:
cloudflared tunnel route dns <UUID or NAME> <hostname>
So I used that format, putting in my tunnel UUID, and mywebsite.net as the hostname, but get errors:
Quote:
Failed to add route: code: 1003, reason: Failed to create record mywebsite.net with err An A, AAAA, or CNAME record with that host already exists.
So I am obviously misunderstanding something. Yes, I already have a CNAME record, but how to route traffic to the tunnel w/o this step?

Monty
MontyJ is offline   Reply With Quote