From owner-freebsd-pf@FreeBSD.ORG Thu Oct 12 12:47:06 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E9FA16A4C9 for ; Thu, 12 Oct 2006 12:47:06 +0000 (UTC) (envelope-from volker@vwsoft.com) Received: from frontmail.ipactive.de (frontmail.ipactive.de [85.214.39.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27FCF43D55 for ; Thu, 12 Oct 2006 12:47:03 +0000 (GMT) (envelope-from volker@vwsoft.com) Received: from mail.vtec.ipme.de (gprs-pool-1-016.eplus-online.de [212.23.126.16]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by frontmail.ipactive.de (Postfix) with ESMTP id 00F3A33D3A for ; Thu, 12 Oct 2006 14:46:54 +0200 (CEST) Received: from [192.168.16.3] (cesar.sz.vwsoft.com [192.168.16.3]) by mail.vtec.ipme.de (Postfix) with ESMTP id E82512E557; Thu, 12 Oct 2006 14:46:18 +0200 (CEST) Message-ID: <452E392E.9030007@vwsoft.com> Date: Thu, 12 Oct 2006 14:46:38 +0200 From: Volker User-Agent: Thunderbird 1.5.0.7 (X11/20060915) MIME-Version: 1.0 To: Jon Otterholm References: <452D081A.9090603@ide.resurscentrum.se> In-Reply-To: <452D081A.9090603@ide.resurscentrum.se> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-VWSoft-MailScanner: Found to be clean X-MailScanner-From: volker@vwsoft.com X-ipactive-MailScanner-Information: Please contact the ISP for more information X-ipactive-MailScanner: Found to be clean X-ipactive-MailScanner-From: volker@vwsoft.com Cc: freebsd-pf@freebsd.org Subject: Re: table persist 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: Thu, 12 Oct 2006 12:47:06 -0000 On 12/23/-58 20:59, Jon Otterholm wrote: >
Hi. > > I have a table in my pf.conf: > > table persist file "/etc/pf/commit" > > When I add IP's to the table nothing gets into the file even though they > are listed in the table. > > Any thoughts? > > Info: > > su-2.05b# uname -a > FreeBSD host.domain.se 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #2: Fri Sep > 15 13:26:01 CEST 2006 user@:/usr/obj/usr/src/sys/GENERIC i386 > > su-2.05b# pfctl -t commit -T sh > No ALTQ support in kernel > ALTQ related functions disabled > XXX.XXX.XX.228 > XXX.XXX.XX.229 > XXX.XXX.XX.232 > XXX.XXX.XX.233 > XXX.XXX.XX.234 > XXX.XXX.XX.236 > XXX.XXX.XX.237 > > su-2.05b# cat /etc/pf/commit > > su-2.05b# ls -la /etc/pf/commit > -rwxrwxrwx 1 root wheel 0 Sep 26 11:06 /etc/pf/commit > > /Jon > >
Jon, you may use a command like: `pfctl -t commit -Ts > /path/to/tablefile' to write the contents of the table out to disk. HTH, Volker