From owner-freebsd-questions@FreeBSD.ORG Thu May 20 18:31:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D6E6106566C for ; Thu, 20 May 2010 18:31:36 +0000 (UTC) (envelope-from freebsd-security-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.48]) by mx1.freebsd.org (Postfix) with ESMTP id DC43B8FC12 for ; Thu, 20 May 2010 18:31:35 +0000 (UTC) Received: (qmail 10763 invoked from network); 20 May 2010 18:04:55 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 20 May 2010 18:04:54 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id CC5F35082F; Thu, 20 May 2010 14:04:53 -0400 (EDT) From: Lowell Gilbert To: freebsd-questions@freebsd.org References: <111263.90106.qm@web52308.mail.re2.yahoo.com> <44iq6i8v8s.fsf@be-well.ilk.org> Date: Thu, 20 May 2010 14:04:53 -0400 In-Reply-To: <44iq6i8v8s.fsf@be-well.ilk.org> (Lowell Gilbert's message of "Thu, 20 May 2010 11:10:11 -0400") Message-ID: <44eih68n5m.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: gahn Subject: Re: ftp passive mode X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 May 2010 18:31:36 -0000 Lowell Gilbert writes: > gahn writes: > >> I am behind firewall and only pass ftp sessions are allowed. With that, most ftp sessions of portupgrade would not be able to connect to remote FreeBSD sites. >> >> Could I reconfigure the my FreeBSD 7.3 in a way so that it would only start ftp sessions in PASV mode? > > That should already be the default; FETCH_ARGS should be set to "-ApRr" > in /etc/ports/Mk/bsd.port.mk (the 'p' option is what means "passive" > mode). It certainly works for me, and has for many years. You can test > by setting FTP_PASSIVE_MODE (to anything *except* "no") in the environment. And I notice that should already be set as well; it's part of the "default" class setting in /etc/login.conf.