Cloudflare
1. Overview
Cloudflare Tunnel can publish the local web management interface of a PicoKVM or compatible PLC through a domain name without opening inbound ports on the local router. PicoKVM and the PLC include cloudflared; after a Tunnel Token is added to the device, the built-in service establishes an outbound connection to Cloudflare.
Example values used in this guide:
| Item | Example |
|---|---|
| Domain | <DOMAIN> |
| Public hostname | device.<DOMAIN> |
| Device-local service | http://127.0.0.1:80 |
Publish a management interface only for devices that you are authorized to manage. Enable access control before sharing the public hostname.
2. Prepare a Domain
Cloudflare Tunnel requires a domain that you control and can manage through Cloudflare DNS. You can use a free domain that supports custom nameservers, register a domain with Cloudflare Registrar, or buy one from NameSilo or another registrar.
If the domain is not registered with Cloudflare:
-
Log in to the Cloudflare dashboard.

-
Click Add a domain and enter
<DOMAIN>.
-
Follow the Cloudflare wizard to add DNS records.


-
Change the domain nameservers at the domain provider to the nameservers assigned by Cloudflare.



-
Wait until the domain status in Cloudflare becomes active.


3. Create a Cloudflare Tunnel
-
Open the Cloudflare dashboard and go to Networking -> Tunnels.

-
Click Create a tunnel. Enter a tunnel name, for example
remote-device.
-
On the connector setup page, select a Debian option to display the connector command. The device already includes
cloudflared, so you do not need to run this command manually.
-
Copy the string after
--tokenin the command, paste it into the Cloudflare Tunnel Token field on the PicoKVM or PLC, and start the built-incloudflaredservice.

-
After the connector starts, the tunnel should show an active connector in the Cloudflare dashboard.


4. Add a Public Hostname
-
Open the created tunnel and go to Routes.

-
Click Add route and select Published application.

-
Fill in the hostname:
Field Value Subdomain deviceDomain <DOMAIN>Type HTTPURL 127.0.0.1:80
-
Save the hostname.
After saving, Cloudflare creates the required proxied DNS record automatically. Access the target device's web management interface from:
https://device.<DOMAIN>
5. Verify Remote Access
-
On a device outside the target device's LAN, open:
https://device.<DOMAIN> -
Log in to the target device's web management interface.

If the page cannot be opened, check the following items:
- The built-in
cloudflaredservice is running on the PicoKVM or PLC, and the Tunnel Token is correct. - The tunnel connector is online in Cloudflare.
- The published application route uses
HTTPand points to127.0.0.1:80. - The device's local web management service is available on port
80. - The domain status in Cloudflare is active.