http traffic redirection

Use this forum to post questions relating to WinGate, feature requests, technical or configuration problems

Moderator: Qbik Staff

http traffic redirection

Postby avb » 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
avb
 
Posts: 27
Joined: Aug 27 13 10:50 pm

Re: http traffic redirection

Postby adrien » 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
adrien
Qbik Staff
 
Posts: 5448
Joined: Sep 03 03 2:54 pm
Location: Auckland


Return to WinGate

Who is online

Users browsing this forum: Bing [Bot] and 1 guest