Ich möchte einen PC mit iptables absichern und wollte dazu ein Script verwenden, welches ich bereits auf einem anderen Rechner hatte. Da das Skript nicht funktionierte, hab ich die Befehle einzeln in die Konsole geschrieben um herauszufinden wo das erste Problem auftritt.
Code: Alles auswählen
modprobe ip_tables
iptables -N ext-in
iptables -F ext-in
iptables -D INPUT -i eth0 -j ext-in
iptables -A INPUT -i eth0 -j ext-in
iptables -A ext-in -m state --state RELATED,ESTABLISHED -j ACCEPT
Die chain existiert aberiptables: No chain/target/match by that name
Nun bin ich ratlos und wäre froh um jegliche Tipps!debian:~# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ext-in 0 -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain ext-in (1 references)
target prot opt source destination
Gruss