All of lore.kernel.org
 help / color / mirror / Atom feed
* ftp long time connection
@ 2002-02-19 17:06 Lonnie Cumberland
  2002-02-19 17:51 ` Justin Smith
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Lonnie Cumberland @ 2002-02-19 17:06 UTC (permalink / raw)
  To: SELinux

Hello All,

I have my systems behind a firewall and am using ftp for a specific
project.

The problem is that when I try to connect to my SELinux server from
another Linux client that it takes about 2 - 3 minutes. I have even
tried to give the IP instead of the host name and it still take this
long time as well.

Any ideas on how to fix this would be greatly appreciated,
Cheers,
Lonnie

-- 
 Lonnie Cumberland
 OutStep Technologies Incorporated
 (313) 832-7366

 URL: http://www.outstep.com
 EMAIL: Lonnie@OutStep.com
      : Lonnie_Cumberland@yahoo.com




--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: ftp long time connection
@ 2002-02-19 19:55 Flood Randy Capt AFCA/TCAA
  2002-02-20 14:39 ` Ben McGinnes
  0 siblings, 1 reply; 11+ messages in thread
From: Flood Randy Capt AFCA/TCAA @ 2002-02-19 19:55 UTC (permalink / raw)
  To: SELinux


Do you have reverse DNS entries for your server and client and is DNS configured correctly?

If DNS is not set up properly you can get results like that.


-----Original Message-----
From: Justin Smith [mailto:jsmith@mcs.drexel.edu]
Sent: Tuesday, February 19, 2002 11:52 AM
To: SELinux@tycho.nsa.gov
Subject: Re: ftp long time connection


On Tue, 2002-02-19 at 12:06, Lonnie Cumberland wrote:
> The problem is that when I try to connect to my SELinux server from
> another Linux client that it takes about 2 - 3 minutes. I have even
> tried to give the IP instead of the host name and it still take this
> long time as well.
> 
>

Strange! I'd be inclined to think it has nothing to do with SELinux. I'm
running a web server with Servlets and JSP (the URL is 
http://vorpal.mcs.drexel.edu
) and haven't noticed any increase in access time. My web server is very
active, too (my students take exams via fill-out forms).

-- 


--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: ftp long time connection
@ 2002-02-20 14:55 Flood Randy Capt AFCA/TCAA
  2002-02-21  2:40 ` Ben McGinnes
  0 siblings, 1 reply; 11+ messages in thread
From: Flood Randy Capt AFCA/TCAA @ 2002-02-20 14:55 UTC (permalink / raw)
  To: selinux


Actually, even if you ftp or telnet to a machine using its ip address,
often times the client will nslookup the ip address.  Likewise, the
server will often do a reverse lookup on the client (for logging
purposes).  I have also seen this sort of behavior if you use host names
rather than ip addresses in /etc/hosts.allow and /etc/hosts.deny.  Try
fixing DNS and then see if you still have the problem.

   

-----Original Message-----
From: Ben McGinnes [mailto:ben-mcginnes@iname.com]
Sent: Wednesday, February 20, 2002 8:39 AM
To: selinux@tycho.nsa.gov
Cc: Flood Randy Capt AFCA/TCAA; Lonnie Cumberland
Subject: Re: ftp long time connection


Flood Randy Capt AFCA/TCAA(randy.flood@scott.af.mil)@Tue, Feb 19, 2002
at 01:55:17PM -0600:
> 
> Do you have reverse DNS entries for your server and client and is DNS
> configured correctly?
> 
> If DNS is not set up properly you can get results like that.

True, DNS errors will do that, as others here have pointed out.  The
original query, however, also mentioned that accessing the host directly
by its IP was attempted with the same results.  So while there may be
some 
DNS-related delays as well, it cannot be a complete explanation.  I also

doubt SE Linux is the cause here either since it's a fairly generic kind

of problem.

I'd try attempting other protocols such as SSH, telnet (if enabled),
SMTP 
and probably SCP too.  To both hostname and IP address.  See if it is 
affecting all protocols or just one or two, also try telnetting to the 
machine on port 21 and see exactly what point at which it slows to a
crawl 
or breaks.

Chances are the cause (and shortly thereafter, the solution) will leap
out 
during this process.


Regards,
Ben

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 11+ messages in thread
* RE: ftp long time connection
@ 2002-02-20 15:00 Walker, Jason
  0 siblings, 0 replies; 11+ messages in thread
From: Walker, Jason @ 2002-02-20 15:00 UTC (permalink / raw)
  To: 'Ben McGinnes', selinux
  Cc: Flood Randy Capt AFCA/TCAA, Lonnie Cumberland

I think that the DNS configuration will affect ftp connections, even if the
client is trying to FTP to the IP address of the server.  

What they're talking about is the reverse DNS lookup, where the SERVER does
a reverse lookup on the address of the CLIENT to see who's trying to
connect, for logging and authentication purposes.  If the Server doesn't
know the name associated with the Client IP address, it will take some extra
time before the server gives up and simply logs the client IP address
instead of hostname.

Make sure that the client system is listed in DNS, that the server is using
the appropriate DNS server, or that the server has a HOSTS file listing the
client.  From the server, try doing an nslookup against the client IP
address and see if it correctly returns the client name.

Jason Walker
Lockheed Martin CSOC
(281) 218-2569


-----Original Message-----
From: Ben McGinnes [mailto:ben-mcginnes@iname.com]
Sent: Wednesday, February 20, 2002 8:39 AM
To: selinux@tycho.nsa.gov
Cc: Flood Randy Capt AFCA/TCAA; Lonnie Cumberland
Subject: Re: ftp long time connection


Flood Randy Capt AFCA/TCAA(randy.flood@scott.af.mil)@Tue, Feb 19, 2002 at
01:55:17PM -0600:
> 
> Do you have reverse DNS entries for your server and client and is DNS
> configured correctly?
> 
> If DNS is not set up properly you can get results like that.

True, DNS errors will do that, as others here have pointed out.  The
original query, however, also mentioned that accessing the host directly
by its IP was attempted with the same results.  So while there may be some 
DNS-related delays as well, it cannot be a complete explanation.  I also 
doubt SE Linux is the cause here either since it's a fairly generic kind 
of problem.

I'd try attempting other protocols such as SSH, telnet (if enabled), SMTP 
and probably SCP too.  To both hostname and IP address.  See if it is 
affecting all protocols or just one or two, also try telnetting to the 
machine on port 21 and see exactly what point at which it slows to a crawl 
or breaks.

Chances are the cause (and shortly thereafter, the solution) will leap out 
during this process.


Regards,
Ben

--
You have received this message because you are subscribed to the selinux list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <Pine.GSO.4.33.0202201008250.9757-100000@raven>]

end of thread, other threads:[~2002-02-21  2:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-19 17:06 ftp long time connection Lonnie Cumberland
2002-02-19 17:51 ` Justin Smith
2002-02-19 19:40 ` George Fouse
2002-02-19 20:47 ` Hacko
2002-02-19 22:19 ` Noah silva
  -- strict thread matches above, loose matches on Subject: below --
2002-02-19 19:55 Flood Randy Capt AFCA/TCAA
2002-02-20 14:39 ` Ben McGinnes
2002-02-20 14:55 Flood Randy Capt AFCA/TCAA
2002-02-21  2:40 ` Ben McGinnes
2002-02-20 15:00 Walker, Jason
     [not found] <Pine.GSO.4.33.0202201008250.9757-100000@raven>
2002-02-20 16:03 ` Lonnie Cumberland

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.