Minecraft server and reverse proxy
https://lemmy.world/post/21490911
=> More informations about this toot | More toots from Dust0741@lemmy.world
You need a public DNS record that points to your public IP of your server.
=> More informations about this toot | More toots from just_another_person@lemmy.world
it’d be nice to be able to use a domain instead.
If your looking to access it outside your LAN, you’re gonna want to open up the correct ports on your router’s firewall.
=> More informations about this toot | More toots from zelifcam@lemmy.world
No I’m not.
I have tailscale setup for external access. (I have dns records already in my domain provider pointing to a tailscale ip, so a device on my tailnet can access my domain. ie an authorized tailscale device can access nginx.example.com)
I want to know what I have to do to get minecraft.example.com to resolve interenally.
=> More informations about this toot | More toots from Dust0741@lemmy.world
tailscale.com/kb/1054/dns
=> More informations about this toot | More toots from crunchymunchytoast@lemmy.world
I have to admit, I’m a bit confused.
I have dns records already in my domain provider pointing to a tailscale ip
I want to know what I have to do to get minecraft.example.com to resolve interenally.
Since your domain resolves to an internal private Tailscale IP and your question is how to access using the domain, locally…. I feel like there’s an error in your architecture here. Wouldn’t any device that is on your Tailscale private network already have access using the domain? If by “resolve internally” you mean hosts on your LAN, not connected to Tailscale scale? How would that be possible if it resolves to a Tailscale IP. If you have control of your DNS on your LAN, you could simply add an override and point it to the LAN address of the Minecraft server.
=> More informations about this toot | More toots from zelifcam@lemmy.world
I have Nginx Proxy Manager setup for my domain
NPM only has options for http and https, so is this even possible using NPM?
Think about it. Does it really matter what the backend ( 192.168.50.16:25540 ) is running? If you’re putting it behind the reverse proxy ( NGINX Proxy Manger). If you choose to use HTTPS, the proxy manager should host the SSL certificate.
=> More informations about this toot | More toots from zelifcam@lemmy.world
NPM won’t help you here. As you said, it’s only for http. You will have to set up port forwarding in your router. But as far as I recall Minecraft changes its port with every game. So you could either change that in your router every time you start another game.
But it would be better (for security as well) to set up a VPN. Many routers actually have that built in.
That is, if your goal is to have your Minecraft server reachable through the internet.
For DNS you will need a Dynamic DNS service to let the name always point to your public IP. For this as well many routers have built-in functionality. Maybe even a preferred service.
=> More informations about this toot | More toots from bjoern_tantau@swg-empire.de
With Crafty you can bind a specific port.
I use tailscale for public access, and have set it up so tailscale users can access the domain.
I guess what I’m asking for is NPM but for tcp.
=> More informations about this toot | More toots from Dust0741@lemmy.world
Regular nginx does this just fine docs.nginx.com/nginx/…/tcp-udp-load-balancer/
Keep in mind that you can’t route tcp by hostname, because hostname is not a property of tcp. It only knows IP addresses. Host routing requires a protocol like HTTP.
=> More informations about this toot | More toots from catloaf@lemm.ee
Port forwarding is what you’re looking for. You almost certainly can configure that in your router. You tell it what the port in the outside should be and to what IP and port in your LAN it should go.
=> More informations about this toot | More toots from bjoern_tantau@swg-empire.de
community.cloudflare.com/t/…/636757
=> More informations about this toot | More toots from roofuskit@lemmy.world
If you were using the default port 25565, you could simply have a DNS A record pointing to the server IP. But since that is not the case, you have to additionally set up a SRV record in your DNS. NOIP describes what this is and how to set it up on their service here, but it will of course differ for your DNS provider.
This still requires that the Minecraft server port is directly accessible from the other clients, but it sounds like that is not the problem
=> More informations about this toot | More toots from edb_fyr@lemmy.world
Technically they could use a Nginx stream to forward traffic but I wouldn’t recommend that as it adds latency and overhead.
=> More informations about this toot | More toots from possiblylinux127@lemmy.zip
i have used gate for my internal and external, works very well and i do exactly what you are asking and separate different versions and modpacks by name
github.com/minekube/gate
=> More informations about this toot | More toots from jake_jake_jake_@lemmy.world
Does this work for Bedrock as well as Java edition? I can get Java to work with infrared proxy but I’m not sure how to do Bedrock
=> More informations about this toot | More toots from Semi_Hemi_Demigod@lemmy.world
it looks like there is a bedrock branch, but i personally have no experience with bedrock.
see this issue for more details: github.com/minekube/gate/issues/11
=> More informations about this toot | More toots from jake_jake_jake_@lemmy.world
No
Reverse proxies like you are talking about are only for http connections. For more information look at the OSI model. (The proxy is operating on the application layer while Minecraft is on the transport layer)
Instead use DNS to resolve the domain name to an IP. Better yet, just set a static IP.
=> More informations about this toot | More toots from possiblylinux127@lemmy.zip
There are minecraft reverse proxies, so, yes, a http proxy will not work, but the general idea is still viable and doable with very little effort.
Set up a few domains all resolving to one IP. Run itzg/minecraft-router and use that to proxy the traffic to different servers based on the domain.
Also, they don’t even need a reverse proxy, but just resolve the domain name to the IP (in the simple case of one domain name per I0). That can be accomplished by hosting their own dns server, editing the hosts file or just pointing a public dns record at the private ip address, which will only work in their network,l.
=> More informations about this toot | More toots from redxef@feddit.org
Thanks for the help. This is enough to get me started
=> More informations about this toot | More toots from Dust0741@lemmy.world This content has been proxied by September (3851b).Proxy Information
text/gemini