linux and vsftp

Dear Sir/Madam:

Redhat enterprise linux ver 5.0 working as ftp server (vsftp) untill now it was working fine but now when connected with the ftp server taking more time for the login , iam connecting from my lan only following is the message from the clinet ftp application:

STATUS:>      Socket connected. Waiting for welcome message...
      220 (vsFTPd 2.0.5)
STATUS:>      Connected. Authenticating...
COMMAND:>      USER raj
      331 Please specify the password.
COMMAND:>      PASS ********


the above message will be there for 05 minutes an then login happens , please help me to solve this
D_wathiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

omarfaridCommented:
Can you check if:

- The server is loaded (CPU, Mem, etc - run top command)?
- The network interface is mis configured or there is a problem with network cable / network port.
- If you are doing reverse lookup for connecting IP addresses.

 
0
ibu1System AdministratorCommented:
Do you have two network card ?Enable the local area network and check if if solves.
:)
0
D_wathiAuthor Commented:
sir i checked all the network settings and i have  4gb of ram also two processor and not much of load on the server ,

the same linux server is working as a squid , squid is working fine but the problem only wih the ftp connections very much slow  from my lan itself

2. i tried restarting the vsftpd but still the same problem can you please help me ont his
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

omarfaridCommented:
If you login to the server and  ftp locally:

ftp 0

Do you face the same slowness?
0
D_wathiAuthor Commented:
sir if logged in locally it gets connected fast
0
omarfaridCommented:
When you connect from a pc on the same network, do you see the slowness while logging in only or while downloading the files?

If during login to ftp server, then it could be the reverse lookup of your IP.

0
D_wathiAuthor Commented:
yes sir when i try to connect from the same network very much slow to login but onle logged in upload and download has no problems it happens as before faster , problem is while connecting it takes more time 05 minutes to login , this is in the same network
0
omarfaridCommented:
I think you need to have reverse lookup (IP address to FQDN - Fully Qualified Domain Name - mapping) for your pcs IPs. This can be done in creating reverse lookup zone in DNS (PTR records) server.

Or you may do the following:

1- add all pcs IPs and hostnames to /etc/hosts on the ftp server
2- change the following entry in /etc/nsswitch.conf

hosts:      files dns

0
D_wathiAuthor Commented:
Okay sir but from past 05 moths it was working fine this slowness started from today afternoon
0
omarfaridCommented:
Any changes to your system? Any changes in DNS?
0
D_wathiAuthor Commented:
Sir, in the evening everthing worked fine without the problem i mean faster connection able to login immediately but now aga the same problem slowness in connecting ,

please tell me how to increase the maximum connection for the ftp users , so that conurrently many users can login
0
D_wathiAuthor Commented:
DNS is working fine that is when nslookup works with name and ip but the ftp slow login sloveld but adding the ip in the /etc/hosts
please tell me dns is working but still why the entry required in the /etc/hosts

0
omarfaridCommented:
When you connect to the system via telnet, ssh, ftp (and similar connections) where login is logged, the system will try to convert the incoming IP address to a name. This is called reverse lookup. If your system is configured to use DNS then the reverse lookup query goes to the dns server which try to reply to it from the local data it has or via queries to other dns servers. In may cases reverse lookup zones are not created / configured.

What we did here, is asked the system to look for such info in /etc/hosts file before doing to dns server. So, when you add  ip and host name for your IP address (from where you connect) the reverse lookup is served from /etc/hosts file and login become fast.

 
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
D_wathiAuthor Commented:
Thank you so much for the reply , sir but even without adding the ip and hostname in the /etc/hosts the login should be faster because the dns is working fine , mapping of the ip and hostname should happen with the DNS , i was thinking dns is good solution than the /etc/hosts
0
omarfaridCommented:
DNS is working fine, but with DNS you have forward resolution which is FQDN (Fully Qualified Domain Name) to IP and reverse forward which is IP to FQDN.

If the DNS server is configured for reverse lookup of your IPs (these are PTR records in their own zone), then it will answer quickly to your queries, otherwise it will search with other dns servers which takes time.

Please see link below:

http://en.wikipedia.org/wiki/Reverse_DNS_lookup
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.