Using node-http-proxy as a transparent/translucent proxy #437

Closed
fostahgix opened this Issue Jun 26, 2013 · 1 comment

Comments

Projects
None yet
3 participants

I have a question on how I can get node-http-proxy to handle requests sent to external IP addresses. An example:

I have node-http-proxy listening on port 1.1.1.1:80
I have all of my traffic being forwarded untouched to 1.1.1.1:80
However, since the packet was untouched. The proxy is ignoring the request due slashdot.org resolving as 123.123.123 as its destination IP.

I also tried to DNAT requests to my proxy, however, I would loose the source IP of the client which would break my internal logic of the proxy.

Is there a guide on how to setup a transparent proxy with node-http-proxy?

Thanks!

ruquay commented Jul 1, 2013

If you post some code, it might be clearer what you are trying to do. Are the IP addresses your are using examples, or are they actual values? Because for me slashdot.org doesn't resolve to 123.123.123 (which isn't even a full IP address) or anything like it.

@indexzero indexzero closed this Dec 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment