Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277439 - net-ftp/pure-ftpd fails to open data port: "500 I won't open a connection to 0.0.0.0"
Summary: net-ftp/pure-ftpd fails to open data port: "500 I won't open a connection to ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-11 14:49 UTC by John L. Poole
Modified: 2009-10-16 12:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge log (pure-ftpd_emerge.txt,52.57 KB, text/plain)
2009-07-11 14:50 UTC, John L. Poole
Details
configuration file as modified by me (pure-ftpd_configuration.txt,3.48 KB, text/plain)
2009-07-11 14:51 UTC, John L. Poole
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John L. Poole 2009-07-11 14:49:03 UTC
installed pure-ftpd 1.0.21-r1  When I connect, I can login however any request within the session that requires a data port results in error:

ftp> ls
500 I won't open a connection to 0.0.0.0 (only to 192.168.168.3)
425 No data connection

Reproducible: Always

Steps to Reproduce:
1. emerge pure-ftpd
2. /etc/init.d/pure-ftpd start
3. connect from remote machine and try a "ls" command

Actual Results:  
C:\Documents and Settings\jlpoole>ftp 192.168.168.20
Connected to 192.168.168.20.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 10 allowed.
220-Local time is now 07:40. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
User (192.168.168.20:(none)): jlpoole
331 User jlpoole OK. Password required
Password:
230-User jlpoole has group access to:  scanner  jlpoole  users    games
230- wheel
230 OK. Current restricted directory is /
ftp>


Expected Results:  
I should be able to see a listing of my current directory.

Attached is full emerge log and current configuration file.

Some research suggests that this problem may be something that arises from an AMD_64 platform.
Comment 1 John L. Poole 2009-07-11 14:50:08 UTC
Created attachment 197555 [details]
emerge log

capture of my emerge installation
Comment 2 John L. Poole 2009-07-11 14:51:49 UTC
Created attachment 197557 [details]
configuration file as modified by me

The configuration requires some modification before the server will operate.
Comment 3 John L. Poole 2009-07-11 14:53:09 UTC
I should note: the server is assigned to a fixed IP 192.168.168.20 and the Windows machine I'm connecting from is a fixed IP 192.168.168.3.
Comment 4 John L. Poole 2009-07-11 14:56:51 UTC
(In reply to comment #0)
> installed pure-ftpd 1.0.21-r1  When I connect, I can login however any request
> within the session that requires a data port results in error:
> 
> ftp> ls
> 500 I won't open a connection to 0.0.0.0 (only to 192.168.168.3)
> 425 No data connection
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge pure-ftpd
> 2. /etc/init.d/pure-ftpd start
> 3. connect from remote machine and try a "ls" command
> 
> Actual Results:  
> C:\Documents and Settings\jlpoole>ftp 192.168.168.20
> Connected to 192.168.168.20.
> 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
> 220-You are user number 1 of 10 allowed.
> 220-Local time is now 07:40. Server port: 21.
> 220-This is a private system - No anonymous login
> 220-IPv6 connections are also welcome on this server.
> 220 You will be disconnected after 15 minutes of inactivity.
> User (192.168.168.20:(none)): jlpoole
> 331 User jlpoole OK. Password required
> Password:
> 230-User jlpoole has group access to:  scanner  jlpoole  users    games
> 230- wheel
> 230 OK. Current restricted directory is /
> ftp> ls
> 500 I won't open a connection to 0.0.0.0 (only to 192.168.168.3)
> 425 No data connection
> ftp> bye
> 
> 
> Expected Results:  
> I should be able to see a listing of my current directory.
> 
> Attached is full emerge log and current configuration file.
> 
> Some research suggests that this problem may be something that arises from an
> AMD_64 platform.
> 

Comment 5 John L. Poole 2009-07-11 15:01:39 UTC
My comment above is basically the description with the text added:

ftp> ls
500 I won't open a connection to 0.0.0.0 (only to 192.168.168.3)
425 No data connection
ftp> bye


I thought I was editing the description rather than appending a comment, so I added the previous text marker ">".  I guess I cannot edit a description unlike another Bug database I work with often.  Sorry for the confusion and wordiness.
Comment 6 Adrian 2009-09-14 00:28:28 UTC
Looks like it doesn't detect the source IP correctly. I tried enabling FXP and it tried to fxp between <serverip> and 0.0.0.0.
Comment 7 Bernard Cafarelli gentoo-dev 2009-10-16 12:44:20 UTC
From bug #243290 this should be fixed with 1.0.22, which I've just added to tree. If not, don't hesitate to reopen this bug!