LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-19-2005, 03:54 PM   #1
LQ Newbie
Registered: Oct 2005
Posts: 2

Rep: Reputation: 0
vsftpd FTP server problems.

Hi all!

I've installed vsftpd FTP server and everything seems to work fine. No error is logged, but when I try to connect to my server with gFTP client the files that I've got in the user directory is not shown.
Here is the output of gFTP:
220 Welcome to FTP service of FTPServer.
USER nuno
331 Please specify the password.
PASS xxxx
230 Login successful.
215 UNIX Type: L8
200 Switching to Binary mode.
257 "/home/nuno"
227 Entering Passive Mode (197,25,121,95,168,8)

As you can see everything seems to work fine, but I can see the files of the directory.
I made made "chmod -R 777 /home/nuno" but even though it doesn't work.
Here is the output of ftp command running from remote machine:
root@gateway:~# ftp
Connected to
220 Welcome to FTP service of FTPServer.
Name ( nuno
331 Please specify the password.
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
-rwxr-xr-x 1 0 0 14 Oct 19 19:09 teste.txt
226 Directory send OK.
ftp> exit
221 Goodbye.

As you can see I've got one file in my home directory.
What could be wrong?
Here is my configuration:

# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)

Any help will be greatly appreciated!
Old 10-19-2005, 11:04 PM   #2
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
Hi, hope I am not leading you in the wrong direction....but make sure your client has PASV enabled and if behind a firewall you need to set high and low port ranges in /etc/vsftpd.conf(check docs for how to do this)and then let those ports through your firewall.
Old 10-20-2005, 12:38 PM   #3
LQ Newbie
Registered: Oct 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Hi all!!

Now I know where is the problem but I can't understand why.
The problem is my firewall that is blocking some kind of traffic.
I don't understand because I'm giving permissions to access port 21.
Here is my iptables rules:
iptables -A INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT
iptables -A INPUT -m state --state NEW -p udp --dport 21 -j ACCEPT

I used a sniffer to analyze the traffic and the client is not trying to access any other port. There's one exception, some packets seems to be redirect to upper ports (greater than 1024), I think it's the server that redirect this traffic.
If I stop iptables (allow everything) everything works well.
What could be the port that I shouldn't block?

My server is only listening on this ports: 37, 113, 21 and 22.

Any help would be greatly appreciated.

Nuno Paquete


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Choosing FTP server. proFTPd, vsFTPd, PureFTPd? ZiGiE Linux - Software 12 03-09-2015 01:56 PM
create ftp user for vsftpd server without home directory cccc Linux - Networking 2 07-30-2005 07:32 AM
FTP server help -Vsftpd BinkyFiz Linux - Software 0 02-28-2005 07:56 PM
FTP SERVER: Vsftpd Problems. swatward Linux - Software 2 01-23-2005 10:40 PM
FTP server statistics - vsftpd lazo Linux - Software 0 12-22-2004 10:33 AM

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration