Bug 134541 - vsftpd with ipv6 refuses ipv4 "PORT" mode
Summary: vsftpd with ipv6 refuses ipv4 "PORT" mode
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: vsftpd
Version: rawhide
Hardware: i686
OS: Linux
medium
high
Target Milestone: ---
Assignee: Radek Vokál
QA Contact: Mike McLean
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-04 15:11 UTC by Russell King
Modified: 2007-11-30 22:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-23 08:23:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Russell King 2004-10-04 15:11:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3)
Gecko/20040913

Description of problem:
Requesting a "PORT" mode data transfer results in commands being
aborted with "425 Failed to establish connection".

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

How reproducible:
Always

Steps to Reproduce:
1.ftp zeniv.linux.org.uk
2.login with ftp, password <email>
3.ensure passive mode is off
4.'ls'
    

Actual Results:  200 PORT command successful. Consider using PASV.
425 Failed to establish connection.


Expected Results:  directory listing should be reproduced

Additional info:

The problem appears to be that the "ftpsecure" part of vsftpd is
allocating an IPv6 socket, and handing that socket to the standard
part of vsftpd.  This then tries to connect() the IPv6 socket using an
AF_INET address rather than AF_INET6 address, which the kernel rejects.

Please note that I'm getting a number of bugs reports about this from
people using the service, and even one case where they can't access
the site due to a combination of this problem and their local setup
preventing passive mode.

Comment 1 Russell King 2004-10-05 13:35:11 UTC
vsftpd 2.0.1-2 also exhibits this problem. (fc-2.91 version)

Comment 2 Joe Orton 2005-01-02 12:37:36 UTC
Likewise the current FC3 package, vsftpd-2.0.1-5.

Comment 3 Chris Evans 2005-03-05 22:46:41 UTC
Clearing my vsftpd bug queue backlog... working on it...


Comment 4 Chris Evans 2005-03-12 23:04:33 UTC
Should be fixed here:
ftp://vsftpd.beasts.org/users/cevans/vsftpd-2.0.3pre2.tar.gz


Comment 5 Radek Vokál 2005-03-14 12:18:34 UTC
I've put rpms of this prerelease on my personal web page, they should
be found here. 

http://people.redhat.com/rvokal/vsftpd/2.0.3-pre2/

Chris, thanks a lot .. 

Comment 6 Radek Vokál 2005-03-23 08:23:51 UTC
vsftpd-2.0.3 is now in devel tree. 


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