• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content




How to install squid proxy server & how to connfigure it..

How to install squid proxy server & how to connfigure it..
To download this ppt you can visit http://blog.wikivision.co.cc



Total Views
Views on SlideShare
Embed Views



1 Embed 8

http://blog.wikivision.co.cc 8



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    Squidinstallation Squidinstallation Presentation Transcript

    • Installation of Squid
      • Installation Using Internet
        • Open terminal
        • Run following command
          • sudo apt-get install squid squid-common
          • For fedora : yum install squid squid-common
          • It will ask for the password , Enter the password & press enter it automatically get installed.
      Sometimes You will get an error like this: $: Couldn’t find pacakges. *** first Update Synaptic Manager then try this command.
    • Installation of Squid
      • Installation using tar-balls:
        • Dowload tar-balls from http://www.squid-cache.org/ or from other sites.
      • Open Terminal
      • Run following command:
      • tar –xvf squid-2.7.tar or extract it using any archiver.
      • cd squid-2.7
      • ./configure –-prefix=/usr/local/
      • make all
      • Make install
      • The configuration files for squid are in the /etc/squid directory.
      • To configure Squid, edit the squid.conf configuration file.
      • acl (Access Control List) store all the access & deny settings.
      • Add following entries to squid.conf file:
      http_port 3128 maximum_object_size 200 KB #This creates 100 MB disk space with 16 #first level sub-directories and 256 second #level subdirectories. cache_dir ufs /var/spool/squid 100 16 256 cache_access_log /var/log/squid/access.log cache_log /var/log/squid/cache.log
    • To modify access of a network to intenet: acl mylan src acl all src http_access allow mylan http_access deny all To restrict a particular site access: acl blog dst anyone.blog.com http_access deny blog ** This will block the access to anyone.blog.com acl youtube dstdomain .youtube.com http_access deny youtube ** This will block the access to *.youtube.com
    • Squid acl options
    • To restrict Access by time acl hours time M T W H F 9:00-17:00 http_access allow mylan hours ** This will allow the access to network from 9:00 am to 5:00pm (from Monday to Friday) To Restrict the Search by a keyword acl badkeyword url_regex [–i] torrent proxy http_access deny mylan badkeyword ** This will block the search containing these keyword or a url of the page That contains these keyword acl badkeyword url_regex [–i] “/etc/squid/keyword.acl” acl badkeyword urlpath_regex [–i] “/etc/squid/keyword.acl” acl badkeyword urlpath_regex [–i] torrent proxy Reading from a file **This will block all the keywords that are wriiten in the file named keyword.acl
    • To Control Access to particular filetype acl blockedfiles urlpath_regex [-i] .gif$ .jpg$ .png$ Or acl blockedfiles urlpath_regex [-i] “/etc/squid/blockedfiles.acl” http_access deny mylan blockedfiles **This will block access to all the files having the .gif , .jpg, .png extension To control Access using MAC address acl blockmac arp 00:15:EF:8D:7A:C3 http_access deny blockmac **This will block the machine to access the network having the above mac address
    • Logs
      • Squid keeps several logs detailing access, cache performance, and error messages.
      • • access.log holds requests sent to your proxy.
      • • cache.log holds Squid server messages such as errors and startup messages.
      • • store.log holds information about the Squid cache, such as objects added or removed.
      • cache manager ( cachemgr.cgi) manages the cache and its statistics.
      • To run the cache manager,
      • Place cachemgr.cgi script in your Web server’s cgi-bin directory) .
      • Use your browser to execute this script.
    • Start the server
      • Now,Start the server usin following command:
      • #/etc/init.d/squid start
      ** Squid, when started for the first time, will create the cache directories by itself and start the proxy server on port 3128 Squid Server can be stopped or restarted using following command: #/etc/init.d/squid stop/restart Or #service squid stop/restart