I'm having difficulty specifying ports for passive mode.

In ftpd.properties, I have:
config.data-connection.passive.ports=51500-51999

In the logs I find the following, which seems to indicate the data
connection was opened on port 1800, nowhere near the range I specified.

INFO  2007-11-01 22:54:23,831 MinaFtpProtocolHandler - [/127.0.0.1:1797]
RECEIVED: PASV
DEBUG 2007-11-01 22:54:23,841 ExecutorFilter - Launching thread for
/127.0.0.1:1797
DEBUG 2007-11-01 22:54:23,841 IODataConnectionFactory - Data connection
created on /127.0.0.1:1800
INFO  2007-11-01 22:54:23,841 MinaFtpProtocolHandler - [/127.0.0.1:1797]
WRITE: 227 Entering Passive Mode (127,0,0,1,7,8)
INFO  2007-11-01 22:54:23,851 MinaFtpProtocolHandler - [/127.0.0.1:1797]
SENT: 227 Entering Passive Mode (127,0,0,1,7,8)
DEBUG 2007-11-01 22:54:23,851 ExecutorFilter - Exiting since queue is
empty for /127.0.0.1:1797
INFO  2007-11-01 22:54:23,891 MinaFtpProtocolHandler - [/127.0.0.1:1797]
RECEIVED: LIST
DEBUG 2007-11-01 22:54:23,891 ExecutorFilter - Launching thread for
/127.0.0.1:1797
INFO  2007-11-01 22:54:23,891 MinaFtpProtocolHandler - [/127.0.0.1:1797]
WRITE: 150 File status okay; about to open data connection.
. . .

I have scoured the code I have and cannot find where the passive ports
are ever configured. I can only see that DefaultDataConnectionConfig is
the only implementation of the DataConnectionConfig interface and none
of its set methods are ever called.

Further, I attempted to generate an exception that would point me to the
place the data-connection is configured by changing my properties to:

config.data-connection.passive.ports=515x00-51999

and got no exception.


1. Am I missing something?
2. Can anyone point me to that code that configures data-connection?

Thanks in advance for your help!!

Charles




Reply via email to