From:             wolkove at biz-link dot com
Operating system: FreeBSD 4.8
PHP version:      4.3.8
PHP Bug Type:     FTP related
Bug description:  Problems with passive mode

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 bug report at http://bugs.php.net/?id=31907&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31907&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31907&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31907&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31907&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31907&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31907&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31907&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31907&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31907&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31907&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31907&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31907&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31907&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31907&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31907&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31907&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31907&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31907&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31907&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31907&r=mysqlcfg

Reply via email to