cloudlfared

Root and Shared user with same files:
/path/to/home/.cloudflared/
cert.pem
config.yml
tunnel1-id.json
tunnel2-id.json
/path/to/home/.cloudflared/
cert.pem
config.yml
tunnel1-id.json
tunnel2-id.json
13 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BenitzCoding
BenitzCoding3y ago
Ok. It's all in the config, so I don't need to do that.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BenitzCoding
BenitzCoding3y ago
No, same domain. Different subdomain. test.senarc.org and api.senarc.org
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BenitzCoding
BenitzCoding3y ago
Oooo ingress... But how for each tunnel? I have 2.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BenitzCoding
BenitzCoding3y ago
Ok! What is the issue here??
shared@parrot:~/tunnels$ sudo ./api.sh
2022-02-07T15:00:06Z INF Starting tunnel tunnelID=716e8b92-1fed-4780-b468-d665bc6b1646
2022-02-07T15:00:06Z INF Version 2022.1.2
2022-02-07T15:00:06Z INF Built with FIPS
2022-02-07T15:00:06Z INF GOOS: linux, GOVersion: devel go1.17-462257294d Fri Dec 10 09:14:00 2021 +0100, GoArch: amd64
2022-02-07T15:00:06Z INF Settings: map[config:/home/shared/tunnels/API.yml cred-file:/root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json credentials-file:/root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json p:quic protocol:quic]
2022-02-07T15:00:06Z INF cloudflared will not automatically update if installed by a package manager.
2022-02-07T15:00:06Z INF Generated Connector ID: 1c351c8d-4adf-458c-aea4-26f4596580a1
2022-02-07T15:00:06Z ERR Couldn't start tunnel error="The last ingress rule must match all URLs (i.e. it should not have a hostname or path filter)"
The last ingress rule must match all URLs (i.e. it should not have a hostname or path filter)
shared@parrot:~/tunnels$ sudo ./api.sh
2022-02-07T15:00:06Z INF Starting tunnel tunnelID=716e8b92-1fed-4780-b468-d665bc6b1646
2022-02-07T15:00:06Z INF Version 2022.1.2
2022-02-07T15:00:06Z INF Built with FIPS
2022-02-07T15:00:06Z INF GOOS: linux, GOVersion: devel go1.17-462257294d Fri Dec 10 09:14:00 2021 +0100, GoArch: amd64
2022-02-07T15:00:06Z INF Settings: map[config:/home/shared/tunnels/API.yml cred-file:/root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json credentials-file:/root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json p:quic protocol:quic]
2022-02-07T15:00:06Z INF cloudflared will not automatically update if installed by a package manager.
2022-02-07T15:00:06Z INF Generated Connector ID: 1c351c8d-4adf-458c-aea4-26f4596580a1
2022-02-07T15:00:06Z ERR Couldn't start tunnel error="The last ingress rule must match all URLs (i.e. it should not have a hostname or path filter)"
The last ingress rule must match all URLs (i.e. it should not have a hostname or path filter)
My config:
tunnel: 716e8b92-1fed-4780-b468-d665bc6b1646
credentials-file: /root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json
protocol: quic

ingress:
- hostname: api.senarc.org
service: http://localhost:8080
tunnel: 716e8b92-1fed-4780-b468-d665bc6b1646
credentials-file: /root/.cloudflared/716e8b92-1fed-4780-b468-d665bc6b1646.json
protocol: quic

ingress:
- hostname: api.senarc.org
service: http://localhost:8080
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
BenitzCoding
BenitzCoding3y ago
So if link is not valid then it returns 404? I still don't understand and get the same error.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Damian1a
Damian1a5mo ago
did you figured out? I have the same problem ok, I put the - service: http_status:404 and it worked. Also looked at the 2 files: /etc/cloudflared/config.yml /home/pi/.cloudflared/config.yml they need to be exactly the same