Results 1 to 6 of 6

Thread: install proxy server squid on ubuntu server (squid.conf)

  1. #1
    Join Date
    Feb 2009
    Posts
    6

    install proxy server squid on ubuntu server (squid.conf)

    hello everyone

    i want to install proxy server squid on ubuntu server i have install it but now i have to config the squid.conf film
    Is there any easy way to config the squid.conf file
    i have web server(apache) on other server

    but i dont know how to config squid.conf file en this file is too lang
    can anyone HElp me PLZ

  2. #2
    Dr. V Guest

    re: install proxy server squid on ubuntu server (squid.conf)

    Squid is a proxy http server that speeds up getting pages from the internet by keeping copies of commonly accessed pages or graphics instead of downloading them each time. To install it:-

    1. From a root terminal type apt-get install squid
    2. Open gedit /etc/squid/squid.conf
    3. Find the TAG: visible_hostname and after the comments section add visible_hostname <hostname> where <hostname> is your machine’s hostname.
    4. Check http_port is either set to 3128 or a port number that you can remember for configuring your browser.
    5. Close and save
    6. Type adduser squid and specify a password
    7. Restart squid by typing: /etc/init.d/squid restart
    8. Stop the service by typing /etc/init.d/squid stop
    9. Test it in debug mode by typing squid -z (which creates the cache files)
    10. Type squid -NCd10 to test squid in debug mode and leave it running.
    11. Open Firefox and type the URL localhost:3128 or whatever port you chose. It will fail to retrieve a page, but at the bottom it will confirm that the error is generated by squid.
    12. Back at the Terminal type CTRL-C to cancel the debug mode
    13. Start squid for real with /etc/init.d/squid start. It will start automatically from now on.
    14. To configure Firefox to use squid, go to Edit>Preferences and click Advanced.
    15. Click Network>Settings and then Manual Proxy Configuration. For http proxy, enter localhost and for port 3128 (or whichever port you chose).
    16. Then click OK and close the Preferences dialogue.
    17. Now go to any webpage

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    re: install proxy server squid on ubuntu server (squid.conf)

    Squid is configured by editing the directives contained within the /etc/squid/squid.conf configuration file. The following examples illustrate some of the directives which may be modified to affect the behavior of the Squid server. For more in-depth configuration of Squid, see the References section.

    Prior to editing the configuration file, you should make a copy of the original file and protect it from writing so you will have the original settings as a reference, and to re-use as necessary.

    Copy the /etc/squid/squid.conf file and protect it from writing with the following commands entered at a terminal prompt:
    sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.original
    sudo chmod a-w /etc/squid/squid.conf.original

  4. #4
    Join Date
    Aug 2007
    Posts
    1,098

    re: install proxy server squid on ubuntu server (squid.conf)

    hope this configuration for proxy will help you
    http://www.faqs.org/docs/securing/chap28sec232.html

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    re: install proxy server squid on ubuntu server (squid.conf)

    At a terminal prompt, enter the following command to install the Squid server:

    Code:
    sudo apt-get install squid squid-common
    Squid is configured by editing the directives contained within the /etc/squid/squid.conf configuration file. The following examples illustrate some of the directives which may be modified to affect the behavior of the Squid server. For more in-depth configuration of Squid, see the References section.

    Prior to editing the configuration file, you should make a copy of the original file and protect it from writing so you will have the original settings as a reference, and to re-use as necessary.

    Copy the /etc/squid/squid.conf file and protect it from writing with the following commands entered at a terminal prompt:
    Code:
    sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.original
    sudo chmod a-w /etc/squid/squid.conf.original
    • To set your Squid server to listen on TCP port 8888 instead of the default TCP port 3128, change the http_port directive as such:
    • http_port 8888
    • Change the visible_hostname directive in order to give the Squid server a specific hostname. This hostname does not necessarily need to be the computer's hostname. In this example it is set to weezie
    • visible_hostname weezie
    • Again, Using Squid's access control, you may configure use of Internet services proxied by Squid to be available only users with certain Internet Protocol (IP) addresses. For example, we willll illustrate access by users of the 192.168.42.0/24 subnetwork only:
    • Add the following to the bottom of the ACL section of your /etc/squid/squid.conf file:
    • acl fortytwo_network src 192.168.42.0/24
    • Then, add the following to the top of the http_access section of your /etc/squid/squid.conf file:
    • http_access allow fortytwo_network
    • Using the excellent access control features of Squid, you may configure use of Internet services proxied by Squid to be available only during normal business hours. For example, we'll illustrate access by employees of a business which is operating between 9:00AM and 5:00PM, Monday through Friday, and which uses the 10.1.42.0/42 subnetwork:
    • Add the following to the bottom of the ACL section of your /etc/squid/squid.conf file:
    • acl biz_network src 10.1.42.0/24 acl biz_hours time M T W T F 9:00-17:00
    • Then, add the following to the top of the http_access section of your /etc/squid/squid.conf file:
    • http_access allow biz_network biz_hours


    After making changes to the /etc/squid/squid.conf file, save the file and restart the squid server application to effect the changes using the following command entered at a terminal prompt:

    Code:
    sudo /etc/init.d/squid restart

  6. #6
    Join Date
    Feb 2009
    Posts
    6

    re: install proxy server squid on ubuntu server (squid.conf)

    hello thanxx for anwersss
    i have apache server on other server then squid now i want to know where should i give the ip of apache server in squid.conf file and i use squid3

    and can anyone give me him squid.conf for example.
    Last edited by umer; 24-04-2009 at 03:24 PM.

Similar Threads

  1. Squid Proxy Server issue
    By emvy in forum Technology & Internet
    Replies: 1
    Last Post: 24-11-2011, 12:33 AM
  2. Howto Configure SQUID Proxy Server / LINUX
    By unix.blackhat in forum Networking & Security
    Replies: 6
    Last Post: 06-10-2011, 03:51 PM
  3. How to identify in squid.conf which is the cache folder
    By Lalitmohan in forum Networking & Security
    Replies: 4
    Last Post: 04-12-2010, 08:38 AM
  4. Does squid really improve server performance
    By nitesh mehta in forum Technology & Internet
    Replies: 2
    Last Post: 29-05-2009, 03:21 PM
  5. SQuid Proxy Server AND IpTables
    By umer in forum Networking & Security
    Replies: 2
    Last Post: 23-05-2009, 09:23 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,470,302.68648 seconds with 17 queries