{"id":13548681,"url":"https://github.com/mmiranda/cfdtunnel","last_synced_at":"2026-01-14T19:38:10.891Z","repository":{"id":38321177,"uuid":"431866962","full_name":"mmiranda/cfdtunnel","owner":"mmiranda","description":"A wrapper for cloudflared that manages multi clients for you","archived":false,"fork":false,"pushed_at":"2023-05-19T03:59:43.000Z","size":180,"stargazers_count":52,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T21:37:48.436Z","etag":null,"topics":["cloudflared","cloudlfare","clouflare-access","go","golang","proxy","tunnel"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmiranda.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-25T14:05:00.000Z","updated_at":"2024-12-09T17:36:42.000Z","dependencies_parsed_at":"2024-01-16T17:58:04.957Z","dependency_job_id":"ce1a5fbe-782f-466a-8fc2-75651dfe394e","html_url":"https://github.com/mmiranda/cfdtunnel","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mmiranda/cfdtunnel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmiranda%2Fcfdtunnel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmiranda%2Fcfdtunnel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmiranda%2Fcfdtunnel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmiranda%2Fcfdtunnel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmiranda","download_url":"https://codeload.github.com/mmiranda/cfdtunnel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmiranda%2Fcfdtunnel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloudflared","cloudlfare","clouflare-access","go","golang","proxy","tunnel"],"created_at":"2024-08-01T12:01:13.187Z","updated_at":"2026-01-14T19:38:10.874Z","avatar_url":"https://github.com/mmiranda.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"[![made-with-Go](https://img.shields.io/badge/Made%20with-Go-1f425f.svg)](http://golang.org)\n[![codecov](https://codecov.io/gh/mmiranda/cfdtunnel/branch/main/graph/badge.svg?token=HAUMRJQ4OX)](https://codecov.io/gh/mmiranda/cfdtunnel)\n[![https://goreportcard.com/report/github.com/mmiranda/cfdtunnel](https://goreportcard.com/badge/github.com/mmiranda/cfdtunnel)](https://goreportcard.com/report/github.com/mmiranda/cfdtunnel)\n![[Test](https://github.com/mmiranda/cfdtunnel/actions/workflows/test-coverage.yml)](https://github.com/mmiranda/cfdtunnel/actions/workflows/test-coverage.yml/badge.svg)\n\n\n# Cloudflared Tunnel Wrapper\n**cfdtunnel** is a wrapper for [cloudflared](https://github.com/cloudflare/cloudflared) `access` tunnel, designed to access multiple tunnels without having to worry about your `cloudflared` process.\n\n### Why?\nTo manage the **cloudflared** process is tedious and error prone when using multiple tunnels, leading to port conflicts, clients left running for no reason and so on.\n\nThis tool automates the following process: \n```bash\ncloudflared access tcp --hostname foo.bar.com --url 127.0.0.1:1234\ncloudflared access tcp --hostname foo.bar2.com --url 127.0.0.1:5678\ncloudflared access tcp --hostname foo.bar3.com --url 127.0.0.1:xxxx\n```\n\n## Installation\n\nThe easiest way to install it is using Homebrew:\n\n```bash\nbrew tap mmiranda/apps\nbrew install cfdtunnel\n```\n\nIf you prefer, you also can download the latest binary on the [release section](https://github.com/mmiranda/cfdtunnel/releases)\n\n## How does it work?\n\nBasically this tool takes care of the `cloudflared` process initialization for you.\n\n1. Runs cloudflared based on you config ini file\n2. Runs the command you want\n3. Kills the cloudflared proccess at the end\n\n\nYou can use any command on top of *cfdtunnel*:\n\n### Kubectl\n```bash\ncfdtunnel --profile my-profile1 -- kubectl get namespaces\n```\n### K9S\n```bash\ncfdtunnel --profile my-profile1 -- k9s\n```\n\n### Configuration\n\nConfiguration is really simple, you just need to create your profiles in `~/.cfdtunnel/config`\n\nExample:\n```ini\n[my-profile1]\nhost = https://kubernetes.foo.bar.com\nport = 1234\nenv = HTTPS_PROXY=socks5://127.0.0.1:1234\n# env = OTHER=value\n\n[my-profile2]\nhost = sql.foo.bar.com\n# port is not necessary\n```\n\nDefining a port is not required, if you don't specify, *cfdtunnel* will launch the tunnel using the ~~most random~~ port **5555**\n\n#### Environment Variables\n\nIn case your application demands specific environment variables, *cfdtunnel* will make sure it is created prior to its execution. You just need to define it on config file as well.\n\n## Contributing\nContributions, issues, and feature requests are welcome!\n\nGive a ⭐️ if you like this project!\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmiranda%2Fcfdtunnel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmiranda%2Fcfdtunnel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmiranda%2Fcfdtunnel/lists"}