I've just spent a few hours trying to use Cloudflare Tunnels to connect to my machine through SSH after reading this post. Unfortunately, I then found that SSH keys are not supported: https://github.com/cloudflare/cloudflared/issues/319 so I cannot disable Password authentication.
Exposing a web service with Cloudflare Tunnel
131–140 of 186 posts
Re: Exposing a web service with Cloudflare Tunnel
#132I know there's other ways to do this, but Tunnel made it extremely easy.
Re: Exposing a web service with Cloudflare Tunnel
#133Earlier quoted context omitted.
I understand that. That doesn't mean you don't have to worry about security. Most stacks would crumble under a relatively small L7 ddos that Cloudflare would not likely mitigate.
https://www.cloudflare.com/learning/ddos/glossary/web-applic...
Re: Exposing a web service with Cloudflare Tunnel
#134Earlier quoted context omitted.
"Walking around covered in body armor and allowing the military to drive me to work in a tank" is nice protection but it's also very restrictive. I don't think the argument against this is so much that Cloudflare doesn't provide nice features as that those features are entirely unneeded for 99.99% of people hosting from home. The downsides of heavy protection are vastly increased complexity and dependence on a non-'d…
Lmao your response made me chuckle. You're entirely right! Probably nothing bad will happen. Especially if you partition your network like I mentioned in my OP. I would get worried about somehow enabling access to defects in my router by opening some inbound ports. I realize that's a little paranoid...but recently I have been playing around with https://github.com/threat9/routersploit and routinely find defects in co…
Yeah but now you need to source the hardware for the rack, make sure it stays up and there's no hardware failures, etc, etc. Even simpler is to grab a Linode dedicated box which comes with v4 and v6 IPs and you get all the benefits for only $30 / mo instead.
Re: Exposing a web service with Cloudflare Tunnel
#135Earlier quoted context omitted.
I understand that. That doesn't mean you don't have to worry about security. Most stacks would crumble under a relatively small L7 ddos that Cloudflare would not likely mitigate.
https://www.cloudflare.com/learning/ddos/glossary/web-applic...
The WAF is $20/month and as far as I know you don't get it automatically for free by using Cloudflare Tunnel, though feel free to correct me. There was the case of them enabling mitigations for the log4j vulnerabilities for anyone on Cloudflare, but that was an exception.
Re: Exposing a web service with Cloudflare Tunnel
#136 ingress:
- hostname: myapp1.examples.com
service: http://localhost:8080
- hostname: myapp2.example.com
service: http://localhost:8081
- service: http_status:404
ingress:
- service: http://localhost:80
Then later you explicitly route to a subdomain for the simple case (the second one above): $ cloudflared tunnel route dns mytunnel test.example.com
Now you're on a subdomain, how would I handle this routing case for the more complex case from above?Re: Exposing a web service with Cloudflare Tunnel
#137Re: Exposing a web service with Cloudflare Tunnel
#138Earlier quoted context omitted.
Similar, I use a cheap AWS Lightsail VPS $3.50 (Lightsail has DDOS protection)-> Wireguard -> Apache Reverse Proxy mod -> my local services.
Why not having clients and local services meet on a Wireguard concentrator on VPs? Thus no need for Apache reverse proxy. Problem is, 3.5$/month has only 500MB RAM which is very little to run Apache + other services.
Re: Exposing a web service with Cloudflare Tunnel
#139Earlier quoted context omitted.
Cloudflare already has the bandwidth. I suppose tunnel doesn't cost much ( or even anything) compared to the rest since they pay for the size of the pipe. When someone uses the tunnel, they never have to go outside of cloudflare. Since the traffic ( i suspect) would stay very local. Perhaps it could be even cheaper in the end for them.
Good point, but they do still have to pay development costs for Cloudflare Tunnel.
I wasn't talking about the development/maintenance.
Re: Exposing a web service with Cloudflare Tunnel
#140Earlier quoted context omitted.
sigh, thanks for the response. I think I may move onto RaspberryPi instead. Boringproxy looks like an interesting tool.
Honestly for technical users the RPi should be preferred IMO. The reason I want to get Android working is to bring self-hosting to the masses. Turning an old Android phone into a personal cloud by installing a couple apps and putting it in a corner would be huge. Android is such a pain we might have to settle for shipping custom SD cards for RPi's though.
That's not a bad idea. It does seem like things have to be absolutely app driven. I wonder how backups would work with that? Multiple phones?