From nobody Wed Dec 28 14:39:30 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NhvLC6HjXz1LqrS for ; Wed, 28 Dec 2022 14:39:31 +0000 (UTC) (envelope-from mack@macktronics.com) Received: from mail.macktronics.com (coco.macktronics.com [209.181.253.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NhvLC5cZDz3PTh for ; Wed, 28 Dec 2022 14:39:31 +0000 (UTC) (envelope-from mack@macktronics.com) Authentication-Results: mx1.freebsd.org; none Received: from olive.macktronics.com (unknown [209.181.253.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.macktronics.com (Postfix) with ESMTPS id D5B693291; Wed, 28 Dec 2022 08:39:30 -0600 (CST) Date: Wed, 28 Dec 2022 08:39:30 -0600 (CST) From: Dan Mack To: Sami Halabi cc: FreeBSD Current Subject: Re: native recording of all network connections on freebsd In-Reply-To: Message-ID: <134dcd9-30d-b2d9-2732-992cf2310d8@macktronics.com> References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Rspamd-Queue-Id: 4NhvLC5cZDz3PTh X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:209, ipnet:209.181.252.0/23, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Thank you, Oh how dumb I am - I'll just have pf do it using 'log all'. Dan On Wed, 28 Dec 2022, Sami Halabi wrote: > using firewall ike ipfw with rule to log any to any would be a start.. for > advanced use, stateful fw so You can log start of connections > > ?????? ??? ??, 28 ????? 2022, 16:21, ??? Dan Mack ?: > >> >> I'm wondering if anyone can help point me at a good way to continously >> capture every inbound and outbound connection made to a freebsd system. >> I'd prefer a way that is native in base if possible. I don't really want >> to record all the packets, just the src:dest:rport:dport stats. >> >> Happy to RTFM as well, >> >> Dan >> >> >