Reverse Proxy on home server issues

I have a decently powerful hardware just lying around my house, which I decided to put to good use. I used to run a Minecraft server by renting a VPS monthly, but it's basically a wallet drain. Since my internet lives behind the CGNAT of an uncooperative ISP (which offers VERY GOOD service btw, although no IPv6), I had to proxy via a VPS for my server to reach the internet. What I did on the VPS: - Installed and updated Ubuntu 24.04 LTS, along with nginx, and ssh. - Enabled UFW and allowed the necessary ports, including 25565. - Enabled GatewayPorts, and TCPForwarding in the SSHD config - Opened the aforementioned ports' traffic in the VPS console (Azure) What I did on my Computer (Windows): - Allowed the required ports in Windows Defender - Launched the minecraft server on 25565 - Launched a web server on 9001 for test purposes - Reverse proxied from my computer "ssh -vv -i .\secrets\key.pem -R 25565:localhost:25565 -R 25859:localhost:25859 -R 9001:localhost:9001 name@ip" Somehow, this is where I got stuck, the web server successfully works but minecraft doesn't. It did work at one point, but when I restarted the VPS, it stopped once more. They are unreachable by Minecraft but minecraft knows to ping it, it doesn't immediately fail (so more of a time out). Accessing the MC server via 0.0.0.0 works, but using the IP of the VPS doesn't (except for that one time). I am completely stuck. I don't want to switch my home server to Linux as I also use it for Adobe Media Encoder.
5 Replies
Admincraft Meta
Admincraft Meta6mo ago
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 nothrottle#0
ProGamingDk
ProGamingDk6mo ago
be very careful azure is expensive as fuck traffic wise its like 90 usd a tb of traffic
Eternal
Eternal6mo ago
:pain:
NoThrottle
NoThrottleOP6mo ago
Not an issue right now, I'm using a student developer account with whatever freebies it has. Although thanks for the heads up. I made a new VM, following the steps I laid out above, and still ended up with the same result. What could I have possibly done for it to work just one time FIXED - What I did that worked: Instead of using NGINX and SSH to broadcast my server to the internet, I used rathole. https://github.com/rapiz1/rathole This served as an all in one solution for my problem. I will still do research on how to do this with NGINX and SSH. I won't close this yet until I am able to get simple voice chat and player analytics to work. Rathole was able to reverse proxy everything, marking as solved !solved
Admincraft Meta
Admincraft Meta6mo ago
post closed!
The post/thread has been closed!
Requested by nothrottle#0

Did you find this page helpful?