Squid: The Definitive Guide (Paperback)

Duane Wessels

  • 出版商: O'Reilly
  • 出版日期: 2004-02-01
  • 定價: $1,575
  • 售價: 9.5$1,496
  • 貴賓價: 9.0$1,418
  • 語言: 英文
  • 頁數: 472
  • 裝訂: Paperback
  • ISBN: 0596001622
  • ISBN-13: 9780596001629
  • 立即出貨 (庫存 < 3)




Squid is the most popular Web caching software in use today, and it works on a variety of platforms including Linux, FreeBSD, and Windows. Squid improves network performance by reducing the amount of bandwidth used when surfing the Web. It makes web pages load faster and can even reduce the load on your web server. By caching and reusing popular web content, Squid allows you to get by with smaller network connections. It also protects the host on your internal network by acting as a firewall and proxying your internal web traffic. You can use Squid to collect statistics about the traffic on your network, prevent users from visiting inappropriate web sites at work or school, ensure that only authorized users can surf the Internet, and enhance your privacy by filtering sensitive information from web requests. Companies, schools, libraries, and organizations that use web-caching proxies can look forward to a multitude of benefits.

Written by Duane Wessels, the creator of Squid, Squid: The Definitive Guide will help you configure and tune Squid for your particular situation. Newcomers to Squid will learn how to download, compile, and install code. Seasoned users of Squid will be interested in the later chapters, which tackle advanced topics such as high-performance storage options, rewriting requests, HTTP server acceleration, monitoring, debugging, and troubleshooting Squid.

Topics covered include:

  • Compiling and installing Squid
  • Running Squid
  • Using Squid's sophisticated access controls
  • Tuning disk storage for optimal performance
  • Configuring your operating system for HTTP interception
  • Forwarding Requests to other web caches
  • Using redirectors to rewrite user requests
  • Monitoring Squid with the cache manager and SNMP
  • Using Squid to accelerate and protect HTTP servers
  • Managing bandwidth consumption with Delay Pools

Table of Contents


1. Introduction
     Web Caching
     A Brief History of Squid
     Hardware and Operating System Requirements
     Squid Is Open Source
     Squid's Home on the Web
     Getting Help
     Getting Started with Squid

2. Getting Squid
     Versions and Releases
     Use the Source, Luke
     Precompiled Binaries
     Anonymous CVS

3. Compiling and Installing
     Before You Start
     Unpacking the Source
     Pretuning Your Kernel
     The configure Script
     make Install
     Applying a Patch
     Running configure Later

4. Configuration Guide for the Eager
     The squid.conf Syntax
     User IDs
     Port Numbers
     Log File Pathnames
     Access Controls
     Visible Hostname
     Administrative Contact Information
     Next Steps

5. Running Squid
     Squid Command-Line Options
     Check Your Configuration File for Errors
     Initializing Cache Directories
     Testing Squid in a Terminal Window
     Running Squid as a Daemon Process
     Boot Scripts
     A chroot Environment
     Stopping Squid
     Reconfiguring a Running Squid Process
     Rotating the Log Files

6. All About Access Controls
     Access Control Elements
     Access Control Rules
     Common Scenarios
     Testing Access Controls

7. Disk Cache Basics
     The cache_dir Directive
     Disk Space Watermarks
     Object Size Limits
     Allocating Objects to Cache Directories
     Replacement Policies
     Removing Cached Objects

8. Advanced Disk Cache Topics
     Do I Have a Disk I/O Bottleneck?
     Filesystem Tuning Options
     Alternative Filesystems
     The aufs Storage Scheme
     The diskd Storage Scheme
     The coss Storage Scheme
     The null Storage Scheme
     Which Is Best for Me?

9. Interception Caching
     How It Works
     Why (Not) Intercept?
     The Network Device
     Operating System Tweaks
     Configure Squid
     Debugging Problems

10. Talking to Other Squids
     Some Terminology
     Why (Not) Use a Hierarchy?
     Telling Squid About Your Neighbors
     Restricting Requests to Neighbors
     The Network Measurement Database
     Internet Cache Protocol
     Cache Digests
     Hypertext Caching Protocol
     Cache Array Routing Protocol
     Putting It All Together
     How Do I ...

11. Redirectors
     The Redirector Interface
     Some Sample Redirectors
     The Redirector Pool
     Configuring Squid
     Popular Redirectors

12. Authentication Helpers
     Configuring Squid
     HTTP Basic Authentication
     HTTP Digest Authentication
     Microsoft NTLM Authentication
     External ACLs

13. Log Files
     Rotating the Log Files
     Privacy and Security

14. Monitoring Squid
     cache.log Warnings
     The Cache Manager
     Using SNMP

15. Server Accelerator Mode
     Configuring Squid
     Gee, That Was Confusing!
     Access Controls
     Content Negotiation

16. Debugging and Troubleshooting
     Some Common Problems
     Debugging via cache.log
     Core Dumps, Assertions, and Stack Traces
     Replicating Problems
     Reporting a Bug

A. Config File Reference

B. The Memory Cache

C. Delay Pools

D. Filesystem Performance Benchmarks

E. Squid on Windows

F. Configuring Squid Clients