From nobody Wed Aug 02 00:39:36 2023 X-Original-To: net@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 4RFtRH4qWbz4q3Ln for ; Wed, 2 Aug 2023 00:39:55 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RFtR972SYz3q3g for ; Wed, 2 Aug 2023 00:39:49 +0000 (UTC) (envelope-from nonesuch@longcount.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=longcount.org header.s=google header.b=oLALrF5F; spf=pass (mx1.freebsd.org: domain of nonesuch@longcount.org designates 2607:f8b0:4864:20::f34 as permitted sender) smtp.mailfrom=nonesuch@longcount.org; dmarc=none Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-63d058b9cafso40748896d6.2 for ; Tue, 01 Aug 2023 17:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount.org; s=google; t=1690936788; x=1691541588; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=qkYzNYWv3Ccny1ybX9FRzSt7OFIxoTdqqeTg4D68sas=; b=oLALrF5FiC5sHTRuyWVeSCZR4NL+qNChE0KHWDp9lF86HzymSeU7MObGG265dGRlNt ZVEoGryZR739rt+pX2k1xSP/zfh++nrCRhBsfKhZfhohY4dPm5gxmLIT0lT3tZr/G/WQ sK8VPginU11ezHbwY0DYtfA+VEJyQuUZG79Fk2FA033WipPdSxUN71cfCllM82wRfgG1 8ncq/qSNiXvWmtbktb0OUok/7CksmHvEp0Mj7ZeO+mW0e75IsT9VfmecCq1qq/uldfdW pHkK36KppooSVd38FLUSHNvefBwBS8URLgXUSvLzpMvogJ+amnJ/AY6ylr1rFgSSzPZJ B5Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690936788; x=1691541588; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qkYzNYWv3Ccny1ybX9FRzSt7OFIxoTdqqeTg4D68sas=; b=ZZ9h82UePvbh+x4S7s0SkQKbLPbiJ5c4WmEMmX7wbsjKB77VMkoPUyc7MxeTcSC63n Q02yAnvccuE3q3RlkvRCY8Bup513yUtnbyXd2pxsS+0UNNH09rFA3MbOdifYx/MLd4ng 13ulHhGMwFqBYOmiYbnfgaojj2kXib0R1YV3ztN1BAqNFASizHeU6BjxhUlYRSz9ImBF YMQDnH5ALeZMzZ0df/BVg11VWemn7cJ3so5DYkMmQYWwicqz/6EhoHRvU27O6t9H2DQZ wOc6lzIxlbelN51RTZj8rG0WTdC4NKS2HZe0mRIIFJry4CzJEjf2fz+Oe/GyK+gIVtiz z5WQ== X-Gm-Message-State: ABy/qLacEudYiqCJ7w/kRBFGlq16vY3lCkGsnGuFZQOQmao4A5USdDWT 1PwYq5/gmdbpg5YiTnojQePiD/kyNRnncsB9TfER3A== X-Google-Smtp-Source: APBJJlFmIBF1W1e6ymWQ8qLkqyNosE+NrY80cjfRdJNTE8fsKKt+hIlbe6emrbvETwpPLEQCUOAtLA== X-Received: by 2002:a0c:e38a:0:b0:630:463:3650 with SMTP id a10-20020a0ce38a000000b0063004633650mr16481682qvl.39.1690936788156; Tue, 01 Aug 2023 17:39:48 -0700 (PDT) Received: from smtpclient.apple ([173.77.72.21]) by smtp.gmail.com with ESMTPSA id a30-20020a0ca99e000000b006375f9fd170sm4898202qvb.34.2023.08.01.17.39.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Aug 2023 17:39:47 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Mark Saad List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: Is there a FreeBSD equivalent of 'tcpdump -i any' from Linux? Date: Tue, 1 Aug 2023 20:39:36 -0400 Message-Id: References: Cc: net@freebsd.org In-Reply-To: To: Zane C B-H X-Mailer: iPhone Mail (20F75) X-Spamd-Result: default: False [-2.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-0.998]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[longcount.org:s=google]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[net@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f34:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[longcount.org:+]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[longcount.org]; PREVIOUSLY_DELIVERED(0.00)[net@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4RFtR972SYz3q3g X-Spamd-Bar: - On Aug 1, 2023, at 7:57 PM, Zane C B-H wrote: >=20 > =EF=BB=BFOn 2023-08-01 18:44, Mark Saad wrote: >>>> On Aug 1, 2023, at 4:39 PM, Zane C B-H wrote: >>> =EF=BB=BFSo what is a good way to get all packets passing through that t= he kernel currently sees? Apparently any is not support on non-Linux systems= and pflog would require adding log to all rules. Similarly only logs packet= s that match a rule. >> Just run tcpdump without the -i , iirc this will dump everything. >=20 > Nope. This just runs it on the first interface it finds. >=20 > - pflog - requires PF, requires adding it to all rules > - ipfw tee - requires ipfw, not bad but it requires some one already be us= ing ipfw > - deamonlogger - unmaintained... quiet literally dead upstream > - suricata - can't tell it to for example not log packets for TCP port 443= , which for most FPC purposes just chew up disk space and all meaningful inf= o will be in the suricata TLS log >=20 > Now as to the question of firing up multiple instances of tcpdump, this me= ans that you will have duplicate packets where bridges are involved. I haven=E2=80=99t tried it personally but maybe with Netgraph you can make a= tap of all of this ? What is your goal ? =20 --- Mark Saad | nonesuch@longcount.org=