iptabels comment

iptables regen sind meist sehr undurchsichtig, damit man beim auslesen mit iptabels -L schnell versteh was man da gemacht hat, kann man mit -m comment --comment "server name" den einzelnen regeln einen Kommentar mit geben.

So sieht die Regel dann folgendermaßen aus:

iptables -A INPUT -i eth0 -p tcp --dport 2202 -j ACCEPT -m comment --comment "blog.chr.istoph.de"

iptabels -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     tcp  --  anywhere             anywhere            tcp dpt:2202 /* blog.chr.istoph.de */

Quelle: spamcleaner.org