#31907 [Fbk->NoF]: Problems with passive mode
| From: | php-bugs at lists dot php dot net | Date: | Thu, 03 Mar 2005 00:00:09 +0000 |
| Subject: | #31907 [Fbk->NoF]: Problems with passive mode | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-74776@lists.php.net to get a copy of this message | ||
ID: 31907
Updated by: php-bugs@lists.php.net
Reported By: wolkove at biz-link dot com
-Status: Feedback
+Status: No Feedback
Bug Type: FTP related
Operating System: FreeBSD 4.8
PHP Version: 4.3.8
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2005-02-12 03:22:38] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2005-02-09 20:56:44] wolkove at biz-link dot com
Description:
------------
I have a reproducible problem using passive mode with a particular
remote server.
Initially I set passive mode using ftp_pasv($conn, true)
The function call returns false, indicating it could not set passive
mode.
Then I either continue with the transfer or (tried) setting passive
mode to false with ftp_pasv($conn, false) and then continuing the
transfer
The transfer fails in either case. The remote firewall reports the
following error in its logs:
Attack Info: ftp address mismatch: ip_src != command_src
message_info: Illegal port command (port = 0)
Somehow it seems PHP is getting confused by the apparent failure to set
passive mode and trying to use a PORT command to connect using an
illegal port = 0.
The failure to set passive mode is another mystery. When connecting
manually using the FreeBSD ftp client from the same machine or a
Windows client, the program has no trouble setting and using passive
mode.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31907&edit=1