From owner-freebsd-ports@FreeBSD.ORG Tue Dec 12 07:32:47 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 895CF16A4A7 for ; Tue, 12 Dec 2006 07:32:47 +0000 (UTC) (envelope-from lars@socruel.nu) Received: from gone.xs4all.nl (gone.xs4all.nl [213.84.247.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A68A43CC6 for ; Tue, 12 Dec 2006 07:31:20 +0000 (GMT) (envelope-from lars@socruel.nu) Received: from saturnus.intra.socruel.nu (saturnus.intra.socruel.nu [172.16.0.12]) by gone.xs4all.nl (Postfix) with ESMTP id AA22633C5F; Tue, 12 Dec 2006 08:32:40 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message Date: Tue, 12 Dec 2006 08:32:28 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <302F75DC2739FB43B236373398A8C59929A0@saturnus.intra.socruel.nu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Pfstat trouble, no data in database file Thread-Index: AccdYT9fd4nFgfq6QOqSpdMFGncHmAAXdVng From: "Lars Wittebrood" To: "Max Laier" , Cc: Subject: RE: Pfstat trouble, no data in database file X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2006 07:32:47 -0000 Thank you very much Max. The patch did the trick for me. Regards, Lars.=20 -----Original Message----- From: Max Laier [mailto:max@love2party.net]=20 Sent: Monday, December 11, 2006 9:10 PM To: freebsd-ports@freebsd.org Cc: Lars Wittebrood Subject: Re: Pfstat trouble, no data in database file On Monday 11 December 2006 20:29, Lars Wittebrood wrote: > Hello list, > > After some more troubleshooting I've come a step further. > > I have run the '/usr/local/bin/pfstat -q' command from a shell and=20 > found some problems with my /usr/local/etc/pfstat.conf file. After=20 > solving these problems I get the following message issueing the=20 > '/usr/local/bin/pfstat -q' command: > > root@servername etc # /usr/local/bin/pfstat -q > ioctl: DIOCGETALTQS: Operation not supported by device > pf_query: query_queues() failed > > I couldn't find anything usefull on these strings via Google. > > Any help is much appreciated. pfstat 2.2 seems to assume that ALTQ support is enabled in the kernel. =20 For now the only way to work around your problem seems to be to build a kernel with ALTQ support. Alternatively you can replace files/patch-pf.c in sysutils/pfstat with the attached and rebuild pfstat. > MTIA > > Cheers, > Lars. > > > _____________________________________________ > > From: Lars Wittebrood > > Sent: Sunday, December 10, 2006 9:51 PM > > To: 'freebsd-ports@freebsd.org' > > Subject: Pfstat trouble, no data in database file > > > > Hello list, > > > > I've installed and configure the Pfstat port on a FreeBSD 6.1=20 > > RELEASE system acting as a firewall based on PF. > > > > FreeBSD servername 6.1-RELEASE-p10 FreeBSD 6.1-RELEASE-p10 #0: Fri > > Nov 24 13:33:18 CET 2006 =20 > > root@servername:/usr/obj/usr/src/sys/ALPHA i386 > > > > The trouble I have is that I get no data at all in the Pfstat data=20 > > file! > > > > My Pfstat /etc/crontab entries > > # > > # Gather Pfstat output continually > > * * * * * root /usr/local/bin/pfstat > > -q >> /var/db/pfstat.db > > # > > # Generate Pfstat graphs every 5 minutes > > */5 * * * * root /usr/local/bin/pfstat > > -c /etc/pfstat.conf -d /var/db/pfstat.db # # Glean old Pfstat data > > 1 1 1 * * root /usr/local/bin/pfstat > > -t 31:365 > > > > Entries from my cron log: > > Dec 10 21:40:00 servername /usr/sbin/cron[39679]: (root) CMD ( > > /usr/libexec/atrun) > > Dec 10 21:41:00 servername /usr/sbin/cron[502]: (*system*) RELOAD > > (/etc/crontab) > > Dec 10 21:41:00 servername /usr/sbin/cron[39687]: (root) CMD=20 > > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) Dec 10 21:42:00=20 > > servername /usr/sbin/cron[39696]: (root) CMD (/usr/local/bin/pfstat=20 > > -q >> /var/db/pfstat.db) Dec 10 21:43:00 servername=20 > > /usr/sbin/cron[39701]: (root) CMD (/usr/local/bin/pfstat -q >>=20 > > /var/db/pfstat.db) Dec 10 21:44:00 servername /usr/sbin/cron[39714]: > > (root) CMD (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) Dec 10=20 > > 21:44:00 servername /usr/sbin/cron[39715]: (operator) CMD > > (/usr/libexec/save-entropy) > > Dec 10 21:45:00 servername /usr/sbin/cron[39734]: (root) CMD=20 > > (/usr/local/bin/pfstat -q >> /var/db/pfstat.db) Dec 10 21:45:00=20 > > servername /usr/sbin/cron[39735]: (root) CMD ( > > /usr/libexec/atrun) > > Dec 10 21:45:00 servername /usr/sbin/cron[39733]: (root) CMD=20 > > (/usr/local/bin/pfstat -c /etc/pfstat.conf -d /var/db/pfstat.db) > > > > root@servername db # ll /var/db/pfstat.db > > -rw-r--r-- 1 root wheel 0 Dec 10 21:21 > > /var/db/pfstat.db > > > > As you can see pfstat.db stays zero bytes! Anyone any idea why this=20 > > is happening? My /etc/pf.conf has a set loginterface entry! > > > > MTIA. > > > > Cheers, > > Lars. > > _______________________________________________ > freebsd-ports@freebsd.org mailing list=20 > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to > "freebsd-ports-unsubscribe@freebsd.org" --=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News