I am very new to Traefik but got a bunch of stuff that I want internet facing working over the past few days. I have all the https redirects, and whitelists and it's working great for website based programs (Emby, Nextcloud, Portainer, Traefik web interface, etc).
I spent most of the day trying to put a Minecraft Bedrock server behind the proxy though and am not having much luck. I am to the point that the server shows up as available within my LAN and I can connect that way from the "friends list" in the game but I am unable to use any sort of web address with it to make the connection. The documentation all says the server uses UDP 19132 but the LAN server doesn't show up in the game unless I have a TCP and UDP entry point on that port:
I see that the verified cert is being pulled for the domain in acme.json but I have no idea if that is necessary for this app. I don't know if "traefik.http.routers.minecraft.rule=Host(example.duckdns.org)" is correct for that line as I am not making an HTTP connection but without it the server doesn't show up as available in the LAN.
"traefik.http.routers.minecraft.entrypoints=udpminecraft" throws some errors about not being a valid entry point and I have tried it as a udp and tcp.router with no success either.
Anyway, I know I am not understanding all the in/outs of the the program yet and I figured that after 8 hours or so of plugging away at this I should turn to the experts.
This is some other useful info from the traefik compose:
I guess the simplest way to serve a bedrock server via Traefik is not to fiddle with HTTP routers or any TCP things. The Bedrock server works purely over UDP and configuring a UDP router and service is sufficient. My configuration looks like follows:
Thanks for following up. when I get some time over the next few weeks, I will mess around with the things you posted and see if I get the same issues or not.
One thing I was just thinking of, that although the docs state Bedrock uses ONLY UDP, I get issues with outside connections if I don't have both UDP and TCP punched through my router's firewall on port 19132. I have spoken with others that need to do the same so I wonder if that issue is in play here.
I have configured my iptables for only allowing 19132/udp. So there should be no TCP traffic on that port. I'm running my Bedrock server without Traefik for a while now without any problems using the below configuration:
It also works fine just connecting to the DNS name and the port after it but I thought it would be cool to be able to direct any traffic to minecraft.<domain>.com to the correct server on UDP port 19132 without needing to specify the port or have it open on the firewall.
I reconfigured my Traefik to proxy both protocols TCP and UDP to the service and checked my firewall settings. Still no luck. I'm having the same problems as described above. Here's the configuration:
Hi there. Thanks for the follow-up. I think I got it working after following your lead here but I am not really understanding the benefit to it in practice as it is just routing anything bound for the minecraft server (defined by port 19132) to Traefik and then passing it on to the minecraft server. Traefik is just acting as a middleman but it's still required to hit any domain that points to the public IP and specify port 19132, right?
It's a cool feature but I am not sure if I am understanding any benefit to it in this particular case. I still need to have 19132 open on my firewall as far as I know.