From nobody Wed Nov 17 06:56:02 2021 X-Original-To: bugs@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 5F838189C0E2 for ; Wed, 17 Nov 2021 06:56:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HvDGp208Lz3nMT for ; Wed, 17 Nov 2021 06:56:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1EDFD1CA17 for ; Wed, 17 Nov 2021 06:56:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1AH6u1xm071657 for ; Wed, 17 Nov 2021 06:56:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AH6u1cD071656 for bugs@FreeBSD.org; Wed, 17 Nov 2021 06:56:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259879] enabling PF blocks multicast/igmp sendto Date: Wed, 17 Nov 2021 06:56:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: johan@stromnet.se X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259879 --- Comment #5 from Johan Str=C3=B6m --- I verified that logging is not working as expected (pass rule without allow-opts blocks but does not log): enabling pf with no rules launch the socat command that tries to join multicast address. Pf now blocks igmp (as we now know is expected) adding a rule "block return log on $if all" and then running the socat again yields log entries in pflog: root@freebsd:~ # tcpdump -i pflog0 igmp tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 262= 144 bytes 06:47:55.756617 IP 172.28.6.15 > igmp.mcast.net: igmp v3 report, 1 group record(s) 06:47:57.756382 IP 172.28.6.15 > igmp.mcast.net: igmp v3 report, 1 group record(s) 06:47:58.556249 IP 172.28.6.15 > igmp.mcast.net: igmp v3 report, 1 group record(s) Adding a incomplete PF rule "pass on $if inet proto igmp" and starting soca= t. No igmp traffic out, but nothing in pflog eitiher. And that feels more like= a bug? One gotcha while debugging this: adding 'allow-opts' to the above role and rerunning socat does not actually work immediately , you have to flush/wait= for the states to expire. Then it works. --=20 You are receiving this mail because: You are the assignee for the bug.=