From owner-freebsd-pf@FreeBSD.ORG Fri Sep 14 13:27:28 2012 Return-Path: Delivered-To: freebsd-pf@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4BC7C106564A for ; Fri, 14 Sep 2012 13:27:28 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.64.117]) by mx1.freebsd.org (Postfix) with ESMTP id 98E6B8FC08 for ; Fri, 14 Sep 2012 13:27:27 +0000 (UTC) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.14.5/8.14.5) with ESMTP id q8EDRPRC004661; Fri, 14 Sep 2012 17:27:25 +0400 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.14.5/8.14.5/Submit) id q8EDRPm9004660; Fri, 14 Sep 2012 17:27:25 +0400 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Fri, 14 Sep 2012 17:27:25 +0400 From: Gleb Smirnoff To: Olivier Cochard-Labb? Message-ID: <20120914132725.GG85604@FreeBSD.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-pf@FreeBSD.org Subject: Re: Patch for adding "options PF_DEFAULT_TO_DROP" to kernel configuration file X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Sep 2012 13:27:28 -0000 On Thu, Sep 13, 2012 at 11:26:48PM +0200, Olivier Cochard-Labb? wrote: O> Hi, O> here is a little patch (tested on FreeBSD 9.1-RC1) that add a new O> option to the kernel configuration file: O> options PF_DEFAULT_TO_DROP O> O> Without this option, with an empty pf.conf:šAll traffic are permit. O> With this option enabled, with an empty pf.conf: All traffic are O> dropped by default. O> O> If the attached file is removed, you can found the patch here: O> http://www.freebsd.org/cgi/query-pr.cgi?pr=171622 I'd appreciate if you re-submit your patch with: - update to the fresh head/, where pf has been moved to netpfil/pf - mentioning new option in pf(4) -- Totus tuus, Glebius.