You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that this example shows how to use an upstream proxy.
I'm wondering how to use multiple upstream proxies. It seems like I could have middleProxy.Tr.Proxy return different proxy URLs based on some round robin strategy.
But, I'm wondering what to do with the ConnectDial field. It seems like it supports a single upstream proxy at a time.
I'm also wondering if it is possible to remove an upstream proxy.
My use case is that I have an auto-scaling group of spot instances that are all running tinyproxy. New instances could potentially be added at anytime & old instances could be removed since spot instances can be arbitrarily terminated.
Update: Nevermind, it seems like ConnectDial is a function that just needs to return a network connection, so I can use round robin there to connect to the different proxy servers. But, I am wondering how tr.Proxy interacts with ConnectDial. I am also wondering whether the OnRequest().HandleConnect method is relevant to making a middle proxy.
The text was updated successfully, but these errors were encountered:
You can use middleProxy.Tr.Proxy, in your case, to do what you said. Return a *url.URL to the upstream Proxy. I have a similar use case and I'm doing this to great effect. I use a round robin strategy too.
I also have a question about the CONNECT, though - Can you use MITM and ConnectDial at the same time? If you don't use ConnectDial it will use the middleProxy to negotiate TLS with the server. However, I want to use the upstream proxies, as you do. My question is, can you still use MITM to manipulate the packets on the middleProxy, before it gets to the upstream proxy, without using the middleproxy as the one that negotiates TLS?
I see that this example shows how to use an upstream proxy.
I'm wondering how to use multiple upstream proxies. It seems like I could have
middleProxy.Tr.Proxy
return different proxy URLs based on some round robin strategy.But, I'm wondering what to do with the
ConnectDial
field. It seems like it supports a single upstream proxy at a time.I'm also wondering if it is possible to remove an upstream proxy.
My use case is that I have an auto-scaling group of spot instances that are all running tinyproxy. New instances could potentially be added at anytime & old instances could be removed since spot instances can be arbitrarily terminated.
Update: Nevermind, it seems like
ConnectDial
is a function that just needs to return a network connection, so I can use round robin there to connect to the different proxy servers. But, I am wondering howtr.Proxy
interacts withConnectDial
. I am also wondering whether theOnRequest().HandleConnect
method is relevant to making a middle proxy.The text was updated successfully, but these errors were encountered: