Recent Discussions
How can I setup records to properly make subdomains for Minecraft servers?
Unanswered
Brown bear posted this in #questions
4 messages
0 views
Brown bearOP
I have a minecraft server that runs on IP:port, a cloudflare domain, and a VPS I wish to use as a reverse proxy (Not only for Minecraft but for other game servers that use TCP protocol)
And I am lost on how to set this up. Do I make A record? A SRV record? How do I direct the subdomain traffic to the VPS and to the VPS to where the minecraft server is hosted at IP:Port? How do I make this so this can be scaled if I have more game servers?
And I am lost on how to set this up. Do I make A record? A SRV record? How do I direct the subdomain traffic to the VPS and to the VPS to where the minecraft server is hosted at IP:Port? How do I make this so this can be scaled if I have more game servers?
@Brown bear I have a minecraft server that runs on IP:port, a cloudflare domain, and a VPS I wish to use as a reverse proxy (Not only for Minecraft but for other game servers that use TCP protocol)
And I am lost on how to set this up. Do I make A record? A SRV record? How do I direct the subdomain traffic to the VPS and to the VPS to where the minecraft server is hosted at IP:Port? How do I make this so this can be scaled if I have more game servers?
And I am lost on how to set this up. Do I make A record? A SRV record? How do I direct the subdomain traffic to the VPS and to the VPS to where the minecraft server is hosted at IP:Port? How do I make this so this can be scaled if I have more game servers?
Asian black bear
1. Setup [Velocity](https://papermc.io/software/velocity) on your VPS. This is your proxy that will connect your VPS to your Minecraft server(s).
2. Follow [this guide](https://community.cloudflare.com/t/setting-up-minecraft-srv-records-on-cloudflare-connect-via-your-domain-name/636757) for setting up both an A record and a SRV record on your domain (pointing at your VPS).
3. From the MC machine, only allow traffic through your Minecraft server(s) port(s) if the remote IP is your VPS.
4. If your MC machine has a static public IP, you can configure Velocity to point at different IP:port combos on your MC machine.
4b. Otherwise I would recommend setting up a Wireguard VPN for traffic between your VPS and MC machine (you can use [Tailscale](https://tailscale.com) for simplicity)
-# Please note if you use a VPN like WG/Tailscale you’ll need to use those IPs in the Velocity config and your firewall rules (rather than the public-facing IPs).
2. Follow [this guide](https://community.cloudflare.com/t/setting-up-minecraft-srv-records-on-cloudflare-connect-via-your-domain-name/636757) for setting up both an A record and a SRV record on your domain (pointing at your VPS).
3. From the MC machine, only allow traffic through your Minecraft server(s) port(s) if the remote IP is your VPS.
4. If your MC machine has a static public IP, you can configure Velocity to point at different IP:port combos on your MC machine.
4b. Otherwise I would recommend setting up a Wireguard VPN for traffic between your VPS and MC machine (you can use [Tailscale](https://tailscale.com) for simplicity)
-# Please note if you use a VPN like WG/Tailscale you’ll need to use those IPs in the Velocity config and your firewall rules (rather than the public-facing IPs).
Asian black bear
And when scaling, you simply update the Velocity config to point at your new server(s) and you’re done
Brown bearOP
this seems to be the best way, ty
Loading...
Loading...