Part I. Concepts

Table of Contents

1. Basic IP Connectivity
1. IP Networking Control Files
2. Reading Routes and IP Information
2.1. Sending Packets to the Local Network
2.2. Sending Packets to Unknown Networks Through the Default Gateway
2.3. Static Routes to Networks
3. Changing IP Addresses and Routes
3.1. Changing the IP on a machine
3.2. Setting the Default Route
3.3. Adding and removing a static route
4. Conclusion
2. Ethernet
1. Address Resolution Protocol (ARP)
1.1. Overview of Address Resolution Protocol
1.2. The ARP cache
1.3. ARP Suppression
1.4. The ARP Flux Problem
2. Proxy ARP
3. ARP filtering
4. Connecting to an Ethernet 802.1q VLAN
5. Link Aggregation and High Availability with Bonding
5.1. Link Aggregation
5.2. High Availability
3. Bridging
1. Concepts of Bridging
2. Bridging and Spanning Tree Protocol
3. Bridging and Packet Filtering
4. Traffic Control with a Bridge
5. ebtables
4. IP Routing
1. Introduction to Linux Routing
2. Routing to Locally Connected Networks
3. Sending Packets Through a Gateway
4. Operating as a Router
5. Route Selection
5.1. The Common Case
5.2. The Whole Story
5.3. Summary
6. Source Address Selection
7. Routing Cache
8. Routing Tables
8.1. Routing Table Entries (Routes)
8.2. The Local Routing Table
8.3. The Main Routing Table
9. Routing Policy Database (RPDB)
10. ICMP and Routing
10.1. MTU, MSS, and ICMP
10.2. ICMP Redirects and Routing
5. Network Address Translation (NAT)
1. Rationale for and Introduction to NAT
2. Application Layer Protocols with Embedded Network Information
3. Stateless NAT with iproute2
3.1. Stateless NAT Packet Capture and Introduction
3.2. Stateless NAT Practicum
3.3. Conditional Stateless NAT
4. Stateless NAT and Packet Filtering
5. Destination NAT with netfilter (DNAT)
5.1. Port Address Translation with DNAT
6. Port Address Translation (PAT) from Userspace
7. Transparent PAT from Userspace
6. Masquerading and Source Network Address Translation
1. Concepts of Source NAT
1.1. Differences Between SNAT and Masquerading
1.2. Double SNAT/Masquerading
2. Issues with SNAT/Masquerading and Inbound Traffic
3. Where Masquerading and SNAT Break
7. Packet Filtering
1. Rationale for and Introduction to Packet Filtering
1.1. History of Linux Packet Filter Support
2. Limits and Weaknesses of Packet Filtering
2.1. Limits of the Usefulness of Packet Filtering
2.2. Weaknesses of Packet Filtering
2.3. Complex Network Layer Stateless Packet Filters
3. General Packet Filter Requirements
4. The Netfilter Architecture
4.1. Packet Filtering with iptables
5. Packet Filtering with ipchains
5.1. Packet Mangling with ipchains
6. Protecting a Host
7. Protecting a Network
8. Further Resources
8. Statefulness and Statelessness
1.
2. Statelessness of IP Routing
3. Netfilter Connection Tracking
3.1.
3.2.