Skip to content

Connect on-premise with Relay Agent

The Mindflow Relay Agent connects Studio flows to services on your private network. It runs Cloudflare Tunnel (cloudflared) inside your infrastructure, opens outbound tunnels, and exposes only the internal services you map. Mindflow provisions the tunnel token and service mapping; you deploy and run the agent. There is no self-service Relay UI in Studio today.

  • Flows must call APIs that are only reachable inside your datacenter or VPC.
  • You cannot (or should not) expose those APIs on the public internet.
  • Prefer direct public SaaS integrations when the service already has a public API Mindflow can reach.

Before you begin, plan a host or container with at least 4 GB RAM and 4 CPU cores, outbound access for the tunnel ports below, and a contact path to Mindflow for the tunnel token and service mapping.

The agent initiates outbound tunnels to Cloudflare. Mindflow reaches your internal tools through HTTPS endpoints protected with TLS and mutual TLS (mTLS). Only your Mindflow environment can use those endpoints. You choose which internal services to map.

Architecture diagram of Mindflow, Cloudflare tunnels, and Relay Agents reaching internal tools

Open outbound traffic so cloudflared can reach Cloudflare. Default tunnel protocol is QUIC; you can force HTTP/2 with --protocol http2.

PortProtocolPurposeRequired
7844tcp/udp (http2/quic)Tunnel to CloudflareYes
443tcp (https)Cloudflare management / updatesOptional

If your firewall filters by SNI, allow hostnames such as region1.v2.argotunnel.com, region2.v2.argotunnel.com, cftunnel.com, and h2.cftunnel.com. Otherwise allow 198.41.200.0/24 and 198.41.192.0/24. See Cloudflare Tunnel with firewall.

The agent must also reach the internal hosts you will map (Jira, Splunk, and similar).

Download cloudflared from the Cloudflare Zero Trust downloads page, or use the cloudflare/cloudflared container image. Mindflow gives you a per-tunnel token—do not invent or reuse a sample token from docs.

  1. Get the token. Ask Mindflow for the tunnel token for your environment.

  2. Install as a service (Linux example). Replace the token with the value Mindflow provided:

    Install cloudflared service
    sudo cloudflared service install YOUR_TUNNEL_TOKEN

    To force HTTP/2 instead of QUIC, add tunnel run parameters per Cloudflare remote management.

  3. Or run with Docker. Example for a local test:

    Docker tunnel run
    docker run cloudflare/cloudflared:latest tunnel \
    --no-autoupdate \
    --protocol http2 \
    run \
    --token YOUR_TUNNEL_TOKEN

    Compose example with two replicas:

    docker-compose.yml
    services:
    cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel --no-autoupdate --protocol http2 run --token YOUR_TUNNEL_TOKEN
    deploy:
    mode: replicated
    replicas: 2
    restart_policy:
    condition: any

Service mapping creates Mindflow-managed URLs that only the platform can call. You supply internal URLs; Mindflow registers the public-facing names (for example https://jira-your-tenant.mindflow.io) and wires them to the tunnel.

Example mapping table to share with Mindflow:

Service nameInternal URL
Jirahttps://jira-qa.mydomain.com
CrowdStrikehttps://cs-instance-01.internal.com:8484

After the agent is connected and mapping is live, use those Mindflow URLs (or the mapped service) in HTTP / integration steps and run a test call.

A SOC needs CrowdStrike from a private management network. Ops deploys two cloudflared replicas with the Mindflow token, shares https://cs-instance-01.internal.com:8484 for mapping, then a flow calls the Mindflow-facing CrowdStrike URL without opening inbound firewall ports.

  • Connectivity uses a Cloudflare-issued tunnel token; restrict who can read it.
  • Traffic between Mindflow and the agent is encrypted; sources are limited to Mindflow operating regions (for example AWS Europe Central and Europe West).
  • For high availability, run multiple agent replicas (Cloudflare supports many connectors per tunnel). The agent keeps redundant long-lived connections to Cloudflare data centers.

Diagram of redundant Relay Agent connections through Cloudflare

Related: Send raw HTTP requests, Call native integrations.

For help with tokens or mapping, contact contact@mindflow.com.