Your SlideShare is downloading. ×
0
 
Installation of Squid <ul><li>Installation Using Internet </li></ul><ul><ul><li>Open terminal </li></ul></ul><ul><ul><li>R...
Installation of Squid <ul><li>Installation using tar-balls: </li></ul><ul><ul><li>Dowload tar-balls from  http://www.squid...
<ul><li>The configuration files for squid are in the  /etc/squid  directory. </li></ul><ul><li>To configure Squid, edit th...
To modify access of a network to intenet: acl mylan src 192.168.0.0/255.255.255.0 acl all src 0.0.0.0/0.0.0.0 http_access ...
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 acces...
To Control Access to particular filetype acl  blockedfiles  urlpath_regex  [-i]  .gif$  .jpg$  .png$ Or acl blockedfiles u...
Logs <ul><li>Squid keeps several logs detailing access, cache performance, and error messages. </li></ul><ul><li>•  access...
Start the server <ul><li>Now,Start the server usin following command: </li></ul><ul><li>#/etc/init.d/squid start </li></ul...
 
Upcoming SlideShare
Loading in...5
×

Squidinstallation

3,100

Published on

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

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,100
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
180
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Squidinstallation"

  1. 2. Installation of Squid <ul><li>Installation Using Internet </li></ul><ul><ul><li>Open terminal </li></ul></ul><ul><ul><li>Run following command </li></ul></ul><ul><ul><ul><li>sudo apt-get install squid squid-common </li></ul></ul></ul><ul><ul><ul><li>For fedora : yum install squid squid-common </li></ul></ul></ul><ul><ul><ul><li>It will ask for the password , Enter the password & press enter it automatically get installed. </li></ul></ul></ul>Sometimes You will get an error like this: $: Couldn’t find pacakges. *** first Update Synaptic Manager then try this command.
  2. 3. Installation of Squid <ul><li>Installation using tar-balls: </li></ul><ul><ul><li>Dowload tar-balls from http://www.squid-cache.org/ or from other sites. </li></ul></ul><ul><li>Open Terminal </li></ul><ul><li>Run following command: </li></ul><ul><li>tar –xvf squid-2.7.tar or extract it using any archiver. </li></ul><ul><li>cd squid-2.7 </li></ul><ul><li>./configure –-prefix=/usr/local/ </li></ul><ul><li>make all </li></ul><ul><li>Make install </li></ul>
  3. 4. <ul><li>The configuration files for squid are in the /etc/squid directory. </li></ul><ul><li>To configure Squid, edit the squid.conf configuration file. </li></ul><ul><li>acl (Access Control List) store all the access & deny settings. </li></ul><ul><li>Add following entries to squid.conf file: </li></ul>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
  4. 5. To modify access of a network to intenet: acl mylan src 192.168.0.0/255.255.255.0 acl all src 0.0.0.0/0.0.0.0 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
  5. 6. Squid acl options
  6. 7. 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
  7. 8. 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
  8. 9. Logs <ul><li>Squid keeps several logs detailing access, cache performance, and error messages. </li></ul><ul><li>• access.log holds requests sent to your proxy. </li></ul><ul><li>• cache.log holds Squid server messages such as errors and startup messages. </li></ul><ul><li>• store.log holds information about the Squid cache, such as objects added or removed. </li></ul><ul><li>cache manager ( cachemgr.cgi) manages the cache and its statistics. </li></ul><ul><li>To run the cache manager, </li></ul><ul><li>Place cachemgr.cgi script in your Web server’s cgi-bin directory) . </li></ul><ul><li>Use your browser to execute this script. </li></ul>
  9. 10. Start the server <ul><li>Now,Start the server usin following command: </li></ul><ul><li>#/etc/init.d/squid start </li></ul>** 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×