need a reverse proxy solution
so im wanting to host a mincraft server on my home lab. ive hosted a bedrock server for a small group but it wasnt professional, i gave them my public ip. im more smart now lol and i bought a super flash epic cool domain name that ive setup with cloudflare.
the problem is that people could dns lookup my domain name and find my public ip.
solution i got a google cloud vps to use as a proxy and i need help figuring on what proxy should use which leads me to another problem.
i was orginaly going to do another bedrock server but i learned that there are proxy that allow bedrock player to play on java server. this is awesome. however i couldnt get nginx, wireguard or haproxy to work with udp ( bedrock protocal type ) java would be easy because its tcp but i need to prioritize bedrock players. here is an example of what i want to happen.
Java players > my domain name > VPS > Proxy > my duckdns > my home ip on port 55056 > minecraft server
bedrock players > my domain name > VPS > Proxy > my duckdns > my home ip on port 55055 > proxy to convert bedrock to java > minecraft server
11 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by purplewazard#0
if you’re on a vps, forward the udp port and point it to one of your subdomains. what information exactly are you looking for?
home lab backend servers -> proxy on vps-> forwarded Java and bedrock ports -> your domain
I’m asking what software do I use to proxy the traffic
why do you need software to proxy the traffic when you already have a vps to proxy traffic
where else are you trying to send traffic?
nginx wireguard etc are used to create virtual tunnels to connect an application to the outside world without forwarding the port directly
just forward the udp port that geyser or your bedrock server is using and you’re good to go
as an alternative to all of this, you can also run all your proxies on your home network, use a udp tunnel software to forward your bedrock instance and use the same/similar software for your Java instance. for added security, run the servers on an isolated subnet
If you just need to forward traffic from your vps to your home ip, then you can just setup iptables on the vps to do dstnat
Any other solution (aside from a bungee/velocity based solution) will cause bedrock players to not have their real ip
Or you can run bungeecord/velocity with the geyser plugin on the vps
this shouldn’t really effect anything except ipbans
Thx for the suggestion
I just needed something to get the traffic from the vps to my homelab and then from my homelab to the vps. I apologize if this was not clear. Still very new to networking.
Some one on Reddit suggested velocity
This is the easiest solution to setup, and you will get the real ip for bedrock players with this solution as well
I second this and the suggestion above to just run everything on your homelab with reverse proxies in front, with the downside that you won’t get real ips depending on the software you use
Thx!
!answered
post closed!
The post/thread has been closed!
Requested by purplewazard#0