Linux - NewbieThis 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!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My name is djunaedi i'm from indonesia, i'll try to build public ftp use
vsftpd. i followed manual installation from vsftpdrocks.org. Its work but
only in my localhost (server) when i try to connected from computer client
use dos command :
ftp> o 202.152.19.189
connected to 202.152.19.189
connection closed by remote host.
what should i do ? where is the mistakes ?.For u'r information i used Fedora Core 5.
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.)
or
You can test by temporarily shutting down the firewall and then login, to dignose if the problem is with firewall or not.
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.
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,
and
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....
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.