Matti Aarnio:
> 
> > I'm trying to use passive mode (PASV) with mirror (2.8),
> > mirror.pl sets &ftp'use_pasv according to passive_ftp=(yes|no),
> > but ftp.pl coming with perl5 doesn't seem to use this value.
> > 
> > There's no PASV command being sent, there's also no such line
> > in ftp.pl ...
> In the  ftp.pl  with that mirror package,
> around line 1280, you need to add following:
> 
>         #
>         # we MUST do a listen before sending the port otherwise
>         # the PORT may fail
>         #
>         listen( S, 5 ) || die "listen";
> 
> +       if ($use_pasv) {
> +               return 1;
> +       }
> 
>         &send( "PORT $a,$b,$c,$d,$hi,$lo" );

Are you sure that's all ?
I'd assume somewhere the Entering Passive Mode message should be
analyzed (as this gives the new port to listen to ?)

I did some sniffing during a ftp-pasv session - it uses PASV prior
to any LIST, RETR, or STOR instruction. Shouldn't mirror being
ftp client send PASV, too ?
Where would be the best place to do that (perhaps somewhere near
the location you gave me) ?

Steffen
-- 
Steffen Grunewald = steffen(at)gfz-potsdam.de = fax +49-331-288-1266
My opinions are mine. You can rent them. Just ask me for prices  :-)
"Art is a lie which makes us realize the truth"   -    Pablo Picasso
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to