From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: lawries@btinternet.com Newsgroups: gmane.os.tru64.managers Subject: UPDATE Strange FTP problem Date: Thu, 10 Apr 2003 14:15:38 +0100 (BST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <4399700.1049980538798.JavaMail.root@127.0.0.1> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1049980553 17382 80.91.224.249 (10 Apr 2003 13:15:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 10 Apr 2003 13:15:53 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Apr 10 15:15:49 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 193btp-0004VS-00 for ; Thu, 10 Apr 2003 15:15:29 +0200 Original-Received: (qmail 17777 invoked by uid 5); 10 Apr 2003 13:15:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 17743 invoked by uid 49493); 10 Apr 2003 13:15:48 -0000 Original-Received: from lawries@btinternet.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 0.483486 secs); 10 Apr 2003 13:15:48 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 10 Apr 2003 13:15:48 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HD400CEFQ6A0X@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Apr 2003 09:15:46 -0400 (EDT) Original-Received: from thorium.btinternet.com (thorium.btinternet.com [194.73.73.67]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HD4003N2Q639P@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 10 Apr 2003 09:15:40 -0400 (EDT) Original-Received: from mendelevium ([194.75.226.23]) by thorium.btinternet.com with esmtp (Exim 3.22 #8) id 193bty-0005kL-00 for tru64-unix-managers@ornl.gov; Thu, 10 Apr 2003 14:15:38 +0100 Original-Received: from 194.129.126.228 by mendelevium ([194.75.226.23]); Thu, 10 Apr 2003 14:15:38 +0100 (BST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: talk21.com WAS v2 Xref: main.gmane.org gmane.os.tru64.managers:3938 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3938 I have had no replies to this one yet but, The error message: 425 Can't build data connection: Connection refused. My investigations all point to a network issue relating to firewalls. One suggestion is to use passive FTP. You can try this the Tru64 ftpd supports passive mode FTP. The Tru64 FTP server chooses random high-numbered port for the return FTP-data connection, which thus can't be tunnelled, unless the client instructs the server to use PASV mode. As the Tru64 FTP server uses separate TCP connections for data transfer (which includes directory listings), on dynamically-negotiated ports. This would explain the irratic behaviour you have noted when useing a DOS FTP session. As FTP uses dynamic port allocation, it would only take for one closed port to be encountered to queer the session. When you establish a connection to an FTP server the actual port numbers used vary a great deal. There are two types of FTP connection and they are described below: Active FTP Operation: The active mode of operation is less secure than the passive mode. This mode of operation complicates the construction of firewalls, because the firewall must anticipate the connection from the FTP server back to the client program. The steps of this mode of operation are discussed below: The client opens a control channel (port 21) to the server and tells the server the port number to respond on. This port number is a randomly determined port greater than 1023. The server receives this information and sends the client an acknowledgement "OK" (ack). The client and server exchange commands on this control connection. When the user requests a directory listing or initiates the sending or receiving of a file, the client software sends a "PORT" command that includes a port number > 1023 that the client wishes the server to use for the data connection. The server then opens a data connection from port 20 to the client's port number, as provided to it in the "PORT" command. Passive FTP Operation: This mode of operation is assumed to be more secure because all the connections are being initiated from the client, so there is less chance that the connection will be compromised. The reason it is called passive is that the server performs a "passive open." The steps of this mode of operation are discussed below: In passive FTP, the client opens a control connection on port 21 to the server, and then requests passive mode through the use of the "PASV" command. The server agrees to this mode, and then selects a random port number (>1023). It supplies this port number to the client for data transfer. The client receives this information and opens a data channel to the server assigned port. The server receives the data and sends an "OK" (ack). You will need to allow connections that originate from the server on ports larger than 1024 (the dynamic ports for TCP/IP) to be allowed out. Note that for security, do not allow the reverse. Other ideas: Sounds like port 21 is open on a firewall, and port 20 is closed. You could try using the "sendport" ftp command which toggles the use of separate data connection for data exchange. You could try the "trace" ftp command which toggles packet tracing