Hallo Leute,
bezüglich der Einrichtung von iptables bin ich zur Zeit an der Einrichtung eines FTP-Servers. Hierzu die Frage: welche Ports außer 21 und 20 nutzt eine normale FTP-Verbindung? (Vmtl. passives FTP) Eigentlich sollten die beiden reichen, oder?
Mein Problem: mit den folgenden Firewallregeln kriege ich keine Verbindung, wenn die Firewall aktiv ist...
ZitatAlles anzeigen
#Durchgangsregeln
#Steuerverbindungen-Kette
$FW -A control_connections -j LOG -m limit --limit 6/minute
$FW -A control_connections -j ACCEPT
#Normale Verbindungen-Kette
$FW -A normal_connections -j ACCEPT
#einkommende Pakete sortieren
$FW -A INPUT -p tcp --dport 16000 -i eth0 -m state --state ESTABLISHED,RELATED,NEW -j control_connections
$FW -A INPUT -p tcp --dport 21 -i eth0 -m state --state ESTABLISHED,RELATED,NEW -j normal_connections
$FW -A INPUT -p tcp --dport 20 -i eth0 -m state --state ESTABLISHED,RELATED -j normal_connections