php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31907 Problems with passive mode
Submitted: 2005-02-09 20:56 UTC Modified: 2005-03-03 01:00 UTC
From: wolkove at biz-link dot com Assigned:
Status: No Feedback Package: FTP related
PHP Version: 4.3.8 OS: FreeBSD 4.8
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wolkove at biz-link dot com
New email:
PHP Version: OS:

 

 [2005-02-09 20:56 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-03 01:00 UTC] php-bugs at lists dot php dot net
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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC