From owner-freebsd-questions Sat Sep 29 22:45:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from creme-brulee.marcuscom.com (rdu57-28-046.nc.rr.com [66.57.28.46]) by hub.freebsd.org (Postfix) with ESMTP id 23B1337B405 for ; Sat, 29 Sep 2001 22:45:29 -0700 (PDT) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.11.6/8.11.6) with ESMTP id f8U5iiP88045; Sun, 30 Sep 2001 01:44:44 -0400 (EDT) (envelope-from marcus@marcuscom.com) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f8U5kQn29983; Sun, 30 Sep 2001 01:46:26 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Sun, 30 Sep 2001 01:46:25 -0400 (EDT) From: Joe Clarke To: Jim Freeze Cc: Nathan Mace , Subject: Re: How to get FTP working for 4.4R In-Reply-To: <20010930012122.A1187@rabbit.lxintn1.ky.home.com> Message-ID: <20010930014101.T29882-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 30 Sep 2001, Jim Freeze wrote: > Thanks for the help. > It turned out to be a firewall rule afterall. > > I now have in my ruleset the following: > > ${fwcmd} add pass tcp from any 20 to any 1024-65535 setup > ${fwcmd} add pass log tcp from any to any 21 in via ${oif} setup > > These two lines come before the divert rule: > > ${fwcmd} add divert natd all from any to any via ${natd_interface} > > > FTP now works, but, I cannot get a directory listing. > from the ftp> prompt, the dir command hangs indefinetely. > > pftp and ftp -p do the same thing. Both commands you're trying here do passive FTP. Have you tried using active FTP (i.e. ftp with no -p option, and typing passive at the FTP prompt to make sure passive is off)? I allow connections to ftp-data from outside the firewall for active FTP. Joe > > Does anyone know the how to get dir to work, either with > or without passive ftp. > > Thanks > > Jim > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message