OpenVZ Forum


Home » General » Support » Ftp error
Ftp error [message #30283] Tue, 20 May 2008 02:06 Go to next message
winger is currently offline  winger
Messages: 11
Registered: June 2007
Location: Rio de Janeiro
Junior Member
hello,

we have a hardware node with two VZs, both are given this error when we try to connect with ftp:

Status: Connecting to xxx.xxx.xx.xxx ...
Status: Connected with xxx.xxx.xx.xxx Waiting for welcome message...
Response: 220 ProFTPD 1.3.1 Server ready.
Command: USER s5farol
Response: 331 Password required for s5farol
Command: PASS *****
Response: 230 User s5farol logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: PWD
Response: 257 "/" is the current directory
Command: TYPE A
Response: 200 Type set to A
Command: PASV
Response: 227 Entering Passive Mode (xxx.xxx.xx.xxx,139,44).
Command: LIST
Error: Transfer channel can't be opened.
Error: Could not retrieve directory listing

so the problem must be at the node.

any help to fix that?

thanks.
Re: Ftp error [message #30286 is a reply to message #30283] Tue, 20 May 2008 07:09 Go to previous messageGo to next message
imknight is currently offline  imknight
Messages: 15
Registered: January 2008
Junior Member
Try setting your ftp client to 'PORT' mode rather than PASV, if that works then its a firewall blocking the range used for the PASV ports.
Re: Ftp error [message #30292 is a reply to message #30286] Tue, 20 May 2008 12:07 Go to previous messageGo to next message
winger is currently offline  winger
Messages: 11
Registered: June 2007
Location: Rio de Janeiro
Junior Member
yes, that's it!

now I have to find why that...

whitch port PASV use?

thanks!
Re: Ftp error [message #30303 is a reply to message #30283] Tue, 20 May 2008 14:47 Go to previous messageGo to next message
imknight is currently offline  imknight
Messages: 15
Registered: January 2008
Junior Member
As your using proftpd look in /usr/local/etc/proftpd.conf (location may be different) and the lines you are looking for are something like this:

# Restrict the range of ports from which the server will select when sent the
# PASV command from a client. Use IANA-registered ephemeral port range of
# 49152-65534
PassivePorts 49152 65534


So basically you need to allow the ports listed above for passive transfers
Re: Ftp error [message #30313 is a reply to message #30303] Tue, 20 May 2008 21:44 Go to previous messageGo to next message
winger is currently offline  winger
Messages: 11
Registered: June 2007
Location: Rio de Janeiro
Junior Member
I found it:

ServerName "ProFTPd"
ServerType standalone

Port 21
PassivePorts 35000 35999
UseReverseDNS off
TimesGMT off
TimeoutLogin 120
TimeoutIdle 600
TimeoutNoTransfer 900
TimeoutStalled 3600


PassivePorts 35000 35999 means that we can choose one port form 35000 to 35999 or we must open all of then?

thank you!
Re: Ftp error [message #30314 is a reply to message #30283] Tue, 20 May 2008 21:59 Go to previous messageGo to next message
imknight is currently offline  imknight
Messages: 15
Registered: January 2008
Junior Member
All of them if you wish to allow passive transfers.
Re: Ftp error [message #30344 is a reply to message #30314] Thu, 22 May 2008 01:32 Go to previous message
winger is currently offline  winger
Messages: 11
Registered: June 2007
Location: Rio de Janeiro
Junior Member
now I got it.

thank you for help.
Previous Topic: Using veth device, why venet0 still generating?
Next Topic: /* solved */ kernel panic with megaraid_sas-v00.00.03.16-1 patch
Goto Forum:
  


Current Time: Sat May 18 03:48:28 GMT 2024

Total time taken to generate the page: 0.01485 seconds