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
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.
That is, on the inbound side. For outbound you can override to any port with Origin Rules
Anything else you would need Enterprise Spectrum
Can I allow it somehow?
Cloudflare's normal cdn service is quite literally not listening on that port at all, nothing you can do to allow it
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?
what do you mean "a relay" and "doesn't work", what exact error?
8080 is also http only, not https
relay://mydomain.com:8080/
thats relay server
and 8080 is open now
when I say it doesn't work it doesn't communicate
that sounds like non-http, Cloudflare's normal cdn service is http only
so what I can do ?
For non-http protocol ddos protection?
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
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
so I have to create a subdomain with relay?
and make non traffic unproxies?
that's one solution yea
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 😄
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
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
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
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