MC casaOS / Cloudflared / Trouble getting server setup for others to join
Trying to hide my local IP from a MC server I'm running on a Casa OS (Debian based) installation; I have a custom domain and its connected to Cloudflare; I'd preferably want to use a Cloudflare tunnel as this user was able to successfully use (https://www.answeroverflow.com/m/1168172723713888276) ; however their thread is a little hard to follow; can anyone help?
Cloudflare with websites - Cloudflare Developers
I want to setup Cloudflare with a website, run on localhost, There's 2, One's CasaOS and the second one's Crafty Controller, When i tried setting it up it just gave me the error 502
19 Replies
bump
(by MC i mean minecraft)
?tunnel-tcp
Cloudflare Tunnels use Cloudflare's proxy, which only supports proxying HTTP Traffic. If you want to use non-http applications over your tunnel, Cloudflare has a few other options:
For a few specific protocols such as SSH, RDP, and SMB, Cloudflare has guides for them here:
https://developers.cloudflare.com/cloudflare-one/applications/non-http/
For Arbitrary TCP like Minecraft, MySQL, and any other tcp application, Cloudflare has a guide here: https://developers.cloudflare.com/cloudflare-one/applications/non-http/arbitrary-tcp/
For Arbitrary UDP like Minecraft Bedrock, SMTP, and any other udp application, you will need to use Private Networking with WARP: https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/connect-private-networks/
Please note for all of these except SSH and VNC which can be browser-rendered, you will either need to use cloudflared (Cloudflare's tunnel daemon) on the client machine running in the background or Private Networking with WARP, and have WARP installed on the client machine logged into your Zero Trust Team.
Each user would need to install cloudflared in their client
isnt mc https?
It is TCP
not bad
i think
each user meaning people that join the mc server?
Correct.
nevermind im conflating TLS with TCP
You could use something like play.gg which is similar but wouldn't require user sign in
Do you know of a way to emulate what play.gg does but on my own server so that I don't have to pay for it. I also have my own domain.
I have a mini pc lab with debian / casaOS on it.
I mean to have a tunnel created you need something that is publicly facing. You could spin up a VPS and create a VPN between it and your server
Would users have to be connected to my vpn to join?
No. The VPN would just be between both your servers
I have a tunnel I created on cloudflared. I'm not sure how to implement a VPS/VPN through debian do you know of any tutorials you could forward?
Also thank you for the assistance :)
@Cyb3r-Jok3
Something like https://www.digitalocean.com/community/tutorials/how-to-set-up-wireguard-on-debian-11
Where the public server is the server and your local server is the client
How To Set Up WireGuard on Debian 11 | DigitalOcean
In this tutorial, you will set up WireGuard on a Debian 11 server, and then configure another machine to connect to it as a peer using both IPv4 and IPv6 con…
I'll look into that. Thank you man