# cftunnel

> cftunnel is a self-hosted, open-source tunneling CLI for free HTTP/WS via Cloudflare and full TCP/UDP via self-hosted frp relay.

- **Category:** Network
- **Licence:** MIT
- **Latest version:** v0.4.4
- **Open source:** oss
- **Languages:** Go
- **Platforms:** Docker Compose, Linux, Windows, Build from Source
- **Tags:** CLI, WebSocket, Cross Platform, Homelab, Game Server, Udp, Cloudflare Tunnel, Devtools, Remote Access, Tunnel, Ssh, Tcp, Reverse Proxy, Nat Traversal, Port Forwarding, Golang, Self Hosted, Cloudflare, Ai Coding, Tcp tunnel, Udp tunnel, Frp, Ai Friendly, Intranet Penetration, Frpc, Frps

## Description

cftunnel is a cross-platform command-line utility that makes local services reachable from the internet. It bundles two separate tunneling engines: Cloud mode relies on Cloudflare Tunnel to give you free HTTPS and WebSocket tunnels with automatic TLS and a global CDN, needing only a free Cloudflare account. Relay mode uses frp to provide self-hosted TCP and UDP tunnels, which work well for gaming servers, databases, SSH access, and remote desktop. Both engines can operate together. The program handles configuration, fetches engine binaries on its own, registers as a system service (systemd, launchd, or Windows Service), and includes one-command quick tunnels, custom domain support, password protection, QR-code sharing, scenario presets, a portable mode, and a desktop GUI companion. It is written in Go and released under the MIT license.

## Links

- [Homepage](https://github.com/qingchencloud/cftunnel)
- [Website](https://cftunnel.qt.cool)
- [GitHub Repository](https://github.com/qingchencloud/cftunnel)
- [Releases](https://github.com/qingchencloud/cftunnel/releases)
- [Telegram Community](https://t.me/+-53et5QXFh0xYzhk)
- [Issues](https://github.com/qingchencloud/cftunnel/issues)

---
Source: https://selfhost.directory/project/cftunnel