SlideShare a Scribd company logo
Squid Server
What is Squid?
Other proxies
What is a proxy?
What is a caching proxy?
How proxies work (configuration)
Setup Proxy In Browser
How proxies work (user request)
Cacheable objects
Non-cacheable objects
Squid Server
Transparent proxying
Transparent proxying
Squid hardware requirements
∗ 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 them
Squid distributions (versions)
∗ 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.2
when 2.2STABLE released
Squid distributions (versions)
∗ 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.0
squid.conf ACL example
∗ 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 WHOIS
squid.conf ACL example
∗ 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 all
squid.conf ACL example
∗ 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.log
Sample proxy auto-configuration
Squid Server
Advantages of Squid
Advantages of Squid
Advantages of Squid
Squid Server

More Related Content

ODP
Squid Proxy Server
PDF
Squid proxy-configuration-guide
PPT
Squid server
PPT
Squid Caching for Web Content Accerlation
DOCX
Project on squid proxy in rhel 6
PPTX
PPS
PDF
Squid proxy server
Squid Proxy Server
Squid proxy-configuration-guide
Squid server
Squid Caching for Web Content Accerlation
Project on squid proxy in rhel 6
Squid proxy server

What's hot (20)

PDF
Docker Setting for Static IP allocation
PPTX
Choosing A Proxy Server - Apachecon 2014
PPTX
Installation Openstack Swift
PDF
SERENE 2014 School: Measurement-Driven Resilience Design of Cloud-Based Cyber...
PPTX
PDF
青云CoreOS虚拟机部署kubernetes
PDF
CoreOS intro
PPTX
Introduction to Haproxy
PDF
Docker and Fargate
PDF
Defeating The Network Security Infrastructure V1.0
PDF
Kubernetes networking - basics
PDF
Acus08 Advanced Load Balancing Apache2.2
PDF
NGiNX, VHOSTS & SSL (let's encrypt)
DOCX
Ansible ex407 and EX 294
KEY
Apache httpd 2.4 Reverse Proxy
PDF
Nginx Internals
PDF
Docker Security in Production Overview
PDF
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
PPTX
The Basic Introduction of Open vSwitch
PDF
Docker 1.11 @ Docker SF Meetup
Docker Setting for Static IP allocation
Choosing A Proxy Server - Apachecon 2014
Installation Openstack Swift
SERENE 2014 School: Measurement-Driven Resilience Design of Cloud-Based Cyber...
青云CoreOS虚拟机部署kubernetes
CoreOS intro
Introduction to Haproxy
Docker and Fargate
Defeating The Network Security Infrastructure V1.0
Kubernetes networking - basics
Acus08 Advanced Load Balancing Apache2.2
NGiNX, VHOSTS & SSL (let's encrypt)
Ansible ex407 and EX 294
Apache httpd 2.4 Reverse Proxy
Nginx Internals
Docker Security in Production Overview
Docker Meetup: Docker Networking 1.11, by Madhu Venugopal
The Basic Introduction of Open vSwitch
Docker 1.11 @ Docker SF Meetup
Ad

Viewers also liked (20)

PDF
Pg py-and-squid-pypgday
PDF
Squid beak
PPTX
RHCE (RED HAT CERTIFIED ENGINEERING)
PPTX
Squid proxy-server
PPTX
How to handle extracurriculars in medical school
PPT
PPT
Final presentation
PPT
Sprint review
PPTX
New phrasal verbs
PDF
Redrawing the Energy-Climate Map
ODP
Mission Impossible 7 "The Scavenger Hunt"
PDF
Quantum physics - Bohr Atom
PDF
Ictlt tracker presentation
PDF
Summary of response
DOC
Analysing solar spectrum
PDF
Sharing your-internet-connection-on-linux
PDF
Resume Narya_UX Designer_2016
PDF
Datasheets- albatross lab
PPTX
Advantages of proxy server
PPTX
Http Proxy Server
Pg py-and-squid-pypgday
Squid beak
RHCE (RED HAT CERTIFIED ENGINEERING)
Squid proxy-server
How to handle extracurriculars in medical school
Final presentation
Sprint review
New phrasal verbs
Redrawing the Energy-Climate Map
Mission Impossible 7 "The Scavenger Hunt"
Quantum physics - Bohr Atom
Ictlt tracker presentation
Summary of response
Analysing solar spectrum
Sharing your-internet-connection-on-linux
Resume Narya_UX Designer_2016
Datasheets- albatross lab
Advantages of proxy server
Http Proxy Server
Ad

Similar to Squid Server (20)

PDF
[Devconf.cz][2017] Understanding OpenShift Security Context Constraints
PDF
Docker and friends at Linux Days 2014 in Prague
PDF
Docker 0.11 at MaxCDN meetup in Los Angeles
PPTX
Docker container management
KEY
Apache Wizardry - Ohio Linux 2011
PDF
Bare Metal to OpenStack with Razor and Chef
PPT
les_02.ppt of the Oracle course train_2 file
PPTX
cache concepts and varnish-cache
PDF
2015 05-06-elias weingaertner-docker-intro
PPTX
Dockerizing the Hard Services: Neutron and Nova
PDF
Jfrog artifactory as private docker registry
PDF
Introduction to Kalabox
PPTX
Docker
PPTX
Why you’re going to fail running java on docker!
KEY
Apache Cookbook - TekX Chicago 2010
PPTX
Detailed Introduction To Docker
PDF
Unidade3 roteiro proxy
PDF
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
PDF
17937858 squid-server - [the-xp.blogspot.com]
PDF
17) 11 (may, 2003) squid master this proxy server
[Devconf.cz][2017] Understanding OpenShift Security Context Constraints
Docker and friends at Linux Days 2014 in Prague
Docker 0.11 at MaxCDN meetup in Los Angeles
Docker container management
Apache Wizardry - Ohio Linux 2011
Bare Metal to OpenStack with Razor and Chef
les_02.ppt of the Oracle course train_2 file
cache concepts and varnish-cache
2015 05-06-elias weingaertner-docker-intro
Dockerizing the Hard Services: Neutron and Nova
Jfrog artifactory as private docker registry
Introduction to Kalabox
Docker
Why you’re going to fail running java on docker!
Apache Cookbook - TekX Chicago 2010
Detailed Introduction To Docker
Unidade3 roteiro proxy
The Docker "Gauntlet" - Introduction, Ecosystem, Deployment, Orchestration
17937858 squid-server - [the-xp.blogspot.com]
17) 11 (may, 2003) squid master this proxy server

Recently uploaded (20)

PDF
Empathic Computing: Creating Shared Understanding
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
sap open course for s4hana steps from ECC to s4
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Spectroscopy.pptx food analysis technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
KodekX | Application Modernization Development
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Empathic Computing: Creating Shared Understanding
Programs and apps: productivity, graphics, security and other tools
Network Security Unit 5.pdf for BCA BBA.
Diabetes mellitus diagnosis method based random forest with bat algorithm
MIND Revenue Release Quarter 2 2025 Press Release
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
sap open course for s4hana steps from ECC to s4
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
Chapter 3 Spatial Domain Image Processing.pdf
Approach and Philosophy of On baking technology
Per capita expenditure prediction using model stacking based on satellite ima...
Spectroscopy.pptx food analysis technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Agricultural_Statistics_at_a_Glance_2022_0.pdf
KodekX | Application Modernization Development
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Squid Server

  • 4. What is a proxy?
  • 5. What is a caching proxy?
  • 6. How proxies work (configuration)
  • 7. Setup Proxy In Browser
  • 8. How proxies work (user request)
  • 15. ∗ 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 them Squid distributions (versions)
  • 16. ∗ 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.2 when 2.2STABLE released Squid distributions (versions)
  • 17. ∗ 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.0 squid.conf ACL example
  • 18. ∗ 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 WHOIS squid.conf ACL example
  • 19. ∗ 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 all squid.conf ACL example
  • 20. ∗ 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.log Sample proxy auto-configuration