From nobody Tue Aug 24 12:58:19 2021 X-Original-To: pf@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 9A192178A5FF for ; Tue, 24 Aug 2021 12:58:21 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gv8L54126z4jV7; Tue, 24 Aug 2021 12:58:21 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [5.9.86.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.codepro.be", Issuer "R3" (verified OK)) (Authenticated sender: kp) by smtp.freebsd.org (Postfix) with ESMTPSA id 598C62941F; Tue, 24 Aug 2021 12:58:21 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: by venus.codepro.be (Postfix, authenticated sender kp) id CF0A82A0CE; Tue, 24 Aug 2021 14:58:19 +0200 (CEST) From: Kristof Provost To: Oleksandr Kryvulia Cc: pf@freebsd.org Subject: Re: pfctl -k id not working Date: Tue, 24 Aug 2021 14:58:19 +0200 X-Mailer: MailMate (1.14r5818) Message-ID: <88FAB02B-D319-4501-857D-7F04922CD00D@FreeBSD.org> In-Reply-To: <903A7599-FFBD-4E7C-A4E9-2EA2F2C7B16C@FreeBSD.org> References: <437ea6f8-a93f-4650-1e94-c52110d328e7@shurik.kiev.ua> <903A7599-FFBD-4E7C-A4E9-2EA2F2C7B16C@FreeBSD.org> List-Id: Technical discussion and general questions about packet filter (pf) List-Archive: https://lists.freebsd.org/archives/freebsd-pf List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pf@freebsd.org X-BeenThere: freebsd-pf@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-ThisMailContainsUnwantedMimeParts: N On 22 Aug 2021, at 21:01, Kristof Provost wrote: > On 22 Aug 2021, at 20:58, Oleksandr Kryvulia wrote: >> 20.08.21 22:01, =C3=96zkan KIRIK =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>> Hi, >>> >>> I'm trying to kill a single state using state id. But even state exis= ts, no >>> (0) states are killed. >>> >>> I'm using FreeBSD stable/12 0f97f2a1857a (Jul 26) build. Outputs are = below: >>> >>> root@freebsd:/ # pfctl -ss -vvv | tail -5 >>> all tcp 10.255.4.134:60684 -> 10.2.3.10:443 ESTABLISHED:ESTABLI= SHED >>> [3857528462 + 256] wscale 7 [2278827950 + 1117184] wscale 9 >>> age 1002336:42:40, expires in 252932:33:04, 250675:343858 pkts, >>> 18984576:362136695 bytes, anchor 1308884992, rule 419430400 >>> id: effe296100000018 creatorid: e9c975c1 gateway: 0.0.0.0 >>> origif: ix0.167 >>> >>> root@freebsd:/ # pfctl -k id -k effe296100000018 >>> killed 0 states >>> >>> root@freebsd:/ # pfctl -ss -vvv | tail -5 >>> all tcp 10.255.4.134:60684 -> 10.2.3.10:443 ESTABLISHED:ESTABLI= SHED >>> [1005467278 + 256] wscale 7 [2245470126 + 1117184] wscale 9 >>> age 60966:41:04, expires in 280894:34:40, 250677:343861 pkts, >>> 18984766:362137617 bytes, anchor 1308884992, rule 419430400 >>> id: effe296100000018 creatorid: e9c975c1 gateway: 0.0.0.0 >>> origif: ix0.167 >>> >>> is it possible to fix it? >>> >>> Regards >>> >> >> Same on current. > > Thanks for the confirmation. It=E2=80=99s very likely fallout from the = nvlist changes I did in that area recently. > It=E2=80=99s on my list for Monday. It=E2=80=99s likely to be fairly ea= sy to fix. > This will be fixed as of e59eff9ad3285838730acf48f6d066cec0e53114 (in mai= n). MFC to be done next week. Br, Kristof