Hell folks! I'm terribly sorry if this is not the place, but I need help.
I'm setting up a game server on a docker container, and in the docker-compose.yml I have both the game server and cloudflared set up with a tunnel token.
In cloudflare dashboard, I configured the tunnel and set up http://gamename:port , but I can not connect to the game's dashboard via the domain I set up.
Any help is appreciated, I'm new to setting up this kind of stuff.
Thank you :)
#Docker Container Cloudflared Tunnel
26 messages · Page 1 of 1 (latest)
?tunnel-tcp
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, VNC and RDP 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.
TLDR:
To use tunnels to host game servers, every player also needs to install the tunnel/warp
Oh, but the game dashboard is http. It's only the dashboard not the game itself. It's a plugin installed in the game, for a web dashboard
ok, that should work
Let me be specific, maybe I can receive better help
I am setting up BlueMap for Minecraft. I'm running Minecraft along with BlueMap inside a docker container. I can do localhost:25566 and localip:25566 , but cloudflare can not resolve dns
ok, first of all, what's the domain/subdomain you're using?
Exactly the subdomain is: mapa.nyttlandmc.net.ar
Of course the domain is already configured
When you say http://gamename:port, what exactly do you mean by gamename?
Bluemap is set up as a plugin inside Minecraft paper, and I configured the port 25566 on its setting. Then, in the docker compose image, I forwarded 25565 and 25566. In cloudflare, I set up http://minecraft:25566
The docker container is of course name minecraft
Can you share the actual docker compose file (without private information)?
I'm not super familiar with this, but doesn't the cloudflared service also need a networks attribute to allow it to use the networks your minecraft service is on?
Maybe? But doesn't docker compose automatically connect containers in the same docker compose image?
I don't think it does if you specify networks explicitly, only if you don't
Not sure though, I very rarely use it
The default network
When a Compose file doesn't declare explicit networks, Compose uses an implicit default network. Services without an explicit networks declaration are connected by Compose to this default network:
Alright, I'll try explicitly specifying the network
That worked, thank you
DNS over Discord: A records
geek.cascai.art A @1.1.1.1 +noall +answer
NAME | TTL | DATA
----------------+------+--------------
geek.cascai.art | 300s | 47.251.102.76
diggy diggy hole
·