mirror of
https://github.com/snail007/goproxy.git
synced 2026-04-27 00:15:51 +03:00
[GH-ISSUE #305] External proxy support? #222
Labels
No labels
TODO
bug
duplicate
enhancement
good first issue
help wanted
helpful
invalid
need-confirm
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/goproxy#222
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reyaz006 on GitHub (Aug 5, 2019).
Original GitHub issue: https://github.com/snail007/goproxy/issues/305
I have access to external HTTP/HTTPS proxy. This is a usual standalone proxy, which has nothing to do with goproxy. It looks like
https://proxy-server-999.com:12345I want to use goproxy to connect to it and open a local proxy on a port 54321. So, when I put
127.0.0.1:54321in browser or other applications, it will connect to the internet throughhttps://proxy-server-999.com:12345, using goproxy.Is this possible?
I've tried these:
proxy http -t tcp -p "0.0.0.0:54321" -T tcp -P "proxy-server-999.com:123453"proxy http -t tls -p "0.0.0.0:54321" -T tcp -P "proxy-server-999.com:123453" -C proxy.crt -K proxy.keyproxy http -t tls -p "0.0.0.0:54321" -T tls -P "proxy-server-999.com:123453" -C proxy.crt -K proxy.keyBut nothing worked. I'd like a simple example for the usage case I've described.
Thanks in advance.
@snail007 commented on GitHub (Aug 6, 2019):
try
proxy http -t tcp -p "0.0.0.0:54321" -T tls -P "proxy-server-999.com:123453" --parent-tls-single, using the local is http://127.0.0.1:54321@reyaz006 commented on GitHub (Aug 6, 2019):
I've tried this and it doesn't work, from what I see. After setting
http://127.0.0.1:54321as a browser HTTP proxy like that, when I visit IP detection services - I see my own IP address instead of the IP ofproxy-server-999.com.@snail007 commented on GitHub (Aug 6, 2019):
proxy http -t tcp -p "0.0.0.0:54321" -T tls -P "proxy-server-999.com:123453" --parent-tls-single
--always@snail007 commented on GitHub (Aug 6, 2019):
your upstream is really
https proxy?@reyaz006 commented on GitHub (Aug 6, 2019):
Now that you mention it, I'm not sure. When I set it up into SimpleProxy extension in browser, set it as HTTPS, it works. If I change it to HTTP, it stops working.
At the same time, if I set it through Windows control panel, it doesn't work at all.
Here is the error I see now after adding
--always:@snail007 commented on GitHub (Aug 6, 2019):
try curl -x http://upstreamIP:port https://www.google.com to check if the upstream is a
http proxy@reyaz006 commented on GitHub (Aug 6, 2019):
Well, it doesn't seems to work for me with curl.
I've also tried following a guide about getting ROOT certificate and appending it in
curl-ca-bundle.crtbut it appears that curl ignorescurl-ca-bundle.crtcompletely and I didn't find a way to force it to use it. I've tried latest curl build for Windows from https://curl.haxx.se/windows/@reyaz006 commented on GitHub (Aug 6, 2019):
Oh wait I now see that you are suggesting to test my proxy as http:// with curl. Here is the result:
So I think it's not an HTTP proxy, but an HTTPS proxy.