Uploaded image for project: 'FtpServer'
  1. FtpServer
  2. FTPSERVER-420

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.6, 1.1.0
    • Core
    • 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.

      Attachments

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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            niklas Niklas Therning
            prisoner Allen Firstenberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment