From owner-freebsd-questions@FreeBSD.ORG Wed Jan 26 12:35:39 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6CCC16A4CE for ; Wed, 26 Jan 2005 12:35:39 +0000 (GMT) Received: from nagual.st (cc20684-a.assen1.dr.home.nl [217.122.132.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id E64E143D48 for ; Wed, 26 Jan 2005 12:35:38 +0000 (GMT) (envelope-from dick@nagual.st) Received: from localhost (localhost [127.0.0.1]) (uid 1000) by nagual.st with local; Wed, 26 Jan 2005 13:35:02 +0100 Date: Wed, 26 Jan 2005 13:35:02 +0100 To: freebsd-questions Message-ID: <20050126123502.GA632@lothlorien.nagual.st> References: <20050125213834.218bf53c.dick@nagual.st> <41F6BD55.7000501@locolomo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: <41F6BD55.7000501@locolomo.org> User-Agent: Mutt/1.4.2.1i From: Dick Hoogendijk Subject: Re: ipf rules for ftp server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Jan 2005 12:35:39 -0000 On 25 Jan Erik Norgaard wrote: > They are not right. > # ftp server - ftp session > pass in quick on rl0 proto tcp from any to 0/32 port = 21 flags S \ > keep state > # passive ftp-data > pass in quick on rl0 proto tcp from any to 0/32 port > 49151 flags S \ > keep state > # active ftp-data > pass out quick on rl0 proto tcp from 0/32 port = 20 to any flags S \ > keep state OK, thanks. It seems to work ;-) Now I can concentrate on ftp clients from inside the local network. People want to have ftp access from local clients. I think it's enough to add just one rule: pass out quick on rl0 proto tcp from any to any port = 21 flags S \ keep state I don't understand what the proxy rules mean, mentioned in the handbook in the chapter on ipf. I'm gonna google a little more on "ipf ftp clients" and maybe I have some luck :-) -- dick -- http://www.nagual.st/ -- PGP/GnuPG key: F86289CE ++ Running FreeBSD 4.10 ++ Debian GNU/Linux (Woody) + Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja