• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4327
  • Last Modified:

how to configure exceptions in squid Proxy server

Hi,

I am using squid Proxy server running RHEL OS.
 We have local applications running in our office . Manually i am configuring the  By pass Proxy exceptions in IE for local applications.
My requirement is i want to configure those bypass  exceptions in squid proxy server itself not on the client side IE.How to do that in squid?

Regards,
Krishgudd
0
krishgudd
Asked:
krishgudd
  • 3
  • 2
1 Solution
 
kuknoCommented:
You can't. The idea of the bypass exceptions in IE is to NOT send the requests for internal pages to the proxy, so trying to configure this on the proxy would make no sense, because then you'll have to send the requests to the proxy, to somehow "bypass" them there. Doesn't make sense, right?

But maybe I misinterpret your requirements. Can you please tell us what you are trying to achieve?

Regards
Kurt

0
 
krishguddAuthor Commented:
Actually when i am trying to open the local application it was going through proxy,for that reason i  put the exceptions in IE.I have so many client side machines, its very difficult for us to configure the exceptions in client side IE.so i want to configure those exceptions in squid proxy server.
0
 
kuknoCommented:
O.K., but do you see the problem? You do NOT want the requests go to the proxy, so you can't configure this on the proxy, otherwise the requests HAVE to go through the proxy, which you don't want.

The best solution for you would be to set this with a GPO on every client, or use a proxy PAC file on the clients.

GPO:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/ierk/appxa_d.mspx?mfr=true

0
 
krishguddAuthor Commented:
GPO  i cant do that.I have to do in squid proxy only.Is there any way
0
 
kuknoCommented:
No way to do that on squid, due to the problem I mentioned.

If you can't do it with GPO, do it with a proxy PAC script.

Example:

function FindProxyForURL(url, host) {
   // URL that match the pattern below, don't use a Proxy:
   if (shExpMatch(url,"*.local.domain/*"))                  {return "DIRECT";}
   if (shExpMatch(url,"application1/*"))                  {return "DIRECT";}
   if (shExpMatch(url,"application2/*"))                  {return "DIRECT";}

   return "PROXY squid.local.domain:3128";
}


Change "local.domain" and "application*" to whatever matches your configuration.
See here, how to use proxy pac scripts: http://en.wikipedia.org/wiki/Proxy_auto-config

Regards
Kurt
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now