Article delegate-en/4508 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]
[Reference:<_A4507@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

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


Hi,

In message <_A4507@delegate-en.ML_> on 07/09/09(22:24:54)
you "Gusti Benawi" <prqhabdyi-6rbemlfjgo3r.ml@ml.delegate.org> wrote:
 |> In message <_A4505@delegate-en.ML_> on 07/09/09(21:43:46)
 |> you "Gusti Benawi" <prqhabdyi-6rbemlfjgo3r.ml@ml.delegate.org> 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
 |> 120.30.1.21:34143->ftpserver.host/120.30.1.20:51359, 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

  SRCIF="*:0:ftp-data-pasv-src"

or more simply with

  -Dfb

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

  FTPCONF=noport

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.

  [server]
  delegated -fv -P9998 SERVER=ftp MOUNT="/* /*" SRCIF="1.2.3.4:-:tcpbound"

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

  [client]
  delegated -fv -Fdget ftp://localhost:9999 -h -o

Cheers,
Yutaka
--
  9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.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]
@_@V