[FTP-Server] 500 Invalid PORT Command

ZeroTank

Herzlich willkommen!
500 Invalid PORT Command

Hallo zusammen,

ich habe vor kurzem eine FTP Site über den IIS 6 aufgebaut. LAN komme ich Tip Top drauf, aber über's Internet krieg' ich stets einen "500 Invalid PORT Command" Fehler. Anbei ein Auszug des Logs:

PWD
257 "/" is current directory.
CWD /
250 CWD command successful.
PWD257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,1,3,10,98).
connecting data channel to 192.168.1.3:10,98(2658)
Substituting connection address 195.225.201.44 for private address 192.168.1.3 from PASV
PORT 192,168,1,6,4,10
500 Invalid PORT Command.
Port failed 500 Invalid PORT Command.
CWD /
250 CWD command successful.
PWD
257 "/" is current directory.
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,168,1,3,10,99).
connecting data channel to 192.168.1.3:10,99(2659)
Substituting connection address 195.225.201.44 for private address 192.168.1.3 from PASV
PORT 192,168,1,6,4,12
500 Invalid PORT Command.
Port failed 500 Invalid PORT Command.

Ich wäre froh, wenn mir jemand weiterhelfen könnte. Danke.

Gruss ZeroTank
 
Heya,

Dank dir für Deine Antwort. Ich hab das mal eben gemacht, ist aber nicht viel bei rausgekommen.

Bei http://www.g6ftpserver.com/de/ftptest:

* About to connect() to 195.225.201.44 port 1093
* Trying 195.225.201.44... * connected
* Connected to 195.225.201.44 (195.225.201.44) port 1093
< 220 Microsoft FTP Service

> USER Furgy
< 331 Password required for Furgy.

> PASS *****
< 530 User Furgy cannot log in.
* not logged in: User Furgy cannot log in.
* Closing connection #0

Und bei http://www2ftp.de sagt er wohl er sei verbunden, und es sah erst auch so aus als ob gar nix gehen würde. Ich konnte weder Files noch Dirs sehen. Als ich mich danach wieder über LAN eingeloggt habe, sah ich aber, dass ich ein Dir erstellen konnte.

Kann es sein, dass es mit folgendem zusammenhängt:

...
PORT 192,168,1,6,4,10
500 Invalid PORT Command.
Port failed 500 Invalid PORT Command.
...
PORT 192,168,1,6,4,12
500 Invalid PORT Command.
Port failed 500 Invalid PORT Command.

das würde dann ja 192.168.1.6:1034 resp. 192.168.1.6:1036 heissen (warum 192.168.1.6 und nicht 192.168.1.3 ?), wenn ich mich nicht irre. Diese Ports habe ich aber nicht geroutet. Muss ich diese also routen, und wenn ja, woher weiss ich im Voraus was für Ports an dieser Stelle verwendet werden?
 
So, es ist mir gelungen das Problem zu lösen... Ich lag mit meiner letzten Vermutung also richtig, und darum folgt eine Erklärung, falls wieder einmal Leute das selbe Problem haben sollten...

Es liegt an den Passive Ports die im IIS wie Folgt konfiguriert werden:

a) To Enable Direct Metabase Edit
1. Open the IIS Microsoft Management Console (MMC).
2. Right-click on the Local Computer node.
3. Select Properties.
4. Make sure the Enable Direct Metabase Edit checkbox is checked.


b) Configure PassivePortRange via ADSUTIL script
1. Click Start, click Run, type cmd, and then click OK.
2. Type cd Inetpub\AdminScripts and then press ENTER.
3. Type the following command from a command prompt.
adsutil.vbs set /MSFTPSVC/PassivePortRange "5500-5700"
4. Restart the FTP service.

Sobald das gemacht ist, weiss man nämlich auch was geroutet werden muss...

Gruss ZeroTank
 
Es gibt eben nur einen brauchbaren FTP Server für Windows. :)


Ehrliches Danke für die Beschreibung!
 
Oben