Your SlideShare is downloading. ×
Squid Server
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Squid Server

2,516
views

Published on

This Ppt contains some details about squid server, …

This Ppt contains some details about squid server,
Linux must see it once.

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,516
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
69
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. What is Squid?
  • 2. Other proxies
  • 3. What is a proxy?
  • 4. What is a caching proxy?
  • 5. How proxies work (configuration)
  • 6. Setup Proxy In Browser
  • 7. How proxies work (user request)
  • 8. Cacheable objects
  • 9. Non-cacheable objects
  • 10. Transparent proxying
  • 11. Transparent proxying
  • 12. Squid hardware requirements
  • 13. ∗ 1.x and 1.NOVM.x∗ No longer supported∗ Entire cache lost if even one disk in cache fails∗ Doesn’t understand Cache-Control: tag∗ Other problems∗ Bottom line: don’t use themSquid distributions (versions)
  • 14. ∗ 2.0, 2.1, 2.2∗ Redesigned disk storage algorithm much improved∗ Understands Cache-Control: tag∗ Better LRU/refresh rule engine∗ Supports proxy authentication∗ See documentation for full list of enhancements∗ Recommendation: 2.1 is fairly stable, but move to 2.2when 2.2STABLE releasedSquid distributions (versions)
  • 15. ∗ acl manager proto cache_object∗ acl localhost src 127.0.0.1/32∗ acl managerhost src 204.248.51.34/32∗ acl managerhost src 204.248.51.39/32∗ acl managerhost src 204.248.51.40/32∗ acl cawtech src 204.248.51.0/24∗ acl cawtech-internal src 172.16.0.0/16∗ acl all src 0.0.0.0/0.0.0.0squid.conf ACL example
  • 16. ∗ acl SSL_ports port 443 563∗ acl gopher_ports port 70∗ acl wais_ports port 210∗ acl whois_ports port 43∗ acl www_ports port 80 81∗ acl ftp_ports port 21∗ acl Safe_ports port 1025-65535∗ acl CONNECT method CONNECT∗ acl FTP proto FTP∗ acl HTTP proto HTTP∗ acl WAIS proto WAIS∗ acl GOPHER proto GOPHER∗ acl WHOIS proto WHOISsquid.conf ACL example
  • 17. ∗ http_access deny manager !localhost !managerhost∗ http_access deny CONNECT !SSL_ports∗ http_access deny HTTP !www_ports !Safe_ports∗ http_access deny FTP !ftp_ports !Safe_ports∗ http_access deny GOPHER !gopher_ports !Safe_ports∗ http_access deny WAIS !wais_ports !Safe_ports∗ http_access deny WHOIS !whois_ports !Safe_ports∗ http_access allow localhost∗ http_access allow cawtech∗ http_access allow cawtech-internal∗ http_access deny allsquid.conf ACL example
  • 18. ∗ File we Edit for Sqid /etc/squid/squid.conf∗ acl mysurfers srcdomain .facebook.com∗ acl teachers src 192.168.1.0/255.255.255.0∗ acl students src 192.168.7.0-192.168.9.0/255.255.255.0∗ acl lunch time MTWHF 12:00-15:00∗ http_access deny localhost∗ http_access allow teachers∗ http_access allow students lunch time∗ http_access deny all∗ visible_hostname machine-name∗ http_port 3128∗ cache_dir ufs /var/spool/squid 1000 16 256∗ cache_access_log /var/log/squid/access.logSample proxy auto-configuration
  • 19. Advantages of Squid
  • 20. Advantages of Squid
  • 21. Advantages of Squid