Squid Proxy Server 3.1: Beginner's Guide
eBook - ePub

Squid Proxy Server 3.1: Beginner's Guide

  1. 332 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Squid Proxy Server 3.1: Beginner's Guide

About this book

Part of Packt's Beginner's Guide Series, this book has lots of screenshots and step-by-step instructions to help you get to grips with the techniques as quickly as possible. Each chapter is dedicated to a different aspect of the Squid proxy server, so you will have a thorough understanding of how everything works and how it is connected by the end of the book. If you are a Linux or Unix system administrator and you want to enhance the performance of your network or you are a web developer and want to enhance the performance of your website, this book is for you. You are expected to have some basic knowledge of networking concepts, but may not have used caching systems or proxy servers before now.

Trusted byย 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Squid Proxy Server 3.1 Beginner's Guide


Table of Contents

Squid Proxy Server 3.1 Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Time for action - heading
What just happened?
Pop quiz
Have a go hero - heading
Reader feedback
Customer support
Errata
Piracy
Questions
1. Getting Started with Squid
Proxy server
Reverse proxy
Getting Squid
Time for action โ€“ identifying the right version
What just happened?
Methods of obtaining Squid
Using source archives
Time for action โ€“ downloading Squid
What just happened?
Obtaining the latest source code from Bazaar VCS
Time for action โ€“ using Bazaar to obtain source code
What just happened?
Have a go hero โ€“ fetching the source code
Using binary packages
Installing Squid
Installing Squid from source code
Compiling Squid
Why compile?
Uncompressing the source archive
Configure or system check
--prefix
--enable-gnuregex
--disable-inline
--disable-optimizations
--enable-storeio
--enable-removal-policies
--enable-icmp
--enable-delay-pools
--enable-esi
--enable-useragent-log
--enable-referer-log
--disable-wccp
--disable-wccpv2
--disable-snmp
--enable-cachemgr-hostname
--enable-arp-acl
--disable-htcp
--enable-ssl
--enable-cache-digests
--enable-default-err-language
--enable-err-languages
--disable-http-violations
--enable-ipfw-transparent
--enable-ipf-transparent
--enable-pf-transparent
--enable-linux-netfliter
--enable-follow-x-forwarded-for
--disable-ident-lookups
--disable-internal-dns
--enable-default-hostsfile
--enable-auth
Old Syntax
New Syntax
--enable-auth-basic
--enable-auth-ntlm
--enable-auth-negotiate
--enable-auth-digest
--enable-ntlm-fail-open
--enable-external-acl-helpers
--disable-translation
--disable-auto-locale
--disable-unlinkd
--with-default-user
--with-logdir
--with-pidfile
--with-aufs-threads
--without-pthreads
--with-openssl
--with-large-files
--with-filedescriptors
Have a go hero โ€“ file descriptors
Time for action โ€“ running the configure command
What just happened?
Have a go hero โ€“ debugging configure errors
Time for action โ€“ compiling the source
What just happened?
Time for action โ€“ installing Squid
What just happened?
Time for action โ€“ exploring Squid files
bin
bin/squidclient
etc
etc/squid.conf
etc/squid.conf.default
etc/squid.conf.documented
libexec
libexec/cachemgr.cgi
sbin
sbin/squid
share
share/errors
share/icons
share/man
var
var/cache
var/logs
What just happened?
Installing Squid from binary packages
Fedora, CentOS or Red Hat
Debian or Ubuntu
FreeBSD
OpenBSD or NetBSD
Dragonfly BSD
Gentoo
Arch Linux
Pop quiz
Summary
2. Configuring Squid
Quick start
Syntax of the configuration file
Types of directives
Single valued directives
Boolean-valued or toggle directives
Multi-valued directives
Directives with time as a value
Directives with file or memory size as values
Have a go hero โ€“ categorize the directives
HTTP port
Time for action โ€“ setting the HTTP port
What just happened?
Access control lists
Time for action โ€“ constructing simple ACLs
What just happened?
Have a go hero โ€“ understanding the pre-defined ACLs
Controlling access to the proxy server
HTTP access control
Time for action โ€“ combining ACLs and HTTP access
What just happened?
HTTP reply access
ICP access
HTCP access
HTCP CLR access
Miss access
Ident lookup access
Cache peers or neighbors
Declaring cache peers
Time for action โ€“ adding a cache peer
What just happened?
Quickly restricting access to domains using peers
Advanced control on access using peers
Caching web documents
Using main memory (RAM) for caching
In-transit objects or current requests
Hot or popular objects
Negatively cached objects
Specifying cache space in RAM
Time for action โ€“ specifying space for memory caching
What just happened?
Have a go hero โ€“ calculating cache_mem for your machine
Maximum object size in memory
Memory cache mode
Using hard disks for caching
Specifying the storage space
Storage types
Choosing a directory name or location
Time for action โ€“ creating a cache directory
What just happened?
Declaring the size of the cache
Configuring the number of sub directories
Read-only cache
Time for action โ€“ adding a cache directory
What just happened?
Cache directory selection
Cache object size limits
Setting limits on object replacement
Cache replacement policies
Least recently used (LRU)
Greedy dual size frequency (GDSF)
Least frequently used with dynamic aging (LFUDA)
Tuning Squid for enhanced caching
Selective caching
Time for action โ€“ preventing the caching of local content
What jus...

Table of contents

  1. Squid Proxy Server 3.1 Beginner's Guide

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, weโ€™ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Squid Proxy Server 3.1: Beginner's Guide by Kulbir Saini in PDF and/or ePUB format, as well as other popular books in Computer Science & Information Technology. We have over one million books available in our catalogue for you to explore.