Команда REST отображается как RE * T при попытке передачи по FTP


1

Я пытаюсь возобновить передачу файлов из набора больших файлов. Обе стороны используют Filezilla.

На стороне клиента журнал говорит

Command:    TYPE I
Command:    TYPE I
Response:   200 Type set to I
Command:    PASV
Response:   200 Type set to I
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,215)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,216)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.001
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.002
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,217)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,218)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.001
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.002
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,219)
Command:    REST 483330080
Response:   227 Entering Passive Mode (74,62,95,113,243,220)
Command:    REST 504011792
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,221)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,222)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,223)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,224)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.003
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.004
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,225)
Command:    REST 60429777
Response:   227 Entering Passive Mode (74,62,95,113,243,226)
Command:    REST 65549620
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.005
Command:    PASV
Response:   500 Syntax error, command unrecognized.
Status: Starting upload of D:\7-ZipPortable\716 Image.7z.006
Command:    PASV
Response:   227 Entering Passive Mode (74,62,95,113,243,227)
Command:    REST 0
Response:   227 Entering Passive Mode (74,62,95,113,243,228)
Command:    REST 0
Response:   500 Syntax error, command unrecognized.
Command:    STOR 716 Image.7z.005
Response:   500 Syntax error, command unrecognized.
Command:    STOR 716 Image.7z.006
Response:   150 Connection accepted
Response:   150 Connection accepted

На сервере журнал говорит

(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> TYPE I
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 200 Type set to I
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> TYPE I
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 200 Type set to I
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,215)
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,216)
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,217)
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:38 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,218)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,219)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,220)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 483330080
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 504011792
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,221)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,222)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,223)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,224)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,225)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,226)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 60429777
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 65549620
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,227)
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> PASV
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 227 Entering Passive Mode (74,62,95,113,243,228)
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 0
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> RE*T 0
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 500 Syntax error, command unrecognized.
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> STOR 716 Image.7z.005
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> STOR 716 Image.7z.006
(000074)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 150 Connection accepted
(000075)6/17/2011 9:24:39 AM - srchamberlain (75.151.243.41)> 150 Connection accepted

Обратите внимание, что REST стал RE * T. Если это была какая-то странная проблема с кодировкой, почему работает S в STOR или в PASV? Кто-нибудь видел эту проблему раньше и знает, как ее исправить?

Ответы:


3

Это очень вероятно, будет брандмауэром отвода с FTP команды он не поддерживает. (Многие потребительские брандмауэры сканируют трафик FTP на наличие команд PORT и PASV и соответствующим образом корректируют правила.)

Временно отключите брандмауэр или используйте безопасный FTP с TLS (SSL).


Настройка самоподписанного сертификата на сервере ftp устранила проблему, спасибо!
Скотт Чемберлен
Используя наш сайт, вы подтверждаете, что прочитали и поняли нашу Политику в отношении файлов cookie и Политику конфиденциальности.
Licensed under cc by-sa 3.0 with attribution required.