Skip to main content

A Cloudflare Zero Trust tunnel exposed a Grok Bot server and carried Minecraft traffic

XXawe02026-11-16

LimitsSource read in fullRead first

Overview

After subscribing to SuperGrok, the author felt the bot’s sandbox network isolation wasted the machine. The author used a Cloudflare tunnel to reach hosted websites, Docker, remote SSH and a Minecraft server from the public internet.

Workflow

Trigger: An isolated machine has resources to spare. After subscribing to SuperGrok, the author used grok bot and found its hardware reasonable: an 8-core Xeon, 16GB RAM and 126GB disk in a Debian 13 container in the eastern US, nearly 2GB down and 500M up, probably shared. The sandbox network limited the bot to schedules and automation. To use the machine fully, the author researched crossing the sandbox network boundary and reached self-hosted services from outside. The services were cloudflare for the tunnel and digitalplat for a free domain. Cloudflare needs a domain. Add and configure DNS for an existing domain, or register a free one through DigitalPlat for 12 months with free renewal.

  1. By hand: Go to Zero Trust. Sign in to cloudflare and select Zero Trust in the left menu.
  2. By hand: Create a tunnel. In Zero Trust, select Networking, Connectors, then Create a tunnel at upper right.
  3. By hand: Name and save the tunnel. Select the first option, enter a name and save.
  4. Bot: Install the connector. After saving, select the OS, copy the command and follow the install flow. The source doesn’t specify who ran it on Grok Bot. See step 8 for Muse.
  5. By hand: Establish the connection. After installing, connect and let the connector list refresh to show the machine, then click Next.
  6. By hand: Set subdomain and service. If no domain is bound yet, finish domain setup and skip this for now.
  7. By hand: Add an application route. In the connector, add the route that exposes the service through your public subdomain.
  8. Bot: Do the same for Muse. Ask the bot to install cloudflare, then send the authentication bash command for it to run and connect. Add a browser SSH application in cloudflare to authenticate and connect to the Muse machine’s SSH. Install everything in /home/hatch/workspace, which survives a reset. The source gives only a hardware screenshot for Muse and calls it adequate.

Check: Deploy multiplayer Minecraft. The author also deployed a game. A cloudflare-bound domain does not support TCP directly. Use local Cloudflare traffic forwarding. On Windows, download cloudflared.exe and run the command to forward http://play.mcgame.dpdns.org to local port 25565. Connect from the game to 127.0.0.1 (author's claim, not reproduced).

cloudflared.exe access tcp --hostname play.mcgame.dpdns.org --url 127.0.0.1:25565

Key points and results

  • The tunnel crosses sandbox network isolation and makes the machine usable as a public server. The author reports testing website hosting, Docker, remote SSH and multiplayer Minecraft successfully (author's claim, not reproduced).
  • The author’s short workflow. Register with cloudflare, attach your domain, deploy cloudflare on the grok bot machine and map the local port to a public name. DigitalPlat offers a free domain valid for a year if needed.
  • Machines reset and sleep. The bot resets or suspends its machine when inactive. Install software under /workspace/, which retains data after reset or update. For sleep, the author suggests a scheduled task and sending a Grok Bot message to keep it active.
  • The author links server region to the proxy endpoint. The source says 「gemini」 selects the closest, fastest machine based on the endpoint. The author suggests a system-wide US proxy when creating a US machine, or the matching region for another location.
  • Cloudflare terms restrict some uses. The author says CDN delivery of video or large files is a paid use and that subscription-node services may lead to a domain ban and 403 errors. A deployed subscription node shared at https://linux.do/t/topic/2999207 carries that risk.
  • TCP apps need local forwarding. A cloudflare-bound domain does not support TCP directly. Use cloudflared local forwarding and connect to 127.0.0.1.

Contributions from others

Added by others (not the author)

  • @Michael_liyang suggests specific ports instead of wildcard hostnames, 15-minute Service Token expiry and Access logging for all requests. Give the agent only the tunnel command, with no editable firewall rules or privileged API key (https://x.com/Michael_liyang/status/2122332133423481317).

Source

Platform
X
Author
awe0
Published
Categories
Limits

What this evidence label means

Source read in full

We read the source (post, article or transcript). That only means the original was read. It does not mean this site reproduced the author's results.

Read the editorial and evidence policy

Other cases in this scenario

This unofficial community project is independent of xAI. xAI has neither approved nor endorsed it. No sign-up. The methods and figures come from the original authors.