From owner-freebsd-questions@FreeBSD.ORG Mon Oct 19 18:33:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C8AF10656A8 for ; Mon, 19 Oct 2009 18:33:50 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 25D778FC1C for ; Mon, 19 Oct 2009 18:33:49 +0000 (UTC) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n9JIXi41052045; Mon, 19 Oct 2009 19:33:45 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n9JIXi41052045 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1255977225; bh=d4BSfxafuh9nCnj0zLEUbj9NPo53KyKFQZZXW3jVGWI=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4ADCB101.808@infracaninophile.co.uk>|Date:=20Mon,= 2019=20Oct=202009=2019:33:37=20+0100|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|U ser-Agent:=20Thunderbird=202.0.0.23=20(X11/20090823)|MIME-Version: =201.0|To:=20=3D?ISO-8859-1?Q?D=3DE1nielisz_L=3DE1szl=3DF3?=3D=20< laszlo_danielisz@yahoo.com>|CC:=20freebsd-questions@freebsd.org|Su bject:=20Re:=20pf+time=20stamp|References:=20<823621.39942.qm@web3 0801.mail.mud.yahoo.com>|In-Reply-To:=20<823621.39942.qm@web30801. mail.mud.yahoo.com>|X-Enigmail-Version:=200.95.6|Content-Type:=20m ultipart/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"ap plication/pgp-signature"=3B=0D=0A=20boundary=3D"------------enigA3 5BFECD1437B97DA6E016A8"; b=ffUtDF2vDEzRtSW0vH8vZYs4CtQFAceR1tQHehgb95S2ni5rfDLwn4X/7SJ5PViOJ 4hiEX5TuLqlVVHc9Qg/2XqXgDXkJA0v4vyfANfrAiDlZncMhmyWVrqhrwcIwaE5/0k tpQWc+ZlS9PDv22827ABRuysgsaNssh+6u4ZZQcQ= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host localhost [IPv6:::1] claimed to be happy-idiot-talk.infracaninophile.co.uk Message-ID: <4ADCB101.808@infracaninophile.co.uk> Date: Mon, 19 Oct 2009 19:33:37 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.23 (X11/20090823) MIME-Version: 1.0 To: =?ISO-8859-1?Q?D=E1nielisz_L=E1szl=F3?= References: <823621.39942.qm@web30801.mail.mud.yahoo.com> In-Reply-To: <823621.39942.qm@web30801.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigA35BFECD1437B97DA6E016A8" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: pf+time stamp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2009 18:33:50 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA35BFECD1437B97DA6E016A8 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable D=E1nielisz L=E1szl=F3 wrote: > Hello, >=20 > Do you have any idea how to add and read time stamp of pf/pf.log? >=20 > Thank you! > Laci Do you mean /var/log/pflog ? Which is the default location where a record of logged packets ends up if you run pflogd(8). That's actually a pcap (packet capture) file, and you can read it using tcpdump: # tcpdump -r /var/log/pflog Each packet is recorded with a high resolution timestamp that tcpdump will display for you -- like this naughty chap suffering the consequences= of trying to brute-force my ssh daemon just before 1:00pm today: 12:52:44.891373 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: . ack 2991958242 win 1460 12:52:45.516283 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:52:48.387822 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:52:54.131863 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:52:57.113810 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: . ack 1 win 1460 12:53:05.620251 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:53:28.597524 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:54:14.550822 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 12:55:46.457353 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: F 0:0(0) ack 1 win 1460 13:00:15.032146 IP customer-201-134-103-165.uninet-ide.com.mx.2316 > happ= y-idiot-talk.infracaninophile.co.uk.ssh: R 1230911050:1230911050(0) win 1= 460 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigA35BFECD1437B97DA6E016A8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkrcsQgACgkQ8Mjk52CukIzoHQCbBnb8XAV8sevPaQ07tMKyJPN/ uloAmgIYWlM5vXQEmZsLfCPiTWBHn3Ne =m7gg -----END PGP SIGNATURE----- --------------enigA35BFECD1437B97DA6E016A8--