by adrien » Jan 06 18 10:33 am
Hi
it is possible to configure WinGate to use an upstream proxy or not for a request, based on the request itself, so you should be able to do this.
unless you have an enterprise license, you won't have access to the Connection Control policy item, but you can still change the connection in script, using an expression evaluator. Multiple statements can be evaluated in an expression evaluator separated by commas.
To set to not use the currently defined upstream proxy (which would be set on the proxy server config) you would use the statement
Session.ConnectUseProxy = false
and uncheck the option "Resolve expression into true / false result"
Since a client can use a connection to the proxy to make requests for multiple different sites, some of which may be whitelisted and some not, you may wish to also set back to true in the case where it doesn't match the whitelist.
Regards
Adrien