Cloudflared Tunnel Wrapper
cfdtunnel is a wrapper for cloudflared access
tunnel, designed to access multiple tunnels without having to worry about your cloudflared
process.
Installation
The easiest way to install it is using Homebrew:
brew tap mmiranda/apps
brew install cfdtunnel
If you prefer, you also can download the latest binary on the release section
How does it work?
Basically this tool takes care of the cloudflared
process initialization for you.
- Runs cloudflared based on you config ini file
- Runs the command you want
- Kills the cloudflared proccess at the end
You can use any command on top of cfdtunnel:
Kubectl
cfdtunnel --profile my-profile1 kubectl get namespaces
K9S
cfdtunnel --profile my-profile1 k9s
Configuration
Configuration is really simple, you just need to create your profiles in ~/.cfdtunnel/config
Example:
[my-profile1]
host = https://kubernetes.foo.bar.com
[my-profile2]
host = sql.foo.bar.com
port = 1234
Defining a port is not required, if you don't specify, cfdtunnel will launch the tunnel using the most random port 5555
Contributing
Contributions, issues, and feature requests are welcome!
Give a