You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by "Joseph Ferner (JIRA)" <ji...@apache.org> on 2006/11/27 22:04:21 UTC
[jira] Created: (FTPSERVER-51) PASV command returns the wrong IP
address when multiple interfaces are available.
PASV command returns the wrong IP address when multiple interfaces are available.
---------------------------------------------------------------------------------
Key: FTPSERVER-51
URL: http://issues.apache.org/jira/browse/FTPSERVER-51
Project: FtpServer
Issue Type: Bug
Reporter: Joseph Ferner
If the FTP server has multiple NIC interfaces and the "config.data-connection.passive.address" configuration parameter is not set the server will return the first IP address found on the server and not the IP address of the established communications.
Setting "config.data-connection.passive.address" is not a good solution because then the FTP server cannot listen on multiple IP addresses.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (FTPSERVER-51) PASV command returns the wrong IP
address when multiple interfaces are available.
Posted by "Joseph Ferner (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/FTPSERVER-51?page=all ]
Joseph Ferner updated FTPSERVER-51:
-----------------------------------
Attachment: fix.patch
First, I set the passive address to null if not specified.
I then pass the control socket's local IP address around (which really isn't that much) so that I can run a check to see if the passive address is null and if it is return the local IP address instead.
> PASV command returns the wrong IP address when multiple interfaces are available.
> ---------------------------------------------------------------------------------
>
> Key: FTPSERVER-51
> URL: http://issues.apache.org/jira/browse/FTPSERVER-51
> Project: FtpServer
> Issue Type: Bug
> Reporter: Joseph Ferner
> Attachments: fix.patch
>
>
> If the FTP server has multiple NIC interfaces and the "config.data-connection.passive.address" configuration parameter is not set the server will return the first IP address found on the server and not the IP address of the established communications.
> Setting "config.data-connection.passive.address" is not a good solution because then the FTP server cannot listen on multiple IP addresses.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (FTPSERVER-51) PASV command returns the wrong IP
address when multiple interfaces are available.
Posted by "Niklas Gustavsson (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/FTPSERVER-51?page=all ]
Niklas Gustavsson closed FTPSERVER-51.
--------------------------------------
Resolution: Fixed
Assignee: Niklas Gustavsson
Thanks, patch applied (rev 480226). I also added a test case to reproduce the bug.
> PASV command returns the wrong IP address when multiple interfaces are available.
> ---------------------------------------------------------------------------------
>
> Key: FTPSERVER-51
> URL: http://issues.apache.org/jira/browse/FTPSERVER-51
> Project: FtpServer
> Issue Type: Bug
> Reporter: Joseph Ferner
> Assigned To: Niklas Gustavsson
> Attachments: fix.patch
>
>
> If the FTP server has multiple NIC interfaces and the "config.data-connection.passive.address" configuration parameter is not set the server will return the first IP address found on the server and not the IP address of the established communications.
> Setting "config.data-connection.passive.address" is not a good solution because then the FTP server cannot listen on multiple IP addresses.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira