FtpServer
  1. FtpServer
  2. FTPSERVER-420

When picking a passive port, use "random port" from the pool instead of "lowest port"

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.6, 1.1.0
    • Component/s: Core
    • Labels:
      None

      Description

      As discussed on the mailing list < http://www.mail-archive.com/ftpserver-users@mina.apache.org/msg01635.html >, passive ports are allocated from the pool based on the lowest available port from the list. This may cause problems with some firewalls or clients that may not release the port as quickly as the server expects. It is also a minor security risk to provide an easily guessable port for passive connections.

      Discussion on the list centered around other options to allocate ports, focusing on a random port assignment from the available pool.

      1. DataConnectionConfigurationFactory.java.diff
        0.6 kB
        Allen Firstenberg
      2. PassivePorts.java
        8 kB
        Allen Firstenberg
      3. PassivePorts.java.diff
        5 kB
        Allen Firstenberg
      4. PassivePortsTest.java
        10 kB
        Allen Firstenberg

        Activity

          People

          • Assignee:
            Niklas Gustavsson
            Reporter:
            Allen Firstenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development