koding / tunnel

Tunnel proxy package in Go
BSD 3-Clause "New" or "Revised" License
322 stars 71 forks source link

Using as a transparent proxy #49

Open rafaelescrich opened 1 year ago

rafaelescrich commented 1 year ago

I'm trying to use this library as a transparent proxy that connects to a proxy in another server but keep receiving a 502 bad request. The connection arrives at the server but it is not routed to the identifier because it gets the identifier from the host.

I`m using curl for testing purposes just like this:

curl -v https://google.com -x identifier.server:port

The response is:

curl: (56) Received HTTP code 502 from proxy after CONNECT