klzgrad / naiveproxy

Make a fortune quietly
BSD 3-Clause "New" or "Revised" License
6.39k stars 874 forks source link

Feature request: proxy chain #654

Open Zephor5 opened 2 weeks ago

Zephor5 commented 2 weeks ago

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

klzgrad commented 2 weeks ago

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.

Zephor5 commented 2 weeks ago

@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 1 week ago

Try to use the ProxyChains.

Zephor5 commented 1 week ago

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

5l2 commented 1 week ago

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

ArcCal commented 1 week ago

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

klzgrad commented 1 week ago

Chrome supports proxy chains.

The request is to expose it in naiveproxy.