#i need help with cloudflare tunnels

82 messages · Page 1 of 1 (latest)

vocal axle
#

so i self host a service for my mc java server stuff that's called minetrax but it does not whant to work with my cloud flare tunnels like i set the tunnels settings properly and its active (minetrax) but when i try to access the subdomain that i set for it it does not got to minetrax. i even tried accessing the same service from playit.gg and that worked and even conventional port forwarding worked to so why does cloudflare tunnels not work?

queen radish
#

?tunnel-tcp

candid magnetBOT
#

Cloudflare Tunnels use Cloudflare's proxy, which only supports proxying HTTP Traffic. If you want to use non-http applications over your tunnel, Cloudflare has a few other options:

For a few specific protocols such as SSH, RDP, and SMB, Cloudflare has guides for them here:
https://developers.cloudflare.com/cloudflare-one/applications/non-http/

For Arbitrary TCP like Minecraft, MySQL, and any other tcp application, Cloudflare has a guide here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/

For Arbitrary UDP like Minecraft Bedrock, SMTP, and any other udp application, you will need to use Private Networking with WARP: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/connect-private-networks/

Please note for all of these except SSH and VNC which can be browser-rendered, you will either need to use cloudflared (Cloudflare's tunnel daemon) on the client machine running in the background or Private Networking with WARP, and have WARP installed on the client machine logged into your Zero Trust Team.

vocal axle
vocal axle
queen radish
#

When you mention playit.gg and port forwarding, I thought you were talking about proxying minecraft itself

vocal axle
vocal axle
queen radish
queen radish
#

what's the error you get right now when trying to access it through a public hostname, and what's your configuration?

vocal axle
queen radish
# vocal axle

there's supposed to be a DNS record created for you when you add a public hostname but I don't see one for www, can you try deleting and recreating the public hostname? Could also copy the dns record from the panel subdomain (assuming same tunnel), but recreating would be easier

vocal axle
#

ok i deleted it and remade it

queen radish
vocal axle
#

ok so www does not whant to make a dns record at all but if i make another tunnel the same config but differant subdomain then it works

queen radish
vocal axle
#

correct

queen radish
#

just copy the cname target (from webbb or panel, assuming same tunnel) and manually make the DNS record after you make the public hostname then, and see if that works

vocal axle
#

ok

queen radish
#

those records aren't anything special, just need to get the traffic down into the tunnel

vocal axle
#

so what do i do to get www to work?

queen radish
#

well you got one step done

vocal axle
#

i dont see that

queen radish
#

now the tunnel itself is saying it can't reach http://192.168.1.41:25574

queen radish
vocal axle
queen radish
#

clear dns cache locally and switch your dns resolver to one who updates more quickly then your ISP default (assuming you're using the default), or wait it out (should be a max of an hour or so)

#

doesn't change the new error though, can the host the tunnel is running on reach http://192.168.1.41:25574? is the web server that is supposed to be there running/responding to requests?

vocal axle
vocal axle
queen radish
#

like curl http://192.168.1.41:25574 from the same hostthe tunnel is running on?

#

If that does work, the next thing to check is the tunnel logs journalctl -u cloudflared -f --lines=100 (if on linux/using a systemd os) and see why it thinks it can't connect

vocal axle
vocal axle
queen radish
queen radish
vocal axle
#

ok

queen radish
#

either by trying to curl the endpoint from that machine or by checking logs and seeing why it thinks it can't connect, either would be helpful

vocal axle
queen radish
#

from curl? that looks.. ok? Anything from cloudflared logs?

vocal axle
#

cloudflared | 2024-05-09T01:19:56Z ERR error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:5658: connect: connection refused" connIndex=3 event=1 ingressRule=6 originService=http://127.0.0.1:5658
cloudflared | 2024-05-09T01:19:56Z ERR Request failed error="Unable to reach the origin service. The service may be down or it may not be responding to traffic from cloudflared: dial tcp 127.0.0.1:5658: connect: connection refused" connIndex=3 dest=https://www.astrellemc.net/ event=0 ip=198.41.200.23 type=http

queen radish
#

127.0.0.1:5658

#

the one you said above was port 25574

vocal axle
#

yes

queen radish
#

what's the www public hostname configured service?

vocal axle
queen radish
#

well something is being crossed somewhere lol

#

how many tunnels do you have? Just that one, with a few public hostnames?

vocal axle
#

omg

#

its because i have another www public host name (so i have some how 2 of them)

#

omg it works now

queen radish
vocal axle
#

oh also while we are at it i also need to figure out my problem with me or my friends getting rate limited when going to my dynmap website that also runs through public hostname

queen radish
#

is the rate limit cloudflare branded/a cloudflare error page?

vocal axle
#

try moving the map then it gives you a error red box then refresh the page and you will see it

#

strange it is not doing it now

queen radish
vocal axle
#

yes because i refreshed my test server

queen radish
#

oh ok

vocal axle
#

its back up now

queen radish
vocal axle
#

yep thats the one

queen radish
#

If you go Security -> WAF -> Rate Limiting Rules, do you have anything setup?

vocal axle
queen radish
#

do you see an old rate limiting section at that page at all? would be right below if you had any old ones

vocal axle
#

nope

queen radish
#

Under the same Security tab there is Security -> Events, see if you can find any rate limiting events and the service causing it (would have to have happened recently tho)

vocal axle
queen radish
#

that would cause the same style of error page but a visibily different error, iirc its the one about browser signature. If you're sure it said "You are being rate limited / 1015", it wouldn't be that

#

something like this

vocal axle
#

i am not getting it now though on my end

queen radish
#

Browser Intregity Check is pretty useless anyway, if you think it could be it at all you can turn it off under Security -> Settings, or just wait until it happens again and check Security -> Events

vocal axle
#

ok