Skip to content
ArticleIntermediate

Access and secure a MySQL database using Cloudflare Tunnel and network policies

Give users secure access to a private MySQL database through Cloudflare Tunnel, private network routes and Gateway network policies.

Last updated
Oct 12, 2026
Read the original

Cloudflare Tunnel’s private networks let users reach non-browser TCP/UDP applications such as databases. Zero-trust network policies decide who can connect, and users reach the database through the Cloudflare One Client.

What you’ll learn

  • Create a Cloudflare Tunnel
  • Add private network routes
  • Create a Gateway network policy
  • Optionally add a Gateway resolver policy

Cloudflare products used

Cloudflare Tunnel, Gateway, Cloudflare One.

Follow the full, step-by-step tutorial in Cloudflare’s documentation.

Keep learning