cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)
https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide
Apache License 2.0
8.44k stars 735 forks source link

Listen on unix socket #439

Open fcoelho opened 2 years ago

fcoelho commented 2 years ago

This is a feature request to make cloudflared have the ability to listen on unix sockets as well as host:port combinations. For example:

cloudflared access tcp --hostname my-tunnel-hostname.example.com --listener unix:///path/to/my.socket

Reason for this is to make it easier to identify services locally. I have a few TCP tunnels set up that I connect to occasionally, sometimes multiple at the same time. And keeping track of which services are running on which ports is not always exciting. It'd be easier if I could make cloudflared listen on a unix socket directly so it's easier to identify the service by path name

guilhermef commented 2 years ago

This would make it easier for us also.

Weltolk commented 1 year ago

This would make it easier for us also.

comunidadio commented 1 month ago

Would be nice to have. For the slight performance improvement but even more so for the security (simpler permission model and no port open)