From owner-freebsd-questions@FreeBSD.ORG Thu Feb 9 12:30:36 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8775A16A433 for ; Thu, 9 Feb 2006 12:30:36 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id D953943DFB for ; Thu, 9 Feb 2006 12:30:15 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 0500F5D0E; Thu, 9 Feb 2006 07:30:15 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 58608-04; Thu, 9 Feb 2006 07:30:14 -0500 (EST) Received: from [192.168.1.3] (pool-68-161-67-226.ny325.east.verizon.net [68.161.67.226]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id E3C605C28; Thu, 9 Feb 2006 07:30:13 -0500 (EST) Message-ID: <43EB35D9.8040409@mac.com> Date: Thu, 09 Feb 2006 07:30:17 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: andrew clarke References: <20060209084833.GA26877@ozzmosis.com> In-Reply-To: <20060209084833.GA26877@ozzmosis.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: freebsd-questions@freebsd.org Subject: Re: fine grained firewall? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2006 12:30:36 -0000 andrew clarke wrote: > Is it possible to configure the FreeBSD firewall to block ports on a > per-user or per-executable basis? > > eg. > > - Block /usr/local/bin/irc from connecting to TCP port 6667 > > - Block user 'johnsmith' from connecting to TCP port 21 Yes to users (if the connections originate from the firewall box), no to per-executables. The latter seems useless when "cp irc myirc" is all it would take to defeat it. Frankly, neither option is very useful or would be needed for a good ruleset... -- -Chuck