Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-05-2008, 04:05 AM   #1
LQ Newbie
Registered: May 2008
Posts: 6

Rep: Reputation: 0
cannot connect vsftpd from computer client

dear all,

My name is djunaedi i'm from indonesia, i'll try to build public ftp use
vsftpd. i followed manual installation from Its work but
only in my localhost (server) when i try to connected from computer client
use dos command :

ftp> o
connected to
connection closed by remote host.

what should i do ? where is the mistakes ?.For u'r information i used Fedora Core 5.
Old 06-05-2008, 05:24 AM   #2
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
Are you able to ftp from your own machine(running vsftpd service) itself?

It seems that you are blocked by TCP WRAPPERS, as it does not ask you to even enter the username and password. Check /etc/hosts.deny file.(assuming your vsftpd service is running well and not having any firewall issue.)


You can test by temporarily shutting down the firewall and then login, to dignose if the problem is with firewall or not.


Old 06-06-2008, 01:47 AM   #3
LQ Newbie
Registered: May 2008
Posts: 6

Original Poster
Rep: Reputation: 0
yes, i can ftp from my machine and i didn't give any comment in /etc/hosts.deny, i hv been accept port 21 in iptables. when i install FC 5 i was enabled firewall to ftp.
Old 06-06-2008, 03:33 AM   #4
Registered: Mar 2007
Posts: 100

Rep: Reputation: 17
In that case, it seems your firewall is misconfigured... you have to configure firewall to accept incoming/outgoing traffic to both channels (command and data). For that you need to consider which mode your ftp server is running in... that is "active" or "passive". By default vsftpd works in passive mode.

Allow incoming connection from client on port 21,


for passive mode --- > you need to also allow any incoming connection from client having arbitrary source port > 1024 and destination port > 1024.

for active mode ----> allow any outgoing traffic from the server having source port 20.

Hope this works....

I also have read that using packet states like RELATED, ESTABLISHED we can sort this issue but have not been successful so far....

See u..........
Old 06-06-2008, 04:06 AM   #5
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Fedora Core 5 is getting a bit dated. Since you are offering a service on the internet, it is very important to keep the server up to date with security updates, so using a version where security updates are supported is very important.

Check the server's logs. A rejected connection will probably be logged by whatever denied the access. If your firewall drops packets rather than rejecting them, that may be further evidence that the solution is somewhere else.
Old 06-09-2008, 01:33 AM   #6
LQ Newbie
Registered: May 2008
Posts: 6

Original Poster
Rep: Reputation: 0
thank for u'r advice to using a new version. Back to my problem how to check the server log, sorry if my question so ridiculous. i'm still newbie in linux programing.


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
vsftpd - client hangs trying to LIST badbunny Linux - Networking 7 10-26-2007 08:39 AM
ubuntu client to connect to vsftpd server icga Linux - Software 7 02-08-2006 08:22 PM
ProFTPd ... FTP client fails to connect: timeout after client sends 'LIST' nutnut Linux - Software 2 01-01-2006 08:09 PM
can not connect to my pureftp server from Linux client, but i can from windows client bonito SUSE / openSUSE 5 03-16-2005 10:45 PM
vsftpd client commands??? blizunt7 Linux - Networking 9 10-08-2004 04:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:08 PM.

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