Bug 104907 - passive address returns wrong IP
Summary: passive address returns wrong IP
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: wu-ftpd
Version: 7.2
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2003-09-23 14:28 UTC by Need Real Name
Modified: 2007-04-18 16:57 UTC (History)
0 users

Clone Of:
Last Closed: 2004-02-19 13:26:07 UTC

Attachments (Terms of Use)

Description Need Real Name 2003-09-23 14:28:25 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716

Description of problem:
There appears to be a problem with the passive address resolution in that it
always returns the "everybody else" address.  Here is a snippet from ftpaccess

passive address
passive address
passive address
passive ports  40000 40015

This ALWAYS returns, even when connecting from 192.168.100.X. 
E.g. from host

   ftp> ls
   227 Entering Passive Mode (66,180,108,10,156,76)

The logs correctly identify the connection as from
  Sep 23 08:14:58 split ftpd[4204]: ANONYMOUS FTP LOGIN FROM
     sherkhan.prinmath.com [], willem@prinmath.com
  Sep 23 08:19:08 split ftpd[4204]: FTP session closed

Commenting out the line has it return the right address (
but breaks connections from outside.

There are comments on the wu-ftpd-2.8 prerelease mailing list about errors in
the routevector code, which may be related:  See

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Add "passive address" lines to ftpaccess
2.One should be
3.One should be on your local network with different IP that
Connect with ftp from local network and do an 'ls'

Actual Results:  wu-ftpd will make a passive connection to the external IP

Expected Results:  Should make a passive connection to the internal IP

Additional info:  This appears to be a problem in all 2.6.2 versions.

Comment 1 Thomas Woerner 2004-02-19 13:26:07 UTC
Please use vsftpd, wu-ftpd is not maintained anymore.

Note You need to log in before you can comment on or make changes to this bug.