From nobody Fri Jul 14 11:34:41 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 4R2TsZ0DnXz2tnp0 for ; Fri, 14 Jul 2023 11:34:42 +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 4R2TsY4xVbz3Q9j for ; Fri, 14 Jul 2023 11:34:41 +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=1689334481; 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: in-reply-to:in-reply-to:references:references; bh=HqR+JadgGFMM668fv7QRHObCPAMhZpgBl/XkoRiCnMY=; b=DsgyLKqYNjycXmr8NLi9uREvAAFw8+QNKo1BHw/s7UO6211jn+Djure1NRLhNLO5XpWphC r2rGq2Vj5axA33isejK7RTIq/MUnetrdo+BX38DP+Pvz7L+nqZa/A4VidOqgPs7LyvlfdI RISgM+C+pZG9ZMpGKTkC6ZSZLAlV4D8ocqvqQh+l1tfou1fLWw9OulCQrvj0ZXuFiw4Qoi nXt5bgPUsb8xaSX8RgiwrGJRyWLDCXa2PuP6ma25F+JhJ/iXlofVVBaxs3TO/2yo0js1Gt 8PlgYSrDgfDq+azKSZ6Bi5aJ8uGMEv/ZTJcb1e0hkXuUFAzZJaoHqbVxJhxvRQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689334481; a=rsa-sha256; cv=none; b=cIflq8QZhon+MjCee6RaHSZW9tZ8Vn2z3pR6BD6+tGXWz6EFhhfiHA6prQYAH3OKigtosr Nggi6ptxx2JkdS3QGOLh/Oh4qZsi/NLiVxph0KYwP4wGN/7H+DcUKkL3I63nSzOHBU1aR0 VyuK6lM0NXxqLkNtb4KwPDp+iaIjyXyfdznSBXQML0cCOATP7iunqgwBKfaCn1pwetyRHx hxIkeDxks1l7YvRagKc2oyEoSJoMlMdDfQuGDaZV5l/tMzJxZa0Utgt+77s+ZNyMZdSQRG 5yy3PLhav38Hl2OgY4CY9VBMgK7ssLEJqEH8bpHTJQ/xu7JAe02hxDKdks2AJg== 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 4R2TsY3GjczH2G for ; Fri, 14 Jul 2023 11:34:41 +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 36EBYf6M001361 for ; Fri, 14 Jul 2023 11:34:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36EBYfX7001360 for pf@FreeBSD.org; Fri, 14 Jul 2023 11:34:41 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 260867] [pf][patch] divert-to packets infinitely loop when written back to divert socket Date: Fri, 14 Jul 2023 11:34:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Some People 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: cc 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260867 Alfa changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |net@FreeBSD.org --- Comment #3 from Alfa --- (In reply to Alfa from comment #2) Hi, i have the same infinity loop problem , i have tried PF Divert rules gi= ven below on between FreeBSD 11.0 to 14.0 CURRENT versions. There is same probl= em with all versions.It seems to me no work has been done to fix pf divert. By= the way i am currently using both IPFW and PF at the same time, i use IPFW for DIVERT but i am trying to move on FreeBSD 14.0 to work with only PF . But t= his DIVERT is not working on FreeBSD 14.0-CURRENT pf. So i couldn't give up IPF= W's DIVERT. I have atteched a code above the attachment and i have tried all available codes on the internet. LAN =3Digb1 pass in quick on igb1 proto udp from any to port { 53 } divert-to 127.0.0.1 port 3355 # I have found this rule (pass out quick on igb1 inet proto udp from any to port 53 flags S/SA keep state divert-reply) from google but i got this erro= r: /etc/pf.conf:83: divert-reply has no meaning in FreeBSD pf(4) pfctl: Syntax error in config file: pf rules not loaded FreeBSD 14.0-CURRENT pf.conf(5) man page divert-to port Used to redirect packets to a local socket bound to host and por= t. The packets will not be modified, so getsockname(2) on the socket will return the original destination address of the packet. divert-reply Used to receive replies for sockets that are bound to addresses which are not local to the machine. See setsockopt(2) for infor= ma- tion on how to bind these sockets. --=20 You are receiving this mail because: You are on the CC list for the bug.=