• 1 Post
  • 53 Comments
Joined 1 month ago
cake
Cake day: June 22nd, 2025

help-circle




  • I have to say that I might be the one here to say something different, but I still use Cloudflare tunnels because I have been with them for so long. I know lots of people hate them, for various reasons, but in this simple example, cloudflare will have many people who have used it, and it really just kinda works. So for getting started, it probably will be easier and quicker… A free account is good enough, will make the services available easily, and is secure enough for most people within reason. Once you are up and running you can change it moving forward.

    Forgot to add - Cloudflare also acts as a CDN meaning a slow internet connection isn’t as bad as it could be. This is another reason I like it - it’s free and does help out if you have a slower connection. It isn’t a fix all solution, you still need to ensure that you are protected as well as you can be, have certs, use https, lock the server down as much as you can. Use fail2ban or something similar to stop brute force attacks… do as much as you can to help yourself. But it is easy to use to get you on your way to self hosting, which for me is a win.




  • If you want the easy way consider Cloudflare and a tunnel. You can set it up in various ways but one way is to have a public hostname which can be a sub domain and then point it at your server. You’d have to have the DNS/domain at least use Cloudflare nameservers though for that. This is really easy to do - and you can move on to other ways later if you wish. Tailscale is another way, but Cloudflare will also act as a very good CDN/cache without much tweaking on your part. I have used Cloudflare for ever so I do still use tunnels - never seen the need to change yet. In fact my lemmy instance is cached/proxied through a cloudflare tunnel

    https://lemmy.relayeasy.com/








  • It should, and yes I used to think that. I’m in the UK and some routers just fail to work properly with higher port numbers, especially cheap routers from cheaper providers. Once you start getting above 8000 the traffic is limited thus me saying try a lower port number. Plus yunohost doesn’t really ask for a port number as you should add a domain first, then install the application (it uses docker btw) on that domain, then cloudflare to the domain. So the port number isn’t required. I’m guessing, but can’t be sure, that this is the real issue. yunohost adds a self signed cert and configures the firewall etc. so if you don’t do it right using a cloudflare tunnel it just doesn’t work. I’m guessing the OP hasn’t done it like this, and then it will never work - believe me I’ve tried. yunohost also adds fail2ban, firewall inside yunohost and various other ways to protect what is served




  • It depends… the OP is also using yunohost which can and does have some issues with higher port numbers, plus you also have to factor in if he is self hosting as I suspect, some routers also won’t properly forward higher port numbers either. Difficult to say but lowering the port number is one thing to try. Too many variables to really drill down and say what is happening



  • Cloudflare and yunohost user here. Need to install the cloudflared service and make sure it runs and the tunnel connects in the zero trust dashboard. Will say healthy when it does. Try a lower port number, something in the 2000-3000 range is good to test. Then in the correct tunnel once it is showing healthy you need to add a public hostname (for ease of use). Say lemmy.mydomain.com, use https then localhost:portnumber/ Then in additional settings you have to turn on notlsverify else it won’t work. That should get it working. To be honest I’ve not bothered setting up various ports other than the defaults so you shouldn’t need to set up the port so just try https and localhost and that should do the trick - this could be where you are going wrong as yunohost doesn’t explicity need the port setting in most common configurations. Then in the yunohost admin area you can go into applications and open the app and it should work. Any probs give us a shout