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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
41 - 14 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Thu Apr 25 19:01:33 2024 UTC