Set up a Minecraft server using a VPN.
Set up a Minecraft server using a VPN.
I have my Pritunl server in a Client-to-Site arrangement. It seems the server can reach devices through the VPN, which suggests the VPS should be able to connect to the MC server. You’ll need a way to route your requests from the VPS’s public IP to the MC VPN address. Right now I’m unsure how to set that up. Essentially, you’d want the VPS to act like a router so anyone not on the VPN can still access the MC server over the network.
Thank you for your support—I’ll manage to finish this before it gets too late.
You likely don’t require a VPN if you’re following the steps correctly. On the VPS you should be able to forward ports from its public IP to your home network. Anyone trying to connect will only see the VPS’s IP address. I’m not entirely confident this is completely secure, but it’s similar to how a VPN works. Either way, enabling port forwarding on the VPS or using NAT to mask packets should resolve the issue.
Sure, I can help with that. Just let me know what you need the documentation for, and I’ll get it ready!
For a Linux-based VPS setup, the configuration typically looks like this: adjust net.ipv4.ip_forward to allow traffic, set up forwarding rules with iptables to redirect incoming and outgoing connections through the server. Ensure your router forwards ports 25565 and 25564 accordingly. If you had a Minecraft server, you’d verify it works locally before testing online. The main challenge remains making the destination accessible from outside your network.