klzgrad/naiveproxy

Feature request: proxy chain

Zephor5 opened this issue · 10 comments

I want to use naiveproxy in an environment that I have to use a normal http proxy to connect to my caddy server, how can I get this done?

my pc -> naiveproxy -> normal http proxy (out of my control) -> my caddy server -> net

It is in the realm of the possible, but you have to prove why your use request is necessary without easy workaround and is general enough for not just your own use case.

@klzgrad There are companies which have internal working network and prevent staff from connecting internet by default, and provide unified proxy to reach the internet. That's the case. It's relatively niche.
I want to try it myself, but have difficulty in reading the source code because I am not so familiar with c++, if you don't have time to do this recently, can you give me some hints about the source code file path where I can try to sovle this.

5l2 commented

Try to use the ProxyChains.

@5l2 I don't think ProxyChains will handle the case.

5l2 commented

@Zephor5
Why? ProxyChains can be used to proxy connections made by naiveproxy through the HTTP PROXY GATEWAY.
Did I misunderstand the use case you described?

小火箭的Proxy Pass功能不就可以达到这个目的?

Chrome supports proxy chains.

The request is to expose it in naiveproxy.

5l2 commented

@Zephor5, can you test for this?

It worked, thx