On Tue, Nov 21, 2000 at 06:52:33PM +0100, Wolfgang Barth wrote:
Hi,
Hi!
I think I found a bug around DestinationMinPort/DestinationMaxPort.
Yes, there is a bug. I'll try to fix it if I've some time to do this. Thank you for your report!
The proxy connected to the ftp server, after the "Login failed", the ftp server closes the connection. Due to the tcp implementation, there is a connection from proxy, port 42000 to the ftp server, one or two minutes in the state TIME_WAIT. A second try gives an error 99 (I don't mention the error messages).
Same with two parallel connections to the proxy: first login works fine, but as long the first login is active, no further connection to the ftp service is possible (same error message).
I disabled the DestinationMin/MaxPort, so the ftp-proxy can use every non privileged port, and all works fine. May be this is a problem in selecting a source port for the proxy->server connection, if the first port in the range is in use.
Yes, that is the reason (at the end of cmds_user in ftp-proxy/ftp-cmds.c).
Gruesse,
Marius Tomaschewski