how to configure exceptions in squid Proxy server

Posted on 2008-11-12
Last Modified: 2013-12-16

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?

Question by:krishgudd
    LVL 10

    Expert Comment

    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?



    Author Comment

    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 i want to configure those exceptions in squid proxy server.
    LVL 10

    Expert Comment

    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.



    Author Comment

    GPO  i cant do that.I have to do in squid proxy only.Is there any way
    LVL 10

    Accepted Solution

    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.


    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:


    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now