Article delegate-en/3630 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] Problem with slash in username on ftp proxy
10 Feb 2007 09:39:46 GMT Emmanuel Bailleul <pfyhabdyi-aj46qzhs2lfr.ml@ml.delegate.org>


Hello and thanks a lot for this wonderful tool.

I have been testing delegate as a ftp proxy recently without a problem, 
until someone reported me a problem regarding a ftp site that is using a 
username containing a "/" (slash).
After doing some tracing, I found that delegate did not send the right 
part of the username (after the /) to the destination ftp server.
However, I found this article : 
http://www.delegate.org/mail-lists/delegate-en/01899 which said this was 
patch in recent versions of delegate. I even was able to confirm this 
patch was applied in latest version which I'm using (9.3.2), but that 
does not seem to do the trick.

I've tested this on linux/delegate 9.3.2 with a command line like this :

delegated -P21 SERVER=ftp PERMIT=ftp:*:* ADMIN=blah@blah..

and here is an output of what is happening from the client point of view :

(...)
C:\>ftp 192.168.30.10
Connecté à 192.168.30.10.
220- 192.168.30.10 PROXY-FTP server (DeleGate/9.3.2) ready.
220-   @ @
220-  ( - ) { DeleGate/9.3.2 (December 21, 2006) }
220- AIST-Product-ID: 2000-ETL-198715-01, H14PRO-049, H15PRO-165, H18PRO-443
220- Copyright (c) 1994-2000 Yutaka Sato and ETL,AIST,MITI
220- Copyright (c) 2001-2006 National Institute of Advanced Industrial 
Science a
nd Technology (AIST)
220- WWW: http://www.delegate.org/delegate/
220- --
220- You can connect to a SERVER by `user' command:
220-    ftp> user username@SERVER
220- or by `cd' command (after logged in as an anonymous user):
220-    ftp> cd //SERVER
220- Cache is enabled by default and can be disabled by `cd .' (toggle)
220- This (proxy) service is maintained by 'blah@blah..'
220-
220-extended FTP [MODE XDC][XDC/BASE64]
220
Utilisateur (192.168.30.10:(none)) : soft.fr/labo4@ftp.****.net
331 Password required for anonymous.
Mot de passe :
530 ;-< Proxy failed to connect with `soft.fr'
Échec de l'identification.
ftp> quit
(...)

and from the delegate's logs :
(...)
02/10 10:20:09.96 [2347] 1+0: -- Fork(OnetimeServer): 2343 -> 2347
02/10 10:20:09.99 [2347] 1+0: {R} SOA got 
[168.192.in-addr.arpa][localhost][root] 1 604800 86400 2419200 604800
02/10 10:20:10.05 [2347] 1+0: (0) accepted [29] 
-@[192.168.30.2]192.168.30.2:4021 (0.089s)(1)
02/10 10:20:10.05 [2347] 1+0: PATH: 
ftp://-:21!192.168.30.10:21!192.168.30.2:4021!anonymous@192.168.30.2;1171099210
02/10 10:20:10.06 [2347] 1+0: FTP server ftp://-:21/
02/10 10:20:10.06 [2347] 1+0: *** / => file://localhost/-stab-/ ***
02/10 10:20:10.06 [2347] 1+0: MOUNTED-TO-STAB: file://localhost/-stab-/
02/10 10:20:10.06 [2347] 1+0: -- putBuiltinHTML: empty 
ftp-banner-postfix.dhtml
02/10 10:20:10.06 [2347] 1+0: bind_insock(20,192.168.30.10,0) = 0, errno=0
02/10 10:20:10.06 [2347] 1+0: ## connect[20] TIMEOUT(1000)
02/10 10:20:10.06 [2347] 1+0: ### IDENT CONNECT(192.168.30.2:113) 
TIMEOUT(1000ms) (110)
02/10 10:20:10.09 [2347] 1+0: #### no authorization required
02/10 10:20:36.82 [2347] 1+0/1: {R} SOA got 
[soft.fr][ns4.oleane.net][hostmaster.oleane.net] 2007012201 86400 3600 
1209600 3600
02/10 10:20:36.82 [2347] 1+0/1: {R} [soft.fr]*1 q=0,a=1, s=1,r=1 (0s)
02/10 10:20:38.88 [2347] 1+0/1: {R} [soft.fr]*2 q=1,a=1, s=2,r=1 (2s)
02/10 10:20:40.93 [2347] 1+0/1: {R} [soft.fr]*3 q=2,a=1, s=3,r=1 (4s)
02/10 10:20:46.99 [2347] 1+0/1: {R} [soft.fr]*4 q=2,a=1, s=3,r=1 (10s)
02/10 10:20:47.05 [2347] 1+0/1: {R} retrying AAAA [soft.fr]
02/10 10:20:47.07 [2347] 1+0/1: {R} [soft.fr]*1 q=0,a=1, s=1,r=1 (0s)
02/10 10:20:49.13 [2347] 1+0/1: {R} [soft.fr]*2 q=1,a=1, s=2,r=1 (2s)
02/10 10:20:51.19 [2347] 1+0/1: {R} [soft.fr]*3 q=2,a=1, s=3,r=1 (4s)
02/10 10:20:57.24 [2347] 1+0/1: {R} [soft.fr]*4 q=2,a=1, s=3,r=1 (10s)
02/10 10:20:57.30 [2347] 1+0/1: gethostbyname(soft.fr) unknown[20.51s] 
recv[192.168.30.1](86) Q[soft.fr] ID=4/4 AA=0 RD=1 RA=1 RCODE=0 
ans,ns,add=0,1,0
02/10 10:20:57.30 [2347] 1+0/1: FTP LOGIN FROM 192.168.30.2 TO 
anonymous@soft..fr
02/10 10:20:57.30 [2347] 1+0/1: rewritten to: CWD 
//soft.fr/labo4@ftp.***.net^M
02/10 10:21:37.66 [2347] 1+0/2: FTP LOGIN FROM 192.168.30.2 TO 
anonymous@soft..fr
02/10 10:21:37.66 [2347] 1+0/2: PATH: 
ftp://soft.fr:21!192.168.30.10:21!192.168.30.2:4021!anonymous@192.168..30.2;1171099210
02/10 10:21:37.67 [2347] 1+0/2: FTP server ftp://soft.fr:21/
02/10 10:21:37.67 [2347] 1+0/2: FTPHOPS: 1 [10/29 - -1/-1]
02/10 10:21:37.67 [2347] 1+0/2: ConnectToServer: DFLT=ftp://soft.fr:21 
REAL=://:0
02/10 10:21:37.67 [2347] 1+0/2: ConnectToServer unknown host 'soft.fr'
02/10 10:21:37.67 [2347] 1+0/2: ERROR: cannot connect to 
ftp://soft.fr:21 - -1
02/10 10:21:37.69 [2347] 1+0/2: E-C: Can't connect: 192.168.30.2:4021 => 
ftp://soft.fr (unknown)
02/10 10:21:37.69 [2347] 1+0/2: willSTLS_SV: ServerFlags=10
02/10 10:21:37.69 [2347] 1+0/2: inherited AsProxy: 10010
02/10 10:21:37.69 [2347] 1+0/2: cannot connect `soft.fr'
02/10 10:21:37.69 [2347] 1+0/2: disconnected [29] 
-@[192.168.30.2]192.168.30.2:4021 (87.736s)(0)
(...)

Please note that in the above I replaced the real ftp site by ***.

Thanks for your help.

Emmanuel


-- 
Pas de virus dans le message sortant
Checked by AVG Free Edition.
Version: 7.1.411 / Virus Database: 268.17.33/678 - Release Date: 09/02/2007



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