iptables
Hi, ich möchte meine iptables konfigurieren, habe aber ein paar kleine
probs bzw weiß den syntax nicht so richtig.
# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
das ist mein derzeitiger stand.
Ich möchte das von haus aus die INPUT chain REJECTET wird. (Da weiß ich
den Syntax nicht)
und dann will ich die bestimmten ports freischalten mit:
iptables -A INPUT -d xxx.xxx.xxx.xxx -p tcp --dport 22 -j ACCEPT
Kann mir jemand helfen?
Oder mir auch verbesserungs vorschläge geben?
mfg
Jan
Reply to: