Book description
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
-
Linux Firewalls
- ACKNOWLEDGMENTS
- FOREWORD
- INTRODUCTION
- 1. CARE AND FEEDING OF IPTABLES
- 2. NETWORK LAYER ATTACKS AND DEFENSE
- 3. TRANSPORT LAYER ATTACKS AND DEFENSE
- 4. APPLICATION LAYER ATTACKS AND DEFENSE
-
5. INTRODUCING PSAD: THE PORT SCAN ATTACK DETECTOR
- History
- Why Analyze Firewall Logs?
- psad Features
- psad Installation
- psad Administration
-
psad Configuration
-
/etc/psad/psad.conf
- EMAIL_ADDRESSES
- DANGER_LEVEL{n}
- HOME_NET
- EXTERNAL_NET
- SYSLOG_DAEMON
- CHECK_INTERVAL
- SCAN_TIMEOUT
- ENABLE_PERSISTENCE
- PORT_RANGE_SCAN_THRESHOLD
- EMAIL_ALERT_DANGER_LEVEL
- MIN_DANGER_LEVEL
- SHOW_ALL_SIGNATURES
- ALERT_ALL
- SNORT_SID_STR
- ENABLE_AUTO_IDS
- IMPORT_OLD_SCANS
- ENABLE_DSHIELD_ALERTS
- IGNORE_PORTS
- IGNORE_PROTOCOLS
- IGNORE_LOG_PREFIXES
- EMAIL_LIMIT
- ALERTING_METHODS
- FW_MSG_SEARCH
- /etc/psad/auto_dl
- /etc/psad/signatures
- /etc/psad/snort_rule_dl
- /etc/psad/ip_options
- /etc/psad/pf.os
-
/etc/psad/psad.conf
- Concluding Thoughts
- 6. PSAD OPERATIONS: DETECTING SUSPICIOUS TRAFFIC
- 7. ADVANCED PSAD TOPICS: FROM SIGNATURE MATCHING TO OS FINGERPRINTING
- 8. ACTIVE RESPONSE WITH PSAD
- 9. TRANSLATING SNORT RULES INTO IPTABLES RULES
- 10. DEPLOYING FWSNORT
- 11. COMBINING PSAD AND FWSNORT
- 12. PORT KNOCKING VS. SINGLE PACKET AUTHORIZATION
- 13. INTRODUCING FWKNOP
- 14. VISUALIZING IPTABLES LOGS
- A. ATTACK SPOOFING
- B. A COMPLETE FWSNORT SCRIPT
- About the Author
- COLOPHON
Product information
- Title: Linux Firewalls
- Author(s):
- Release date: September 2007
- Publisher(s): No Starch Press
- ISBN: 9781593271411
You might also like
book
Linux Firewalls, Third Edition
An Internet-connected Linux machine is in a high-risk situation. Linux Firewalls, Third Edition details security steps …
book
Linux Security Cookbook
Computer security is an ongoing process, a relentless contest between system administrators and intruders. A good …
book
Designing and Implementing Linux Firewalls and QoS using netfilter, iproute2, NAT, and L7-filter
Learn how to secure your system and implement QoS using real-world scenarios for networks of all …
book
Practical Linux Security Cookbook - Second Edition
Enhance file system security and learn about network attack, security tools and different versions of Linux …