Article delegate-en/4439 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:<_A4438@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: Delegate: FTP reverse proxy: how to pass auth credentials?
28 Apr 2009 11:49:09 GMT feedback@delegate.org (Yutaka Sato)
The DeleGate Project


Hi,

In message <_A4438@delegate-en.ML_> on 04/28/09(17:28:54)
you "Andrea `Zuse' Balestrero" <pkyiqbdyi-h5qfbm5hcc3r.ml@ml.delegate.org> wrote:
 |I'm trying to test Delegate (last versione) as FTP reverse proxy.
 |
 |I run it with the folloing command line:
 |
 |   ./linux-dg -v -P21 SERVER=ftp://192.168.0.83 ADMIN="test@foo.."
 |
 |192.168.0.83 is running a FTP server which does not allow anonymous FTP.
 |
 |If I use Delegate as above, FTP login credentials are passed to
 |the back-end FTP server?

Yes.
You can peep the conversation between your DeleGate and the FTP server
with "-vd" option and "CMAP=-tee-n:FSV:ftp" as follows for example.

  04/28 20:40:18.78 [156] 1+0/1: CLIENT-SAYS: USER User****^M
  04/28 20:40:20.33 [156] 1+0/2: CLIENT-SAYS: PASS ********
(auth info. got from client)
  ...
  04/28 20:40:22.14 [156] 1+0/7: ConnectToServer connected [26] {192.168.x.x:21 <- 192.168.x.y:5000} [0.021s]
  ...
  04/28 20:40:22.17 [161] 1+0/7: -- Fork(FSV): 156 -> 161
       1  220 powmac.local FTP server (tnftpd 20061217) ready.
  04/28 20:40:22.51 [156] 1+0/7: FTP-SERVER-SAYS: 220 powmac.local FTP server (tnftpd 20061217) ready.^M
  04/28 20:40:22.51 [156] 1+0/7: willSTLS_SV: ServerFlags=0
  04/28 20:40:22.51 [156] 1+0/7: proxyLogin(User****,Pass****,.,)
       1  USER User****
  04/28 20:40:22.51 [156] 1+0/7: I-SAY: USER User****^M
       2  331 Password required for User****.
  04/28 20:40:22.90 [156] 1+0/7: FTP-SERVER-SAYS: 331 Password required for User****.^M
  04/28 20:40:22.90 [156] 1+0/7: I-SAY: PASS ********
(auth info. forwarded to the server)
       2  PASS Password1
       3  230-
       4      Welcome to Darwin!
       5  230 User User**** logged in.


 |It seems that "SERVER=ftp://192.168.0.83" is a call to back-end
 |FTP server done as anonymous FTP, that is what I'd like to avoid.
 |How can I pass auth credentials from my external FTP client to
 |back-end FTP server via Delegate?

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