telnet/ftp connection damn slow

telnet/ftp connection damn slow

Post by bill wal » Mon, 04 Oct 1999 04:00:00



hey guys..

I'm running into a problem with my linux box, when I connect to the
machine via ftp or telnet, it sits there for a while until it
connects.. once it connects it's pretty fast, but the connect wait
time is driving me mad.. the wait time is even long if I just telnet
to my SMTP port.. I'm running Apache on it as well, and there is no
wait time when I pull up the web pages from that machine..

I'm running Red Hat 5.2 and 6.1 with the corresponding versions of
wu-ftpd and anonftp..

 
 
 

telnet/ftp connection damn slow

Post by Tom Easte » Mon, 04 Oct 1999 04:00:00



> hey guys..

> I'm running into a problem with my linux box, when I connect to the
> machine via ftp or telnet, it sits there for a while until it
> connects.. once it connects it's pretty fast, but the connect wait
> time is driving me mad.. the wait time is even long if I just telnet
> to my SMTP port.. I'm running Apache on it as well, and there is no
> wait time when I pull up the web pages from that machine..

> I'm running Red Hat 5.2 and 6.1 with the corresponding versions of
> wu-ftpd and anonftp..

This is usually caused by failing to define the client machines in
either DNS or your Linux box's /etc/hosts file.

-Tom
--
Tom Eastep               \    Opinions expressed here

Shoreline, Washington USA  \    those of my employer


 
 
 

telnet/ftp connection damn slow

Post by Troutm » Mon, 04 Oct 1999 04:00:00


It is likely ident.  It is trying to get ident from your machine, and it
isn't getting it....maybe....


Quote:

>hey guys..

>I'm running into a problem with my linux box, when I connect to the
>machine via ftp or telnet, it sits there for a while until it
>connects.. once it connects it's pretty fast, but the connect wait
>time is driving me mad.. the wait time is even long if I just telnet
>to my SMTP port.. I'm running Apache on it as well, and there is no
>wait time when I pull up the web pages from that machine..

>I'm running Red Hat 5.2 and 6.1 with the corresponding versions of
>wu-ftpd and anonftp..

 
 
 

telnet/ftp connection damn slow

Post by Serge Tense » Tue, 05 Oct 1999 04:00:00


I just had the same problem and found out that put a # in front of any
nameserver in /etc/resolv.conf made react all network services act faster. I
suppose Linux first tries to resolve the the hostname(s) of requesting PC(s)
by consulting the nameservers (ISP in my case). When not connected to the
ISP blah, blah blah etc. I think you know the rest. Good luck.

Serge Tensen


Quote:

> hey guys..

> I'm running into a problem with my linux box, when I connect to the
> machine via ftp or telnet, it sits there for a while until it
> connects.. once it connects it's pretty fast, but the connect wait
> time is driving me mad.. the wait time is even long if I just telnet
> to my SMTP port.. I'm running Apache on it as well, and there is no
> wait time when I pull up the web pages from that machine..

> I'm running Red Hat 5.2 and 6.1 with the corresponding versions of
> wu-ftpd and anonftp..

 
 
 

telnet/ftp connection damn slow

Post by Chris Fairm » Tue, 05 Oct 1999 04:00:00


Tom Eastep is absolutly right

Serge Tensen and Troutman are way off base... well, Serge has a work around,
but your system will not be very usable after his suggestion....

Only reason why I am posting this is becuase I thought Tom Easteps explination
needed just a little bit more clarification....

To fix your problem, you need to completly setup all computers in your
/etc/hosts file (not partially). Make sure that the hosts file has not only the
IP, and Local Name of a computer on your internal network, BUT it also must
appear with the DOMAIN NAME

Example:

127.0.0.1       localhost       localhost.localdomain
10.100.100.1    newbie          

THIS IS BAD!!!!

127.0.0.1       localhost       localhost.localdomain
10.100.100.1    newbie          newbie.newbiencentral.org

THIS IS GOOD!!! Especially if u plan on ftp'ing or telneting to newbie.

adding the name.domain to the hosts file will indeed correct your problem and
ur ftp and telnet connections will again be zippy!

I just ran into the same problem and although commenting the nameserver out of
ur resolv.conf file with speed things up, it doesn't REALY fix things, becuase
then u won't be able to resolve names to IP address and then where would you
be?! Back at square one again with a DNS server, but a long wait to telnet or
ftp to your linux box :)

Cheers!
-Chris


Quote:

>hey guys..

>I'm running into a problem with my linux box, when I connect to the
>machine via ftp or telnet, it sits there for a while until it
>connects.. once it connects it's pretty fast, but the connect wait
>time is driving me mad.. the wait time is even long if I just telnet
>to my SMTP port.. I'm running Apache on it as well, and there is no
>wait time when I pull up the web pages from that machine..

>I'm running Red Hat 5.2 and 6.1 with the corresponding versions of
>wu-ftpd and anonftp..

 
 
 

telnet/ftp connection damn slow

Post by Troutm » Tue, 05 Oct 1999 04:00:00



Quote:>Tom Eastep is absolutly right

>Serge Tensen and Troutman are way off base... well, Serge has a work
>around, but your system will not be very usable after his suggestion....

Hey now Fairman...without sufficient info, it _could_ be the ident issue.  
That slows the connection down w/o a response.  If these people would just
generate me a username / password and send me an IP, I'd be _happy_ to
help more ;-)
 
 
 

telnet/ftp connection damn slow

Post by Rober » Mon, 08 Nov 1999 04:00:00



I have the same problem in my WinNt domain. My Linux box wait a while
before answering to a telnet/ftp request.
Is there a way to speed-up it without manually fill the etc/hosts
file?
I have more than 60 pc in the net!!!
TIA

Roberto

 
 
 

telnet/ftp connection damn slow

Post by Alex Burg » Sun, 14 Nov 1999 04:00:00


Make a host file that looks something like (depending on your IP addresses):

192.168.1.1     pc-192-168-1-1
192.168.1.2     pc-192-168-1-2
192.168.1.3     pc-192-168-1-3
192.168.1.4     pc-192-168-1-4
192.168.1.5     pc-192-168-1-5

Of course the host names won't match exactly, but it will speed things up and
it should take no more than 5 minutes to create that host file.  Just cut and
past, cut and past etc. etc.

Alex


says...


>I have the same problem in my WinNt domain. My Linux box wait a while
>before answering to a telnet/ftp request.
>Is there a way to speed-up it without manually fill the etc/hosts
>file?
>I have more than 60 pc in the net!!!
>TIA

>Roberto