Cloudflare Docker#

Cloudflare Tunnel client (formerly Argo Tunnel)

Docker#

docker run --name cloudflared --rm --net host visibilityspots/cloudflared

custom upstream DNS service#

$ docker run --name cloudflared --rm --net host -e UPSTREAM1=https://dns.google/dns-query visibilityspots/cloudflared:latest

custom port#

$ docker run --name cloudflared --rm --net host -e PORT=5053 visibilityspots/cloudflared:latest

dualstack ipv4/ipv6#

$ docker run --name cloudflared --rm --net host -e ADDRESS=:: visibilityspots/cloudflared:latest

Test#

dig +short @127.0.0.1 -p 5054 visibilityspots.org

How it works#

https://developers.cloudflare.com/cloudflare-one/static/documentation/connections/connect-apps/handshake.jpg

References#