http-party / node-http-proxy

A full-featured http proxy for node.js
https://github.com/http-party/node-http-proxy
Other
13.95k stars 1.98k forks source link

Is a real http proxy or bouncer only? #1398

Open yhojann-cl opened 5 years ago

yhojann-cl commented 5 years ago

Ok, a real http proxy is used for all tcp connections types (include http, ftp, ssh, imap, raw, etc), a http proxy use a transport protocol over http, by example, from android connect to wifi network and set the http proxy a specific ip address and port, all http connections use the http proxy but is not a normal GET or POST connection.

The http-proxy module works only using a specific hostname like as reverse proxy but no as http proxy.

What do I expect?, to be able to intercept all http connections and display them on a panel and use an ssl certificate to capture https traffic, but without the need to use iptables or a dns server to redirect all traffic to the proxy, just I want to configure my web browser or mobile to use http proxy this application and be able to capture web traffic as does the firefox traffic inspector for multiple domains (transparent mode).

codebling commented 4 years ago

This does not appear to be a bug or issue report. Have you read the documentation?

zacanger commented 4 years ago

As for working on only one hostname, that's incorrect. Check the example I posted in https://github.com/http-party/node-http-proxy/issues/1382.

However I think what you're thinking of is a debugging or pentesting proxy, which is an entirely different kind of thing. This module is a proxy library for use in server applications. It sounds like you're looking for something like Fiddler, Charles, Wireshark, or MITMproxy.

If your goal is to build something similar using a library like this, you might be in the wrong place, that's not really what this library is for.

yhojann-cl commented 4 years ago

The intention is that if the library claims to be an http proxy then it should behave as such. I read the documentation, did test scripts, and the library is not an http proxy, it is just a repeater. The library should be called "http repeater".

codebling commented 4 years ago

Are you the library name police? Nice to meet you, I am the useless issue police.

zacanger commented 4 years ago

@WHK102 Again, I think you may be misinterpreting the word "proxy." There's a difference between a debugging proxy, a reverse proxy, etc., -- all still proxies. I think your issue may be better raised on a library built for intercepting traffic rather than one built for proxying it.