# MikroTik and Cloudflare Zero Trust Part 2: Using WinBox Without Exposing Port 8291

DevFeed: [MikroTik and Cloudflare Zero Trust Part 2: Using WinBox Without Exposing Port 8291](<https://devfeed.tech/articles/mikrotik-and-cloudflare-zero-trust-part-2-using-winbox-without-exposing-port-8291-100444.md>)

Original publisher: [Read original article](<https://blog.j2sw.com/netops/mikrotik-winbox-cloudflare-zero-trust/>)

Author: j2sw

Published: 2026-10-26T03:54:29Z

Content type: tutorial

Language: en

Sources: [Justin Wilson (j2sw)](<https://devfeed.tech/sources/justin-wilson-j2sw.md>)

Topics: [Zero Trust](<https://devfeed.tech/topics/zero-trust.md>), [zero trust network access](<https://devfeed.tech/topics/zero-trust-network-access.md>), [MikroTik](<https://devfeed.tech/topics/mikrotik.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [Cloudflare One](<https://devfeed.tech/topics/cloudflare-one.md>), [IP routing](<https://devfeed.tech/topics/ip-routing.md>)

Tags: [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-access](<https://devfeed.tech/tags/cloudflare-access.md>), [cloudflare-gateway](<https://devfeed.tech/tags/cloudflare-gateway.md>), [cloudflare-one](<https://devfeed.tech/tags/cloudflare-one.md>), [cloudflare-tunnel](<https://devfeed.tech/tags/cloudflare-tunnel.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [internet-architecture](<https://devfeed.tech/tags/internet-architecture.md>), [management](<https://devfeed.tech/tags/management.md>), [mikrotik](<https://devfeed.tech/tags/mikrotik.md>), [network-operations](<https://devfeed.tech/tags/network-operations.md>), [network-security](<https://devfeed.tech/tags/network-security.md>), [router](<https://devfeed.tech/tags/router.md>), [router-management](<https://devfeed.tech/tags/router-management.md>), [warp](<https://devfeed.tech/tags/warp.md>), [winbox](<https://devfeed.tech/tags/winbox.md>), [zero-trust](<https://devfeed.tech/tags/zero-trust.md>)

## AI overview

WinBox can reach a MikroTik through Cloudflare Zero Trust without exposing TCP/8291 publicly by routing the management address or subnet through an existing Cloudflare Tunnel. Add a tunnel CIDR route, enroll the Cloudflare One Client in a traffic-capable mode, and ensure Split Tunnels include the management range. Use Gateway network policies to allow TCP/8291 for an authorized administrator group and explicitly block other enrolled users; restrict the router's WinBox service or firewall to the connector's local address. RouterOS authentication remains required, and WinBox Neighbor Discovery does not cross the IP tunnel, so connect by IP. Troubleshooting guidance checks laptop routing, connector reachability, router service and firewall, policy logs, and tunnel health. The setup depends on the connector and Internet path; multiple connectors can cover a host failure, while an independent recovery path is still recommended.

## Source excerpt

In Part 1, we covered how to use Cloudflare Tunnel to protect MikroTik management access. We configured a connector inside the management network and used Cloudflare Access to authenticate users before allowing them to reach WebFig. The router no longer needed a public-facing management port. Most of us MikroTik administrators spend more time in WinBox ... Read more The post MikroTik and Cloudflare Zero Trust Part 2: Using WinBox Without Exposing Port 8291 appeared first on Justin Wilson (j2sw).