From issues-return-17449-apmail-commons-issues-archive=commons.apache.org@commons.apache.org Fri Mar 04 23:13:12 2011 Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 29204 invoked from network); 4 Mar 2011 23:13:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Mar 2011 23:13:11 -0000 Received: (qmail 81049 invoked by uid 500); 4 Mar 2011 23:13:11 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 80975 invoked by uid 500); 4 Mar 2011 23:13:11 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 80967 invoked by uid 99); 4 Mar 2011 23:13:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 23:13:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Mar 2011 23:13:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4774855652 for ; Fri, 4 Mar 2011 23:12:47 +0000 (UTC) Date: Fri, 4 Mar 2011 23:12:47 +0000 (UTC) From: "daniel damon (JIRA)" To: issues@commons.apache.org Message-ID: <563974007.287.1299280367289.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (NET-363) Can't connect to a server behind firewall in passive mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org Can't connect to a server behind firewall in passive mode --------------------------------------------------------- Key: NET-363 URL: https://issues.apache.org/jira/browse/NET-363 Project: Commons Net Issue Type: Bug Components: FTP Affects Versions: 2.2 Environment: Windows Client with Zos mainframe server behind a firewall. However I think any client/server will demonstrate the issue as long as the server is behind a firewall. Reporter: daniel damon Priority: Blocker When the FTP server is behind a firewall, FTPClient can connect, but it cannot transfer data. This is because the FTP server provides it's own address instead of the firewall address to make the connection. I have confirmed the problem by hacking a copy of FTPClient to set the __passiveHost to the appropriate internet address. With this hack, I can transfer data. Perhaps the FTP server could be configured differently to fix the issue. Unfortunately, I do not have access to the server configuration. I do know that the commercial product IpswitchFtp does deal with the issue as this extract from it's log shows: ------------ PASV 227 Entering Passive Mode (192,168,13,11,195,129) connecting data channel to 192.168.13.11:195,129(50049) Substituting connection address 159.106.121.79 for private address 192.168.13.11 from PASV data channel connected to 159.106.121.79:195,129(50049) LIST 125 List started OK transferred 4157 bytes in 0.078 seconds, 425.688 kbps ( 53.211 kBps), transfer succeeded. 250 List completed successfully. QUIT ---------------------------- I can take a shot at a fix if you want. I'll set some timeout, and if that fails, I'll use the original address -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira