Zum Hauptinhalt springen
LIVE Intel Feed
Zero Trust Network Access 2026

Cloudflare Tunnel

Firewall Rules & Zero Trust Access

Sichere interne Services ohne Öffnen von Ports. WAF, DDoS Protection, Bot Management & Access Policies in einem.

cloudflaredZero TrustNo Open PortsWAF Integration

Warum Cloudflare Tunnel?

Cloudflare Tunnel (früher Argo Tunnel) ermöglicht sicheren Zugriff auf interne Services ohne VPN und ohne Öffnen von Firewall-Ports. Der Traffic wird über Cloudflares globales Netzwerk mit integriertem DDoS-Schutz und WAF geroutet.

Traditionell (Alt)

  • ✗VPN-Server öffentlich exponiert
  • ✗Ports 443/80 öffnen
  • ✗DDoS-Anfälligkeit
  • ✗Statische IP-Whitelists
  • ✗Komplexe VPN-Config

Cloudflare Tunnel (Modern)

  • ✓Keine öffentlichen Ports nötig
  • ✓Ausgehende Verbindung nur (HTTPS)
  • ✓Integrierter DDoS-Schutz
  • ✓Identity-basierter Zugriff
  • ✓Globale Edge-Performance

Cloudflare Tunnel Architektur

👤
User/Browser

SSO Auth

CF
Cloudflare Edge

WAF + DDoS + Access

🏢
Internal Service

No public IP

🔒 Outbound HTTPS (Port 443)cloudflared daemon🔐 TLS 1.3 + QUIC

cloudflared Installation

Docker Compose

services:
  cloudflared:
    image: cloudflare/cloudflared:latest
    command: tunnel --no-autoupdate run
    environment:
      - TUNNEL_TOKEN=$TUNNEL_TOKEN
    restart: unless-stopped
    
  # Your internal service
  web:
    image: nginx:alpine
    networks:
      - internal

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: cloudflared
spec:
  replicas: 2
  selector:
    matchLabels:
      app: cloudflared
  template:
    spec:
      containers:
      - name: cloudflared
        image: cloudflare/cloudflared:latest
        args:
        - tunnel
        - --no-autoupdate
        - run
        - --token
        - $(TUNNEL_TOKEN)
        env:
        - name: TUNNEL_TOKEN
          valueFrom:
            secretKeyRef:
              name: tunnel-token
              key: token

Token Management

Speichern Sie den Tunnel-Token sicher in Kubernetes Secrets, Docker Secrets oder Vault. Niemals in Git committen!

# Create tunnel token secret kubectl create secret generic tunnel-token \ --from-literal=token=$TUNNEL_TOKEN \ --namespace production

Cloudflare Access Policies

Cloudflare Access Policies definieren wer Zugriff auf Ihre Tunnels erhält. Integriert mit OIDC, SAML, OTP und Service Tokens.

Access Policy Configuration

# cloudflare-access.yaml
name: "Internal Dashboard"
include:
  # Require SSO authentication
  - idp:
      name: "Company Okta"
      
  # OR require Service Token (for APIs)
  - service_token:
      name: "api-service-token"
      
  # AND require specific email domains
  - email:
      domain: "company.com"
      
  # AND require country
  - geo:
      country: ["DE", "AT", "CH"]
      
exclude:
  # Block specific users
  - email:
      email: "ex-employee@company.com"
      
require:
  # Require MFA
  - authentication_method:
      methods: ["mfa"]

IdP Integration

  • • Okta / Azure AD / Google
  • • OneLogin / Ping Identity
  • • GitHub / GitLab OAuth
  • • Generic OIDC / SAML 2.0

Service Tokens

  • • API-to-API Authentication
  • • CI/CD Pipeline Access
  • • Service Mesh Integration
  • • mTLS Alternative

WAF & Security Integration

Security Layers

1
DDoS Protection

Layer 3/4/7 DDoS mitigation automatisch

2
Bot Management

AI-gestützte Bot-Erkennung

3
WAF Rules

OWASP Top 10, SQLi, XSS Protection

4
Access Policies

Identity-based access control

Custom WAF Rule for Tunnel

resource "cloudflare_ruleset" "tunnel_waf" {
  zone_id = var.zone_id
  name    = "Tunnel Security Rules"
  kind    = "zone"
  phase   = "http_request_firewall_custom"

  # Block known bad bots
  rules {
    action      = "block"
    expression  = "(cf.bot_management.score lt 10)"
    description = "Block low-reputation bots"
  }

  # Rate limiting per IP
  rules {
    action      = "block"
    expression  = "(http.request.uri.path contains "/api/" and cf.threat_score gt 50)"
    description = "Block high-risk IPs on API"
  }

  # Geo-blocking if needed
  rules {
    action      = "block"
    expression  = "(not ip.geoip.country in {"DE" "AT" "CH"})"
    description = "Block non-DACH countries"
  }
}

Best Practices 2026

High Availability

  • ✓Mindestens 2 cloudflared Replicas
  • ✓Multi-Region Deployment
  • ✓Health Checks konfigurieren
  • ✓Automatisches Failover

Security

  • ✓SSO für alle internen Services
  • ✓Service Tokens für APIs
  • ✓Audit Logging aktivieren
  • ✓Session timeouts konfigurieren

Bereit für Zero Trust?

Migrieren Sie Ihre internen Services zu Cloudflare Tunnel. Keine öffentlichen Ports mehr nötig.

Migration Assessment
🔒 Quantum-Resistant Mycelium Architecture
🛡️ Kuratierte Runbooks – EU-gehostet in Frankfurt
🌐 Zero Known Breaches – Powered by Living Intelligence
🏛️ DSGVO Art. 25 & 32 • SOC 2 & ISO 27001 in Vorbereitung
⚡ Real-Time Global Mycelium Network – 347 Bedrohungen in 60 Minuten
🧬 Trusted by SecOps Leaders worldwide