Skip to content

Conversation

Asutorufa
Copy link

@Asutorufa Asutorufa commented Jul 11, 2023

close #350 #1025

Signed-off-by: Asutorufa <16442314+Asutorufa@users.noreply.github.com>
@ddvnguyen
Copy link

Recently I want to replace ngrok by cloudflared tunnel.
When come to fullstack development, we want to track https requests we get content in requests and also able to replay requests.
All of that things are supported out of the box by ngrok. So when using cloudflared tunnel I plan to use mitmproxy together so it can do more things with all http requerst coming to the dev servers.
I have been setup a lot of ways still can not make it work. I also try to use "proxychains" but seem like some how the request did not go though the proxy server.
Thank to this change request now it works.

For someone who interesting in how I config Cloudflare tunnel and mitmproxy:
Current my solution is to build a Ubuntu docker image that install both mitmproxy and Cloudflare.

For mitmproxy I use command: mitmweb --listen-port 9099 --listen-host 0.0.0.0 --web-port 9091 --web-host 0.0.0.0
this command allows access web ui in my windows host machine also mitmproxy will call directly to host we don't need to expso to many port as we config more dev servers later.

For Cloudflare tunnel if you want to tunnel a localhost in host machine like me, you need to replace "localhost" with "host.docker.internal". just make sure set proxy in the container.

Hope that this merge request will be accepted soon.

@joliveirinha
Copy link
Contributor

This is something that we don't actually want to support within cloudflared.
Furthermore, http2 transport only has a subset of features that cloudflared allows and the official transport to use should be QUIC, which wouldn't work for the SOCKS proxy.

@SeaX
Copy link

SeaX commented Mar 11, 2024

Hi @joliveirinha, is there anyway to use Cloudfare Tunnels in a corporate environment when in the vast majority of cases there is a need of proxies ?

For establishing the tunnel, we'd need the following
Cloudflared ------> HTTP Proxy ------> Cloudflare

@dong-dong6
Copy link

dong-dong6 commented Oct 12, 2024

你好@joliveirinha,在绝大多数情况下需要代理的情况下,有没有办法在企业环境中使用 Cloudfare Tunnels?

为了建立隧道,我们需要以下 Cloudflared ------> HTTP 代理 ------> Cloudflare

I really need this function to improve the server link performance in mainland China..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cloudflared tunnel via proxy
5 participants