Switch to full style
Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems
Post a reply

http traffic redirection

Dec 13 13 3:26 am

Hi,

I need to differentiate two sort of http Traffic with the help of charts policy:

HTTP + HTTPS : Traffic must be redirect to a first gateway ( session.gateway=192.168.1.253) example : http://www.dell.fr

HTTP + Port : Traffic must be redirect to another gateway ( session.gateway=192.168.1.254) exemple : http://testdev.testname:3000

I don't know how to separate these sort of http adress ?

thank you

Re: http traffic redirection

Dec 13 13 8:06 pm

Hi

unless you are doing https inspection, the http and https requests will hit different events.

The http proxy requests will hit the event ProxyRequest, and the https requests (only one per connection, not for multiple requests on that connection) will hit ConnectRequest.

This is because web clients use what is called tunneling (CONNECT method) to tunnel through the proxy for https.

Also, make sure when using textual values, to use quotes. E.g.

Session.Gateway = "192.168.1.253"

Regards

Adrien
Post a reply