From nobody Wed Nov 01 14:07:24 2023 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 4SL8305lWgz4rtxF for ; Wed, 1 Nov 2023 14:07:24 +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 4SL8303rnlz4S4C for ; Wed, 1 Nov 2023 14:07:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1698847644; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aRNI2n/h1KIKAOIxYvTIG1Cci5G1eZSk4XQWjYKP2yw=; b=CX1EgHHLSZngUYlkLbiImUBjSt7jzOSFXUf+9oh2g3PzRwfrPp+6snu+Ad/6HL36hiaShi 7akW0weMIE6ggczaA/Cq09955bea8mdv+44imTrk7oBBuhiDNxrqnqqlyMAyZ6ZywEkoTc rjl0CmwOu6e74id1uKZ3XbGtldRbh/Zur+xdCzTd0XLF5QLs1P/qNYBx8OROEr2ToSVtM0 pX+NckeXipKJNhIpSDE6PxJwEWRBPG48f7Wp+wZNg65JYXGH7MMckf06bxc2zc+hgGE8Jk M9ouqYlCAvh8q4rzM/YqRHX75yWOTdqpYPqAD4nuSaIG2G8nDezdSr38gbooAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1698847644; a=rsa-sha256; cv=none; b=B7eHwR4t1ML1SaM9ld+Tiw9L2cLPN5WbSXizOivWtiFh3cYj9IJaNuM1DdCvSOOondMOrn KyNhdSzojTp7TLEvcNYoRyj7mB9xBcFZMdNsjPVHg1Oatkuw9zdR8r8yyF/+Rp4g8RG2GQ WzqLwc1HjngPG64QHGIv8NszXdJCWZ4ZorUZb/S9O+P8xpouZpo6GqI3yqfm+JmO5E/Bbn fueGmWw0x3YsWk2poFCn4BEG4wkzaWuzjQ3tZKsAC69LtaOobmKx+ZLKQIEiZcxorTzOa3 9O2GDN176SFCdImmaApuc1UuwhGwjdoLBO4+ifg0Nje+TYBqhvpumnnKrYBFbA== 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 4SL8302pF2zq1q for ; Wed, 1 Nov 2023 14:07:24 +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 3A1E7OQT036728 for ; Wed, 1 Nov 2023 14:07:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3A1E7OmP036727 for pf@FreeBSD.org; Wed, 1 Nov 2023 14:07:24 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: pf@FreeBSD.org Subject: [Bug 274850] Packets are disappearing when both PF "divert-to" and "Dnpipe" rules are activated simultaneously Date: Wed, 01 Nov 2023 14:07:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: burak.sn@outlook.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274850 Bug ID: 274850 Summary: Packets are disappearing when both PF "divert-to" and "Dnpipe" rules are activated simultaneously Product: Base System Version: 14.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: burak.sn@outlook.com CC: pf@FreeBSD.org I am in the process of transitioning from IPFW's 'divert-to' to PF's 'divert-to.' Initially, I encountered a 'divert-to' loop problem, bug #2727= 70, which has recently been resolved by @igor.ostapenko and @kp. Thanks for your work. I manually applied your 'fix pf divert-to' loop patch to FreeBSD 14.0 RC2, = as shown below: https://reviews.freebsd.org/rGfabf705f4b5aff2fa2dc997c2d0afd62a6927e68 https://reviews.freebsd.org/rGc1146e6ad67fb866c2472a1cbe5609fd939fd5ef When I loaded only the 'divert' rules shown below, everything worked as expected, and traffic flowed smoothly without any issues: # divert rules pass in log quick proto udp from any to port { 53 } divert-to 127.0.0.1 port 1234 pass in log quick proto tcp from any to port { 80 443 } divert-to 127.0.0.1 port 1234 However, when I added the 'dnpipe' rules below and reloaded the pf.conf usi= ng 'pfctl -e -f /etc/pf.conf,' all traffic related to ports 53, 80, and 443 disappeared. Subsequently, when I removed 'dnpipe 1001' and 'dnpipe 1' from= the 'dnpipe' rules and reloaded the pf.conf, traffic began to flow as expected. Thanks for your assistance in this matter. # dnpipe limiter rules ether pass in quick from ac:bc:aa:9c:32:09 l3 all tag captiveportal_auth_ig= b3 dnpipe 1001 ether pass out quick to ac:bc:aa:9c:32:09 l3 all tag captiveportal_auth_igb3 dnpipe 1 --=20 You are receiving this mail because: You are on the CC list for the bug.=