Cloudflare doesn't allow port 8041

I have my custom web app which is using port 8041 as relay and it's not open to the internet, this only happens when I use cloudflare.
19 Replies
Chaika
Chaika•7mo ago
Cloudflare's normal proxy/cdn only supports a few ports: https://developers.cloudflare.com/fundamentals/reference/network-ports/
Cloudflare Docs
Network ports · Cloudflare Fundamentals docs
Learn which network ports Cloudflare proxies by default and how to enable Cloudflare’s proxy for additional ports.
Chaika
Chaika•7mo ago
That is, on the inbound side. For outbound you can override to any port with Origin Rules Anything else you would need Enterprise Spectrum
XANDRO
XANDROOP•7mo ago
Can I allow it somehow?
Chaika
Chaika•7mo ago
Cloudflare's normal cdn service is quite literally not listening on that port at all, nothing you can do to allow it
XANDRO
XANDROOP•7mo ago
I changed it to different port for example 8080 it's open now but still my app doesnt work it's a relay but that shouldn't matter right?
Chaika
Chaika•7mo ago
what do you mean "a relay" and "doesn't work", what exact error? 8080 is also http only, not https
XANDRO
XANDROOP•7mo ago
relay://mydomain.com:8080/ thats relay server and 8080 is open now when I say it doesn't work it doesn't communicate
Chaika
Chaika•7mo ago
that sounds like non-http, Cloudflare's normal cdn service is http only
XANDRO
XANDROOP•7mo ago
so what I can do ?
Chaika
Chaika•7mo ago
For non-http protocol ddos protection?
XANDRO
XANDROOP•7mo ago
i don't need ddos protection there I just want to my http web server uses cloudflare while i can still use relay without any problems
Chaika
Chaika•7mo ago
then I would say make a different unproxied/dns-only record like relay.mydomain.com and make your web server only allow connections on 80/443 from Cloudflare so you'd have mydomain.com being proxied by Cloudflare, web server traffic only, and then a relay subdomain just for relay traffic unproxied otherwise if you wanted mydomain.com to both you'd need Cloudflare Spectrum with Enterprise and they would both be proxied by Cloudflare, or you could unproxy mydomain.com and lose Cloudflare's DDoS Protection/WAF/etc even for your web server
XANDRO
XANDROOP•7mo ago
so I have to create a subdomain with relay? and make non traffic unproxies?
Chaika
Chaika•7mo ago
that's one solution yea
XANDRO
XANDROOP•7mo ago
in my app i have config where it says relayListenUri and the value I added this relay://relay.domain.com:8080/ and subdomain unproxied relay.domain.com pointing to same server as the others should that work? and now it's redirecting my 8080 to 80 😄
Chaika
Chaika•7mo ago
sounds reasonable to me, as long as it's unproxied CF shouldn't be in the way and any redirects/etc would be from your origin/your end
XANDRO
XANDROOP•7mo ago
nope doesnt work 😦 Let me repeat once again pal I have a record with name relay pointing to my server dns only so its not proxied and than I changed my web config app and it's trying to listen for relay on 80 instead of 8080 I typed because cloudflare is probably redirecting it to 80
Chaika
Chaika•7mo ago
if it's not proxied, there is no Cloudflare involved or in the middle at all. Cloudflare merely serves the dns record, anything else is up to your client and your origin
XANDRO
XANDROOP•7mo ago
hm now subdomain is pointing to my website thats for sure there is no ssl so it's not going through cloudflare still it's changing my relayport for some reason
Want results from more Discord servers?
Add your server