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

[DeleGate-En] Re: delegate as ftp-ssl proxy
07 Aug 1998 12:14:53 GMT ysato@etl.go.jp (Yutaka Sato 佐藤豊)


Hi Piero,

In message <_A6@delegate-en.ML_>
on 08/07/98(19:06:31)
you "Piero Berritta" <pauaabdyi-ytjem465gilr.ml@ml.delegate.org> wrote:
 |Client side:
 |delegated -P21 FSV="sslway -co" SERVER=ftp://ftp-server-name:8021
 |
 |Server side:
 |delegated -P8021 FCL="sslway -ac" SERVER=ftp://ftp-server-name:21
 |
 |When I make ftp the connection initialise correctly, but, as soon as I try
 |to open a data connection (tipically a dir command) the ftp hungs up.
 |Is someone able to solve this problem?

I could reproduce the problem in my environment.  It is caused
because I have incompleteley supported external filter for FTP
protocol.
This problem seems to be solved with the patch enclosed in this
message, and also by ftp.c temporarily placed as
"ftp://ftp.etl.go.jp/pub/DeleGate/tmp/ftp.c" which is more
comprehensively repaired.

Cheers,
Yutaka
--
Yutaka Sato <ysato@etl.go.jp> http://www.etl.go.jp/~ysato/   @ @ 
Computer Science Division, Electrotechnical Laboratory      ( - )
1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan            _<   >_


*** ../dist/delegate5.6.1/src/ftp.c	Fri Jul 24 00:57:51 1998
--- ftp.c	Fri Aug  7 20:57:30 1998
***************
*** 148,153 ****
--- 148,167 ----
  	}
  }
  
+ static ServSock(Conn,ts,where)
+ 	Connection *Conn;
+ 	FILE *ts;
+ 	char *where;
+ {	int toS;
+ 
+ 	if( (Conn->xf_filters & XF_SERVER) && 0 <= ToSX ){
+ 		sv1log("## viaCFI [%s]: fileno(ts)=%d ToSX=%d\n",
+ 			where,fileno(ts),ToSX);
+ 		toS = ToSX;
+ 	}else	toS = fileno(ts);
+ 	return toS;
+ }
+ 
  is_anonymous(user)
  	char *user;
  {
***************
*** 2523,2529 ****
  	fflush(tc);
  
  	if( !FS->fs_IAMCC )
! 	if( !localsocket(fileno(ts)) && getenv("NOXDC") == 0 )
  	if( FS->fs_serverWithXDC ){
  		if( D_FTPHOPS == 1 ){
  			put_serv(MODE(FS),ts,"MODE XDC\r\n");
--- 2537,2543 ----
  	fflush(tc);
  
  	if( !FS->fs_IAMCC )
! 	if( !localsocket(ServSock(Conn,ts,"INIT")) && getenv("NOXDC") == 0 )
  	if( FS->fs_serverWithXDC ){
  		if( D_FTPHOPS == 1 ){
  			put_serv(MODE(FS),ts,"MODE XDC\r\n");

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