Iptables

From neil.tappsville.com
Revision as of 03:52, 9 August 2020 by Gonzo (talk | contribs) (Created page with "==iptables== ===Tables=== Main tables are Filter, NAT, Mangle * Filter - default * NAT * Mangle - change IP Headers ===Chains=== Traversal Order: Pre --> Input --> Forward...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

iptables

Tables

Main tables are Filter, NAT, Mangle

  • Filter - default
  • NAT
  • Mangle - change IP Headers

Chains

Traversal Order: Pre --> Input --> Forward --> Output

  • Prerouting - Incoming packet
  • Input - Entering network stack
  • Forward - Routed through system
  • Output - Orginated on system and leaving system
  • Post Routing - Packet going on the wire

Incoming packets destined for the local system: Prerouting --> Input

Incoming packets destined to another host: Prerouting --> Foward --> Postrouting

Locally generated packets: Output --> Postrouting

Rules

Commands to manipulate network traffic.

Each rule in the chain is queried in order - if the packet does not match the next rule is examined.

Each rule had a matching component and a Target component (action)