Server Topic
   >  Introduction to Proxying
   >  Server Side Installation
   >  Server Side Configuration
   >  Configuring Proxy Clients
   >  Troubleshooting Proxy Problems

 

Configuring the Client to use the HTTP Proxy

Configuring Proxy Clients

Once the Squid server has been configured, we can proceed to configure the client to access the internet via the HTTP Proxy.

Before we change anything, though, we need to first test that the Squid server can actually be reached from the client. On each of your clients, open up a web browser and type in the following URL:

http://<Squid Server IP>:<Squid Listen Port>

For example, if the IP address of your Squid server is 192.168.1.1 - and Squid is listening on port 1234 - you would type the URL:

http://192.168.1.1:1234

The output should be something like the following:

ERROR
The requested URL could not be retrieved

Invalid Request error was encountered while trying to process the request:

    GET / HTTP/1.1
    Host: 192.168.1.1:1234
    User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    Accept-Language: en-gb,en;q=0.5
    Accept-Encoding: gzip,deflate
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
    Keep-Alive: 115
    Connection: keep-alive


Some possible problems are:

    *      Missing or unknown request method.
    *      Missing URL.
    *      Missing HTTP Identifier (HTTP/1.0).
    *      Request is too large.
    *      Content-Length missing for POST or PUT requests.
    *      Illegal character in hostname; underscores are not allowed.
    *      HTTP/1.1 "Expect:" feature is being asked from an HTTP/1.0 software.

Your cache administrator is webmaster.

Generated Mon, 21 Feb 2011 18:31:10 GMT by homeServer (squid/2.7.STABLE9)

Do not worry about the error (-that is expected): all we are doing here is checking that Squid is listening on the correct port and passing back it's output to the client browser.

If this looks OK, then you can manually configure your web browser to use the proxy as follows:

  • Firefox:

    Select EditPreferencesAdvanced Settings

    Set the following fields:

    • Manual proxy configuration: selected
    • HTTP Proxy: enter the server IP or alias (-note: without the http:// part) - e.g. "192.168.1.1"
    • Port: set to the port Squid is listening on, e.g. "1234"
    • Use this proxy for all protocols: checked
    • No proxy for: enter the string "localhost, 127.0.0.1"

    Click on the "OK" button to save your changes

    Firefox Proxy Settings

  • Chromium:

    Select (Wrench)PreferencesUnder the Hood Change Proxy Settings

    Set the following fields:

    • Manual proxy configuration: selected
    • Use same proxy for all protocols: checked
    • HTTP Proxy: enter the server IP or alias (-note: without the http:// part) - e.g. "192.168.1.1"
    • Port: set to the port Squid is listening on, e.g. "1234"

    Click on the "Close" button to save your changes

    Chromium Proxy Settings

To verify that the Proxy is working, simply try to access a few pages on the internet (-and use the CTRL+Refresh Icon to ensure the page is not being cached by the client browser).


References and Further Reading:


HomeSite IndexDesktop GuideServer GuideHints and TipsHardware CornerVideo SectionContact Us

 sitelock verified Firefox Download Button