How I host all my docker services securely.
Cloudflare Tunnel is a service that lets you connect your web servers or apps to Cloudflare in a safe way. It does this by making a secret tunnel between your server and Cloudflare’s closest data center, using a small program called cloudflared. This way, you can keep your server IP addresses hidden, stop direct attacks, and use Cloudflare’s security and speed features. You can use Cloudflare Tunnel for different things, such as keeping web servers safe from direct attacks, making sure only the right people can access your internal apps, or connecting SSH servers, remote desktops, and other ways of communicating to Cloudflare. You can also run more than one cloudflared program within the same tunnel to share traffic among different servers.
Cloudflare Tunnel works by making a safe and secret connection between your web server or app and Cloudflare’s closest data center, using a small program called cloudflared. This program runs on your server and makes connections that only go out to Cloudflare, without opening any ports that can receive incoming traffic. This way, your server or app is not visible to the public internet and can only be reached through Cloudflare’s network. To use Cloudflare Tunnel, you need to make a tunnel thing in your Cloudflare account and give it a DNS name. Then, you need to install and run the cloudflared program on your server or device and set it up to connect to the tunnel thing. Once the connection is made, you can reach your server or app through the DNS name that goes to Cloudflare’s network.
Some of the benefits of using Cloudflare Tunnel are:
To use the docker container for Cloudflare Tunnel on Unraid, you can do these steps:
/mnt/user/appdata/cloudflared/
.cert.pem
will be downloaded to your folder. This file has your details for connecting to Cloudflare.