I'm running into a problem where I can't get more than one active tunnel working at a time.
I have Proxmox with various LXC containers (Jellyseerr, qBittorrent, etc.)
I've installed Cloudflared LXC via script from tteck using ```bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/ct/cloudflared.sh)"
Add cloudflare gpg key with
```mkdir -p mode=0755 /usr/share/keyrings```
&
```curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null```
Added this repo to my apt repositories:
```echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared buster main' | sudo tee /etc/apt/sources.list.d/cloudflared.list
Did apt-get update -y & apt-get install -y cloudflared
Log in Cloudflare via CLI:
cloudflare tunnel login
Copy and paste cloudflare auth link into browser to get linked with my domain on Cloudflare side.
Created tunnel with: cloudflared tunnel create <tunnel-name>
Take note of new generated tunnel ID
Then cd into the cloudflared directory:
cd ./.cloudflared/
Then: nano config.yml
I add the following entry to config.yml file:
url: <container-one-ip>
tunnel: <tunnel-one-id>
credentials-file: /root/.cloudflared/<tunnel-one-ip>.json
---
# This entry is for setting up a second tunnel to other LXC container (This is where I think I'm going wrong, with the entries being separated by --- )
url: <container-two-ip>
tunnel: <tunnel-two-id>
credentials-file: /root/.cloudflared/<tunnel-two-id>.json
---
CTRL+X, y, ENTER to save to get back.
Then:
cloudflared tunnel route dns <tunnel-name> sub.domain
Last:
cloudflared tunnel run <tunnel-name>
The first time I do this, (when only one entry in the config.yml) it works and tunnel is healthy and active on Cloudflare. When doing this a second time for the next tunnel (and adding the new entry to .yml) it does not work.
Any ideas?