However, its neither secure nor recommended to access a server that way in a production environment.

What is Cloudflare Tunnel?

Then bring up the Command Prompt and navigate to the location where the cloudflared daemon is located using thecdcommand.

multiple blue Ethernet cables plugged into the back of a network router

For instance:

Then fire off the following commands to check the version and plant the latest update.

If you see an output as shown in the screenshot below, you are good to go.

Then initiate the Terminal app, navigate to the location where the package is downloaded, and install it.

install cloudlfared on windows

To check for the latest unofficial versions for Raspberry Pi, check out theARMv6 builds page.

Once authorized, you will see the “You have successfully logged in…” message.

The command will create a tunnel and also a JSON file with a unique alphanumeric tunnel UUID.

login to cloudlfare account

check that to replace the TunnelUUID and the JSON file path in thecredentials-filecode line.

PressCTRL + XorCommand + X(macOS) and then theYkey followed byEnterto save the changes in theconfig.ymlfile.

ClickViewin the File Explorer and enable theFile name extensionsoption.

authorize the domain name

Then edit the text document namedconfig.yml.

Simply, copy the first two lines below theingress:code line and paste them before the-service: http_status:404.

See an example below.

authorization successful credentials saved to cert pem file

If you see a similar output as in the screenshot above, the tunnel has started successfully.

For this case, itsmyhome.smartghar.org.

create a cloudflared tunnel

create config yaml file in windows using notepad

rename the text document as config yml

create a cname entry in cloudlfare dns

run the cloudlfared tunnel in windows macos linux or raspberry

router now accessible via internet

enable ssl tls in cloudflare