Workers VPC - Reach Cloudflare WAN destinations from Workers VPC
Key Points
- Use network_id: cf1:network in VPC bindings
- Single binding reaches Mesh, Tunnel, and WAN on‑ramps
- Ensure return routes for Cloudflare source IPs
Summary
You can now bind Workers to Cloudflare's VPC network using network_id: "cf1:network". A single VPC Network binding lets your Worker reach private destinations across Cloudflare Mesh nodes, subnet/hostname routes announced via Cloudflare Tunnel or Mesh, and destinations connected through Cloudflare WAN on-ramps (GRE, IPsec, CNI).
Key Points
- Configure a VPC Network binding in wrangler: e.g. JSONC
"vpc_networks": [{ "binding": "PRIVATE_NETWORK", "network_id": "cf1:network", "remote": true }]or TOML[[vpc_networks]] binding = "PRIVATE_NETWORK" network_id = "cf1:network" remote = true. - At runtime, route requests via the binding:
await env.PRIVATE_NETWORK.fetch("http://10.50.0.100:8080/api"). - For WAN on-ramps (GRE, IPsec, CNI) ensure your network routes the Cloudflare source IP range back through the on-ramp so reply traffic returns; without this return path, stateful flows will fail.
- Refer to the VPC Networks documentation for additional configuration options and onboarding guidance.