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

[DeleGate-En] Re: Data connection refused, but data is forwarded
20 Jul 2009 09:57:45 GMT (Yutaka Sato)
The DeleGate Project


In message <_A4507@delegate-en.ML_> on 07/09/09(22:24:54)
you "Gusti Benawi" <> wrote:
 |> In message <_A4505@delegate-en.ML_> on 07/09/09(21:43:46)
 |> you "Gusti Benawi" <> wrote:
 |>  |I configured delegate to act as reverse proxy. 
 |>  |FTPServer <---> Delegate <---> Internet
 |>  |
 |>  |Delegate takes exactly 20 seconds every time to build the data
 |> connection in passive mode. This 20 seconds come exactly from two times timout@10
 |> seconds because of connection from delegate to the ftp server is refused, as
 |> you can see in the log file (ftp_conndata: connection refused
 |>>, errno=110)
 |> If it is normal as you expected, why don't you suppress PASV toward server
 |> by FTPCONF="nopasv:sv" ?  Or you should stop the retrial and shorten the
 |> timeout with other configuration parameters.
 |To shorten the timeout I can use TIMEOUT=con:seconds parameter.
 |How can I stop the retrial?

Sorry, I thought it can be done with a generic MAXIMA="contry:1" for
TCP connection establishment, but the retrial in this case is specific
to FTP data-connection by src/inets.c:ftp_conndata().
So in 9.9.4-pre11 I added options to suppress the retrial with


or more simply with


Also I found and fixed that PORT to server is not suppressed with


when gatewaying PASV command from a client to PORT command toward server.
I tested these modifications in 9.9.4-pre11 with the following commands.

  delegated -fv -P9998 SERVER=ftp MOUNT="/* /*" SRCIF=""

  delegated -fv -P9999 SERVER=ftp MOUNT="/* ftp://localhost:9998/*" \
              CACHE=no SRCIF="*:0:ftp-data-pasv-src" FTPCONF=noport

  delegated -fv -Fdget ftp://localhost:9999 -h -o

  9 9   Yutaka Sato <>
 ( ~ )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

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