From owner-freebsd-pf@FreeBSD.ORG Mon Mar 19 14:19:45 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 98FD116A404 for ; Mon, 19 Mar 2007 14:19:45 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id D510F13C4BE for ; Mon, 19 Mar 2007 14:19:44 +0000 (UTC) (envelope-from max@love2party.net) Received: from [88.66.17.40] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1HTIi20VsR-00057R; Mon, 19 Mar 2007 15:19:39 +0100 From: Max Laier Organization: FreeBSD To: freebsd-pf@freebsd.org Date: Mon, 19 Mar 2007 15:19:31 +0100 User-Agent: KMail/1.9.5 References: <45FE919B.7040208@mikestammer.com> In-Reply-To: <45FE919B.7040208@mikestammer.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1412368.xgyGZgYRZ9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200703191519.37364.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+zW+O/K30NQKeHZMP6L2fGZ8q9IqgoNjy64Fg sqZ4w2kgvvfqT12hpq5Lg70Pvs5uzTqQ8BoZ/6TMrquRGNY6lr XbUyEgNLZeajrcgFdGuFA== Cc: Subject: Re: 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:19:45 -0000 --nextPart1412368.xgyGZgYRZ9 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 19 March 2007 14:35, Eric wrote: > 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? Just specify a larger snaplen. "tcpdump -s 0" to catch the whole packet. =2D-=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 --nextPart1412368.xgyGZgYRZ9 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBF/pv5XyyEoT62BG0RAkLzAJ4wgW+nlbVmUewyDmo/fYtlj/PQHgCdF9k0 Mz6hFovXwgus3txyq0aW7Yg= =MRWq -----END PGP SIGNATURE----- --nextPart1412368.xgyGZgYRZ9--