Article delegate-en/4820 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]

Newsgroups: mail-lists.delegate-en

[DeleGate-En] FTP/SFTP Gateway PASV port re-use
30 May 2010 12:02:15 GMT Vijay Pandit <pyejabdyi-jqwqhpf3u6xr.ml@ml.delegate.org>


Hi Yutaka,

I am using Delegate 9.9.7 as a FTP/SFTP gateway. Find that after some files
are transferred successfully, Delegate starts re-using the port it allocates
for the PASV command for the data transfer of the next file, and subsequent
transfers fail. Delegate returns a 550 error followed by a 500  errors. 550
errors are said to be permission errors, but all files on the server have
the same permissions.

The Delegate command used is

./delegated -rv ADMIN=root@local -P21 SERVER=ftp MOUNT="/* sftp://
172.16.1.14/*"


The DeleGate FTP log is below

05/30 16:11:00.39 [23461] 7+0/00000/0000X: ## discard previous (unused) PASV
sock: 25 -> 29
05/30 16:11:00.39 [23461] 7+0/00000/0000X: ## discard previous PORT sock to
serv[RETR] 28 0
05/30 16:11:00.39 [23461] 7+0/00000/0000X: --FTPdata reuse port# 36647
[172,16,1,5,143,39]
05/30 16:11:00.39 [23461] 7+0/00000/0000X: ## [PASV] restored
(172,16,1,5,143,39)
05/30 16:11:00.39 [23461] 7+0/00000/0000X: PASV [A][172,16,1,5,143,39] >>
227 Entering Passive Mode (172,16,1,5,143,39).^M
05/30 16:11:00.40 [23461] 7+0/00000/0000X: #### close data connection
because of error.

The log on the FTP client is below. file_10444 is retrieved OK, (size of all
files so far is about 20MB). Transfer fails from file_10445

RETR file_10444
150 Ok
226 Ok
TYPE I
200 Ok
PASV
227 Entering Passive Mode (172,16,1,5,143,39).
RETR file_10445
550 No
TYPE I
200 Ok
PASV
227 Entering Passive Mode (172,16,1,5,143,39).
RETR file_10446
500 accept error
TYPE I
200 Ok
PASV
227 Entering Passive Mode (172,16,1,5,143,39).
RETR file_10447
500 No
TYPE I
200 Ok

Cheers

Vijay Pandit


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V