Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1774418785 for ; Mon, 7 Dec 2015 21:59:26 +0000 (UTC) Received: (qmail 8402 invoked by uid 500); 7 Dec 2015 21:59:25 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 8283 invoked by uid 500); 7 Dec 2015 21:59:25 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 8271 invoked by uid 99); 7 Dec 2015 21:59:24 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 21:59:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 6C7CFC0295 for ; Mon, 7 Dec 2015 21:59:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.019 X-Spam-Level: X-Spam-Status: No, score=-0.019 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=zusammenkunft-net.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Xrg_q93FqoK2 for ; Mon, 7 Dec 2015 21:59:16 +0000 (UTC) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id BC891203A3 for ; Mon, 7 Dec 2015 21:59:15 +0000 (UTC) Received: by wmww144 with SMTP id w144so5552673wmw.0 for ; Mon, 07 Dec 2015 13:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zusammenkunft-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=Ji9yyHY1CKOChCyGYi7b9p6NbxzZ86vaXf2QzDDn6eg=; b=Q27Tqr/lPkCKupDNSH6DfbE6/f9Q9n4zLb86OKFx1o7/wiZbXTRXxomXA+ydtNZaTR pnegO+h4LW+LkzCB6S9YMckVU8bqOqT+0xW6/s42kAey/MIq7HCBmGk5Bo7Kk57zfnEu 4RNUHMeP6TaWH8yHjX8mFCB8hL0J3PxAe85uXtoT/mlOKj7swgMLb+iKJpmei1Gl+AlH i6b4zJ84fXY65LkpNId6jdNkrFgYHSshEECaTotFumSbgxmEuON9JjsRGeh1UQOmke7T bXiCGhgntV/yFP6zh19Aul8L/RjmkmlYe4iDuE+r60srG8gDnNdXQUZ2I0iGv2KGgLxT 26Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=Ji9yyHY1CKOChCyGYi7b9p6NbxzZ86vaXf2QzDDn6eg=; b=MVcey6Xpjl0f/CnXs3OKfOBSDQQjT1KZP0ug1RuuqUpsT0USkc8seTais/e7AvZJht UHAm/H7DCF1N8PiwT/VfQI2AjT5YVYO/gZeap6+zYuJqMzsuR5Wxn/F9gZnBfQ/VyISt s+SNVEiJDypa1USy78CcR7iNPXq48bcj9xEywgytnQb/bN4dvczTb5T7cmdWlNYvGC7Z 0bKq63aaaIrYkVMcW+xy243Z6tRU/2g39/I/9Yrdvc4qwTtWopFoIcWtaOfAeOcmP3EE 6Nq5huAdv6MykmORtieAmvnntYUvn0q2c/scKsHed7TS2/5HDwxuhE0RDgcYVHl1lXbb nDPA== X-Gm-Message-State: ALoCoQl56w1HV/PpKB+lej/Itsfu60Lbx3GYaTzwlEnRKnQWJKLjb7YjldQaBYZlY9UjfIXixk/OpfRyAHJgg3bfztqJa0m9tQ== X-Received: by 10.28.172.2 with SMTP id v2mr24295035wme.10.1449525255185; Mon, 07 Dec 2015 13:54:15 -0800 (PST) Received: from localhost (HSI-KBW-109-192-117-173.hsi6.kabel-badenwuerttemberg.de. [109.192.117.173]) by smtp.googlemail.com with ESMTPSA id e83sm501632wmc.23.2015.12.07.13.54.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Dec 2015 13:54:14 -0800 (PST) Date: Mon, 7 Dec 2015 22:54:25 +0100 From: Bernd Eckenfels To: Roger Membreno Cc: user@commons.apache.org, dev@commons.apache.org Subject: Re: [vfs] New Properties for FtpFileSystemConfigBuilder Message-ID: <20151207225425.00005300.ecki@zusammenkunft.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hello Roger, sounds useful to me. Do you plan to parse a string range ("1-100") or define a min and max property? Gruss Bernd Am Mon, 7 Dec 2015 13:26:35 -0800 schrieb Roger Membreno : > Hello Apache Community, how are you doing? > > We use Commons VFS in our FTP connection projects, and for a recent > project we only able to connect to our FTP site when using Passive > mode. If we used Active mode we could login to the FTP site but all > files in the directory did not exist and could not be accessed. > > Since our server is behind a firewall with NAT translation we > determined that the data connection could not be established even if > we opened up some ports on the firewall. We were able to connect to > the FTP site using a stanadalone FTPClient by setting the following > properties to match our NAT security settings: > setReportActiveExternalIPAddress() > client.setActivePortRange() > > With these properties set the PORT command issued by our client to > the FTP site will create a valid data connection. What I'd like to > do is submit a change via GitHub that does the following: > 1. Add "reportActiveExternalIPAddress" and "activePortRange" > properties to the class > org.apache.commons.vfs2.provider.ftp.FtpFileSystemConfigBuilder 2. > Ehance createConnection in > org.apache.commons.vfs2.provider.ftp.FtpClientFactory to read these > new FtpFileSystemConfigBuilder properties from the config instance > and set them on the FTPClient. > > Let me know if you have any questions. If you think this is a good > change I'll make a new issue in JIRA for this enhancement. I also > think that these changes could help resolve VFS-201 ( > https://issues.apache.org/jira/browse/VFS-201) > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org