Linux Firewalls: Attack Detection and Response with iptables, psad, and fwsnort (Paperback)

Michael Rash

  • 出版商: No Starch Press
  • 出版日期: 2007-09-01
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 1593271417
  • ISBN-13: 9781593271411
  • 相關分類: Linux
  • 立即出貨(限量) (庫存=1)




System administrators need to stay ahead of new security vulnerabilities that leave their networks exposed every day. A firewall and an intrusion detection systems (IDS) are two important weapons in that fight, enabling you to proactively deny access and monitor network traffic for signs of an attack.

Linux Firewalls discusses the technical details of the iptables firewall and the Netfilter framework that are built into the Linux kernel, and it explains how they provide strong filtering, Network Address Translation (NAT), state tracking, and application layer inspection capabilities that rival many commercial tools. You'll learn how to deploy iptables as an IDS with psad and fwsnort and how to build a strong, passive authentication layer around iptables with fwknop.

Concrete examples illustrate concepts such as firewall log analysis and policies, passive network authentication and authorization, exploit packet traces, Snort ruleset emulation, and more with coverage of these topics:

  • Passive network authentication and OS fingerprinting
  • iptables log analysis and policies
  • Application layer attack detection with the iptables string match extension
  • Building an iptables ruleset that emulates a Snort ruleset
  • Port knocking vs. Single Packet Authorization (SPA)
  • Tools for visualizing iptables logs

Perl and C code snippets offer practical examples that will help you to maximize your deployment of Linux firewalls. If you're responsible for keeping a network secure, you'll find Linux Firewalls invaluable in your attempt to understand attacks and use iptables—along with psad and fwsnort—to detect and even prevent compromises.

Table of Contents

Foreword by Richard Bejtlich
Chapter 1: Care and Feeding of iptables
Chapter 2: Network Layer Attacks and Defense
Chapter 3: Transport Layer Attacks and Defense
Chapter 4: Application Layer Attacks and Defense
Chapter 5: Introducing psad: The Port Scan Attack Detector
Chapter 6: psad Operations: Detecting Suspicious Traffic
Chapter 7: Advanced psad Topics: From Signature Matching to OS Fingerprinting
Chapter 8: Active Response with psad
Chapter 9: Translating Snort Rules into iptables Rules
Chapter 10: Deploying Fwsnort
Chapter 11: Combining psad and Fwsnort
Chapter 12: Port-Knocking vs. Single Packet Authorization
Chapter 13: Introducing fwknop
Chapter 14: Visualizing iptables Logs
Appendix A: Attack Spoofing
Appendix B: A Complete fwsnort Script






- 被動網絡身份驗證和操作系統指紋識別
- iptables日誌分析和策略
- 使用iptables字符串匹配擴展進行應用層攻擊檢測
- 構建模擬Snort規則集的iptables規則集
- 端口敲門與單個封包授權(SPA)
- 可視化iptables日誌的工具



- 前言:Richard Bejtlich
- 引言
- 第1章:iptables的照料和餵養
- 第2章:網絡層攻擊和防禦
- 第3章:傳輸層攻擊和防禦
- 第4章:應用層攻擊和防禦
- 第5章:介紹psad:端口掃描攻擊檢測器
- 第6章:psad操作:檢測可疑流量
- 第7章:高級psad主題:從簽名匹配到操作系統指紋識別
- 第8章:使用psad進行主動響應
- 第9章:將Snort規則轉換為iptables規則
- 第10章:部署Fwsnort
- 第11章:結合psad和Fwsnort
- 第12章:端口敲門與單個封包授權
- 第13章:介紹fwknop
- 第14章:可視化iptables日誌
- 附錄A:攻擊欺騙
- 附錄B:完整的fwsnort腳本