Use two proxyes on the same LAN depending on destination add

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

Moderator: Qbik Staff

Use two proxyes on the same LAN depending on destination add

Postby xgorrea » Nov 18 04 12:12 am

Hello,

I have the following Scenario:

Customer that has two proxyes on the LAN: One to provide WWW access to the Internet(Wingate), and another to provide WWW access to a remote intranet(?). Both use the port 80.

Now, Depending on what URL they need to access, they change manually their browser setup to use the proper proxy... They do that each time they need to switch to Internet/intranet sites.

- I would like to know if It is possible to set up the Wingate Proxy (the Internet one) in order to redirect all the proxy requests to the intranet to the other proxy (the intranet one).

- In other words, I want the users to use the Wingate proxy for any request, and the Wingate Proxy serve the Internet requests and redirect the intranet requests to the other Proxy.

Any suggestion?

Thank you very much.

Xavi
xgorrea
 
Posts: 8
Joined: Feb 27 04 10:19 pm

Postby Pascal » Nov 18 04 9:17 am

If you are using a proxy setup, your easiest option might be to open the Internet Connection settings in your browser and to tick "Bypass proxy server for local addresses".

If you click "Advanced" there, you can also specify that certain adresses should be ignored.
Pascal

Qbik New Zealand
pascalv@qbik.com
http://www.qbik.com
Pascal
Qbik Staff
 
Posts: 2623
Joined: Sep 08 03 8:19 pm
Location: Auckland, New Zealand

Postby xgorrea » Nov 18 04 10:22 pm

Hi Pascal,

Thanks for the answer. The problem is that the addresses I need to access through the second Proxy are not "local addresses". The so-called "intranet Proxy" provides access to a sort of private web based sites/apps. within a defined IP addressement range (let's call it range A)...

I would like Wingate to redirect those proxy requests (within the mentioned range A) to another Proxy device... Do you think it is possible?

I know is a little bit strange scenario so I would not be surprised if you tell me that Wingate can not do so.

Thank you.

Best Regards,
xgorrea
 
Posts: 8
Joined: Feb 27 04 10:19 pm

Postby genie » Nov 18 04 10:36 pm

Well, there might be a solution. If you configure your clients' browsers to use automatic proxy configuration and edit Wingate .pak file, you can change proxy/direct connection types at will. For example:

If there are hosts (such as the main Web server) that belong to the local domain but are outside the firewall, and are only reachable through the proxy server, those exceptions can be handled using the localHostOrDomainIs() function:

function FindProxyForURL(url, host)
{
if ((isPlainHostName(host) ||
dnsDomainIs(host, ".netscape.com")) &&
!localHostOrDomainIs(host, "www.netscape.com") &&
!localHostOrDoaminIs(host, "merchant.netscape.com"))

return "DIRECT";
else
return "PROXY w3proxy.netscape.com:8080; DIRECT";
}
The above will use the proxy for everything else except local hosts in the netscape.com domain, with the further exception that hosts www.netscape.com and merchant.netscape.com will go through the proxy.
genie
Qbik Staff
 
Posts: 1788
Joined: Sep 30 03 10:29 am

Postby xgorrea » Nov 20 04 2:13 am

It is a good solution. I tested it and works perfectly !
Thank you very much.

Best Regards.
Xavier
xgorrea
 
Posts: 8
Joined: Feb 27 04 10:19 pm


Return to WinGate

Who is online

Users browsing this forum: No registered users and 9 guests