InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Follow publication

Member-only story

Cloudflare Tunnel for Secure HTTP Routing

techwithpatil
InfoSec Write-ups
Published in
3 min readMar 21, 2025

Cloudflare tunnel setup

Introduction

In today’s cloud-driven world, securely exposing internal services to the internet without worrying about network configuration complexities is crucial. Cloudflare Tunnel provides a secure way to route HTTP traffic from your origin servers to the internet without opening ports or configuring firewalls manually. This article explores how Cloudflare Tunnel works and how you can set it up for secure HTTP routing.

📖 Not a Medium member? No worries! Here’s the free link: Cloudflare Tunnel

What is Cloudflare Tunnel?

Cloudflare Tunnel, previously known as Argo Tunnel, acts as a secure gateway between your server and Cloudflare’s network. It allows you to expose web applications without making your origin server publicly accessible. Instead of exposing your infrastructure to the internet, Cloudflare Tunnel securely routes requests through Cloudflare’s global network, ensuring protection against DDoS attacks and unauthorized access.

Benefits of Cloudflare Tunnel:

  • No Open Ports: Eliminates the need for exposing ports to the internet.
  • Automatic HTTPS: Cloudflare provides SSL encryption by default.
  • DDoS Protection: Cloudflare’s security stack protects against attacks.
  • Access Control: Integrates with Cloudflare Access for authentication.
  • Reduces Latency: Routes traffic through Cloudflare’s global network for faster access.

Setting Up Cloudflare Tunnel for HTTP Routing

Follow these steps to set up Cloudflare Tunnel and securely route HTTP traffic to your internal services.

Login to Cloudflare zero trust dashboard Cloudflare One

Navigate to Networks > Tunnels

Click on Create a tunnel

Create cloudflare Tunnel
Create cloudflare tunnel

Select Cloudflared connector

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in InfoSec Write-ups

A collection of write-ups from the best hackers in the world on topics ranging from bug bounties and CTFs to vulnhub machines, hardware challenges and real life encounters. Subscribe to our weekly newsletter for the coolest infosec updates: https://weekly.infosecwriteups.com/

Written by techwithpatil

DevOps & Site Reliability Interview | AWS, Python, Docker, Kubernetes, CICD, Java, Ansible, Terraform Automation https://beacons.ai/techwithpatil

No responses yet

Write a response