Pure-FTP passive ports are not working

simisimis

Verified User
Joined
Mar 26, 2012
Messages
31
Location
Amsterdam
Hello,
Recently I installed another DA machine but this time I went with pure-ftpd instead of proftpd. But now when I create users and try to access ftp through filezilla I get:


Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is your current location
Command: TYPE I
Response: 200 TYPE is now 8-bit binary
Command: PASV
Response: 227 Entering Passive Mode (123,123,123,123,138,87)
Command: MLSD
Error: Connection timed out
Error: Failed to retrieve directory listing

If I set filezilla to active mode then I can connect, no problem. in /etc/init.d/pure-ftpd there're passive ports specified:

...
OPTIONS="-B -A -C 15 -E -H -k 95 -L 10000:8 -O stats:${LOG} -l puredb:${DB} -p 35000:35999 -u 100 -U 133:022 -w -Z"
OPTIONS="${OPTIONS} -Y 1 -J HIGH:MEDIUM:+TLSv1:!SSLv2:+SSLv3"
...

I see no pure-ftpd config file in the system. Tried googling on this forum, but did not really find a lot.

Should I edit /etc/init.d/iptables file manually? If yes what kind of rule it is missing?

Thanks guys for your help,

Looking forward for replies.
Wishes,
S.
 
Thank you for comment. I found the problem. It's not the server firewall. It's universities routers where I work blocking the access on passive mode. Cause I can get directory listing if I do that from the same subnet.
Sorry for the false alarm and thank you for reply, somehow I was pretty sure that pure-ftpd did not have passive mode enabled..
 
Or in other words; it's not your firewall; it's the university's firewall.

:)

Jeff
 
Back
Top