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.
Was this page helpful?