From owner-freebsd-pf@FreeBSD.ORG Mon Mar 19 14:02:09 2007 Return-Path: X-Original-To: freebsd-pf@freebsd.org 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 C9B8C16A400 for ; Mon, 19 Mar 2007 14:02:09 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: from smtp107.sbc.mail.re2.yahoo.com (smtp107.sbc.mail.re2.yahoo.com [68.142.229.98]) by mx1.freebsd.org (Postfix) with SMTP id 7D39413C448 for ; Mon, 19 Mar 2007 14:02:09 +0000 (UTC) (envelope-from heli@mikestammer.com) Received: (qmail 14532 invoked from network); 19 Mar 2007 13:35:29 -0000 Received: from unknown (HELO mail.mikestammer.com) (mikestammer@sbcglobal.net@68.249.177.115 with login) by smtp107.sbc.mail.re2.yahoo.com with SMTP; 19 Mar 2007 13:35:29 -0000 X-YMail-OSG: Fee_kaAVM1myz8CeWDNWBghHq826DNtaF2rvQF0yd36iGwIHsLMzrsK154L0bbiQPSLFM0nbKnh7BGRYiTmQ3j6DM3WVIoEYuzxfdy8bZ0PYKX2R3VHCXGewsvCdVpCd50cr7OapNWGIfjM- Received: from localhost (localhost [127.0.0.1]) by mail.mikestammer.com (Postfix) with ESMTP id 2D9C7B84E for ; Mon, 19 Mar 2007 08:34:41 -0500 (CDT) X-Virus-Scanned: amavisd-new at mikestammer.com Received: from mail.mikestammer.com ([127.0.0.1]) by localhost (gondolin.middleearth.mikestammer.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2FuO-LR64xM0 for ; Mon, 19 Mar 2007 08:34:36 -0500 (CDT) Received: from [IPv6:::1] (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eric) by mail.mikestammer.com (Postfix) with ESMTP id 26CBDB84D for ; Mon, 19 Mar 2007 08:34:36 -0500 (CDT) Message-ID: <45FE919B.7040208@mikestammer.com> Date: Mon, 19 Mar 2007 08:35:23 -0500 From: Eric User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: freebsd-pf@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: pf logging differences 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: Mon, 19 Mar 2007 14:02:09 -0000 hello all, I had a question about how pf is logging things. Here is the setup. Full pf logs can be viewed here: http://mikestammer.pastebin.ca/401536 I have a machine set up like this: Internet-->Router-->bge0 and it produces pf logs that look like this: # tcpdump -n -e -ttt -i pflog0 # tcpdump: WARNING: pflog0: no IPv4 address assigned # tcpdump: verbose output suppressed, use -v or -vv for full protocol decode # listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 96 bytes # 000000 rule 0/0(match): block in on bge0: 60.224.185.113.4461 > 72.232.135.90.80: F 1036924808:1036924808(0) ack 1855180894 win 65535 # 000346 rule 0/0(match): block in on bge0: 60.224.185.113.4462 > 72.232.135.90.80: F 838861239:838861239(0) ack 471144513 win 65535 # 771114 rule 0/0(match): block in on bge0: 209.55.5.10.50123 > 72.232.135.94.53: 41394 [1au][|domain] # 99. 474278 rule 0/0(match): block in on bge0: 202.100.109.213.1332 > 72.232.135.90.1434: UDP, length 376 # 740. 225307 rule 0/0(match): block in on bge0: 204.16.210.140.36203 > 72.232.135.90.1026: UDP, length 421 I recently set up my home server like this: Internet-->ng0-->sk0 ng0 is handled by mpd4 in this case, pf logging looks like this: # tcpdump -etttti pflog0 # tcpdump: WARNING: pflog0: no IPv4 address assigned # tcpdump: verbose output suppressed, use -v or -vv for full protocol decode # listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 68 bytes # 2007-03-19 08:19:35.242979 rule 1/0(match): block in on ng0: access.savagedata.net > 68.249.177.115: [|icmp] # 2007-03-19 08:19:36.252372 rule 1/0(match): block in on ng0: access.savagedata.net > 68.249.177.115: [|icmp] # 2007-03-19 08:19:37.262760 rule 1/0(match): block in on ng0: access.savagedata.net > 68.249.177.115: [|icmp] Why is the first host producing more detailed logs? why isnt pf showing the port that was blocked or anything else like it does in the first host? Is there a way to make the ng0 interface log more or is this due to the netgraph hooks into pf? Thanks a bunch Eric