Squid: The Definitive Guide (Paperback)
暫譯: 《Squid:權威指南(平裝本)》

Duane Wessels

  • 出版商: O'Reilly
  • 出版日期: 2004-03-02
  • 定價: $1,488
  • 售價: 9.0$1,339
  • 語言: 英文
  • 頁數: 472
  • 裝訂: Paperback
  • ISBN: 0596001622
  • ISBN-13: 9780596001629
  • 相關分類: BSDLinux
  • 立即出貨 (庫存 < 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

Preface

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
     Exercises

2. Getting Squid
     Versions and Releases
     Use the Source, Luke
     Precompiled Binaries
     Anonymous CVS
     devel.squid-cache.org
     Exercises

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

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
     Exercises

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
     Exercises

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

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

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?
     Exercises

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

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 ...
     Exercises

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

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

13. Log Files
     cache.log
     access.log
     store.log
     referer.log
     useragent.log
     swap.state
     Rotating the Log Files
     Privacy and Security
     Exercises

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

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

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

A. Config File Reference

B. The Memory Cache

C. Delay Pools

D. Filesystem Performance Benchmarks

E. Squid on Windows

F. Configuring Squid Clients

Index

商品描述(中文翻譯)

Squid 是當今最受歡迎的網頁快取軟體,並且可以在多種平台上運行,包括 Linux、FreeBSD 和 Windows。Squid 通過減少瀏覽網頁時所使用的帶寬來改善網路性能。它使網頁加載更快,甚至可以減少對網頁伺服器的負載。通過快取和重用熱門的網頁內容,Squid 使您能夠使用更小的網路連接。它還通過充當防火牆和代理內部網路流量來保護您內部網路上的主機。您可以使用 Squid 收集有關網路流量的統計數據,防止用戶在工作或學校訪問不當網站,確保只有授權用戶可以上網,並通過過濾網頁請求中的敏感信息來增強您的隱私。使用網頁快取代理的公司、學校、圖書館和組織可以期待眾多好處。

由 Squid 的創建者 Duane Wessels 撰寫的《Squid: The Definitive Guide》將幫助您根據您的特定情況配置和調整 Squid。Squid 的新手將學習如何下載、編譯和安裝代碼。經驗豐富的 Squid 用戶將對後面的章節感興趣,這些章節探討了高性能存儲選項、重寫請求、HTTP 伺服器加速、監控、除錯和故障排除等高級主題。

涵蓋的主題包括:
- 編譯和安裝 Squid
- 運行 Squid
- 使用 Squid 的複雜訪問控制
- 調整磁碟存儲以獲得最佳性能
- 配置您的操作系統以進行 HTTP 攔截
- 將請求轉發到其他網頁快取
- 使用重定向器重寫用戶請求
- 使用快取管理器和 SNMP 監控 Squid
- 使用 Squid 加速和保護 HTTP 伺服器
- 使用 Delay Pools 管理帶寬消耗

目錄

前言

1. 介紹
- 網頁快取
- Squid 的簡史
- 硬體和操作系統要求
- Squid 是開源的
- Squid 的網路家園
- 獲取幫助
- 開始使用 Squid
- 練習

2. 獲取 Squid
- 版本和發行
- 使用源碼,Luke
- 預編譯的二進位檔
- 匿名 CVS
- devel.squid-cache.org
- 練習

3. 編譯和安裝
- 開始之前
- 解壓源碼
- 預調整您的內核
- configure 腳本
- make
- make install
- 應用補丁
- 之後運行 configure
- 練習

4. 渴望者的配置指南
- squid.conf 語法
- 用戶 ID
- 埠號
- 日誌文件路徑
- 訪問控制
- 可見主機名
- 管理聯絡信息
- 下一步
- 練習

5. 運行 Squid
- Squid 命令行選項
- 檢查您的配置文件是否有錯誤
- 初始化快取目錄
- 在終端窗口測試 Squid
- 將 Squid 作為守護進程運行
- 啟動腳本
- chroot 環境
- 停止 Squid
- 重新配置正在運行的 Squid 進程
- 旋轉日誌文件
- 練習

6. 訪問控制全解
- 訪問控制元素
- 訪問控制規則
- 常見場景
- 測試訪問控制
- 練習

7. 磁碟快取基礎
- cache_dir 指令
- 磁碟空間水位
- 物件大小限制
- 將物件分配到快取目錄
- 替換策略
- 移除快取物件
- refresh_pattern
- 練習

8. 高級磁碟快取主題
- 我有磁碟 I/O 瓶頸嗎?
- 檔案系統調整選項
- 替代檔案系統
- aufs 存儲方案
- diskd 存儲方案
- coss 存儲方案
- null 存儲方案
- 哪一個最適合我?
- 練習

9. 攔截快取
- 它是如何工作的
- 為什麼(不)攔截?
- 網路設備
- 操作系統調整
- 配置 Squid
- 除錯問題
- 練習

10. 與其他 Squid 交談
- 一些術語
- 為什麼(不)使用層級?
- 告訴 Squid 關於您的鄰居
- 限制對鄰居的請求
- 網路測量數據庫
- Internet 快取協議
- 快取摘要
- 超文本快取協議
- 快取陣列路由協議
- 將所有內容整合
- 我該如何...
- 練習

11. 重定向器
- 重定向器介面
- 一些示例重定向器
- 重定向器池
- 配置 Squid
- 受歡迎的重定向器
- 練習

12. 認證助手
- 配置 Squid
- HTTP 基本認證
- HTTP 摘要認證
- Microsoft NTLM 認證
- 外部 ACL
- 練習

13. 日誌文件
- cache.log
- access.log
- store.log
- referer.log
- useragent.log
- swap.state
- 旋轉日誌文件
- 隱私和安全
- 練習

14. 監控 Squid
- cache.log 警告
- 快取管理器
- 使用 SNMP
- 練習

15. 伺服器加速器模式
- 概述
- 配置 Squid
- 哇,這真令人困惑!
- 訪問控制
- 內容協商
- 注意事項
- 練習

16. 除錯和故障排除
- 一些常見問題
- 通過 cache.log 除錯
- 核心轉儲、斷言和堆疊跟蹤
- 複製問題
- 報告錯誤
- 練習

A. 配置文件參考

B. 記憶體快取

C. Delay Pools

D. 檔案系統性能基準

E. Windows 上的 Squid

F. 配置 Squid 客戶端

索引