IPTables
Einführung
https://linuxacademy.com/howtoguides/posts/show/topic/15473-introduction-to-iptables
Extensions
http://ipset.netfilter.org/iptables-extensions.man.html
Tabellen
iptables besitzt mehrere Tabellen, in die Regelketten (Chains) eingetragen werden können.
- filter: used for packet filtering, is the default table if no table is specified.
- nat: used for network address translation (NAT)
- raw: used for configuring exemptions from connection tracking, and it is checked before any other table.
- mangle: used for specialized packet alteration
- security: used for Mandatory Access Control (MAC) networking rules *Filter
Chains
- The INPUT chain handles packets that are destined to the local system.
- The OUTPUT chain is for packets that are locally generated.
- The FORWARD chain is used for packets that are routed through the system.
Regeln auflisten
iptables [-t <TABELLENNAME>] -L
Chains ausgeben
iptables -nvL --line-numbers