Skip to main content
Granular IT logo - AI & IoT Engineering in Kenya
Sunlit East African server rack with tidy fiber and Cat6A patch panels beside an engineer's laptop in natural daylight
Field Note 43 • Zero-Trust Networking • Cloudflare Tunnels & TailscaleKenyan SMEs, Multi-Branch Operations & Internal Business APIs • Nairobi, Mombasa & East Africa • 5 min architecture note

Stop Exposing Public IPs for Internal APIs: How We Pair Cloudflare Tunnels With Tailscale Zero Trust

Why poking open ports in an office firewall invites automated bot scans within minutes—and how modern apps evolve beyond public API endpoints using outbound tunnels and Zero Trust meshes.

Hasheem Maloo — Founder & Principal Solutions Architect at Granular IT
Hasheem MalooFounder & Principal Architect
Coding since 2002 • Granular IT (Gigiri Lab & Kilimani HQ) •
Sunlit East African server rack with tidy fiber and Cat6A patch panels beside an engineer's laptop in natural daylight
Verified Field & Architecture Outcomes
Zero open inbound ports on office or data-center firewalls while keeping authorized apps reachable
Origin public IP completely hidden behind edge rate-limiting and bot filtering via Cloudflare Tunnels
Internal mobile and branch apps communicate over private Tailscale mesh addresses invisible to the public internet
Hasheem Maloo50s Founder Dispatch
Audio + Captions
01 / The Old Port-Forwarding Habit

Expose a Public IP Today and Scanners Knock Within Five Minutes

Across hundreds of growing businesses, we still see the same dangerous shortcut: an internal accounting server, dispatch backend, or branch database needs to talk to a mobile app—so someone assigns a static public IP and opens port 443 or 8080 on the office firewall.

Within minutes of an IP going public, automated internet scanners probe every open port around the clock—testing default logins, SSL mismatches, and unpatched web frameworks.

02 / Two Practical Layers We Deploy

Layer 1 Hides Your Origin IP; Layer 2 Removes Public Endpoints Altogether

Securing internal APIs doesn't require expensive enterprise boxes or months of downtime. We roll it out in two clean steps:

Step 01 • Outbound-Only Edge

Cloudflare Tunnels Hide the Public IP

A lightweight connector inside your server dials outward to Cloudflare. You close every inbound firewall port, hide your real ISP IP completely, and block bad traffic at the edge.

Step 02 • True Zero Trust (ZTNA)

Tailscale Private Mesh for Internal Apps

Ask why an internal warehouse or finance API has a public web address at all. With Tailscale, authorized staff phones and branch PCs connect over a private mesh that doesn't exist on the public web.

Step 03 • Evolving App Design

Identity-First Requests Instead of Open URLs

Apps verify device and user identity at the network layer first—eliminating shared public URLs that anyone on earth can probe.

03 / Operational Result

Cleaner Certificates, Faster Branch Links & Quiet Firewalls

Once inbound ports close and internal apps move onto Zero Trust routing, firewall logs go quiet overnight, certificate headaches disappear, and branch teams work securely from anywhere without clunky legacy VPN drops.

Field Note Architecture Spec
Edge Protection
Outbound Cloudflare Tunnels (Zero Open Inbound Ports)
Internal App Access
Tailscale WireGuard ZTNA Private Mesh
Architecture Review
Book a Zero-Trust API & Firewall Audit (/contact)
Cloudflare Tunnels (cloudflared)Tailscale WireGuard ZTNAZero Inbound Firewall PortsPrivate Mesh API Routing
Hasheem Maloo

Want This Engineered at Your Site?

Direct to Hasheem & Our Nairobi Team

Speak directly with our engineering team in Gigiri & Kilimani to scope a practical deployment.

Discuss With Our EngineersNext: Field Note 44: Loose Developer Keys, Zero-Knowledge Vaults & Key Recycling