From nobody Fri Jul 28 07:21:25 2023 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 4RBzZt03ZVz4pFY4 for ; Fri, 28 Jul 2023 07:21:26 +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 4RBzZs60Bxz4105 for ; Fri, 28 Jul 2023 07:21:25 +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=1690528885; 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=WY4p+Jt5A2hiyN8fDnEiZ1fRWD89OgPOM2YVeLpQHXE=; b=sxF6owb5YjjEnFPsYqqexLlK60NJ5qFR95M0KJ16flhCsK+/k8Ag34TZnf8h4E1Tc0qFCJ BwLC2dL6InQ5V/ExmDctYCSvyJv5/4kurhH9wFGDDOP6KyU+z1rHaLZJwFNpg+0t0NAyQi tsepRT1Ce4m82cyX1VAiQo6CZvGHUekybNHHZEUmJiZf3M1zUVTt6ndgACBNwTVgNGh+qw Z5cy0qM2VMzXfF688k14fEkkZVPd4SOFoO59+otzptybEqJk97G3MnA8+opyPTRGlkcbKZ wIn7oMxk5VNIZccL5yRjzLFN84J1KfWOAdcVoNF/qt5NTWwPTDk7q63UPDQikw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690528885; a=rsa-sha256; cv=none; b=LcWLcSf6pd6nzVGLC4AU7MBxqrzJg3ZCQArSnqofTq3M/PQe130d5MMiYJ/ivvaAOcKcT2 LGX7bvJum2e3wi0fgXKilh5r31A3c+dIF583O1O73MIU6Lfi+8GFCHU44Hlp9+VkVOOFK/ o2008YrE4WWzQd5m6XAXFGMr4K6YqE7COWYTg4CSjjyZtxJOWsiXxG6xpw1DCgU3oZ6w+y f/3KX/8f3EMAZ0JruZiopNyfdlrIOFLa1U7oiaXlvY62VLCSRXRVSDCPsJQNesKf7u+sdl qZeLS1HpFYUO0HTmcCRgJL8vzJb3o4uAMmQeiC1+GMCK7rQssi4BiCQt9wtkNg== 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 4RBzZs55xQzj8M for ; Fri, 28 Jul 2023 07:21:25 +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 36S7LPuD013189 for ; Fri, 28 Jul 2023 07:21:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 36S7LPc9013188 for bugs@FreeBSD.org; Fri, 28 Jul 2023 07:21:25 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 272770] "divert-to" rule creates packet loops on all FreeBSD 11.0 to 14.0 CURRENT versions Date: Fri, 28 Jul 2023 07:21:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: 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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created 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: 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272770 Bug ID: 272770 Summary: "divert-to" rule creates packet loops on all FreeBSD 11.0 to 14.0 CURRENT versions Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: burak.sn@outlook.com Created attachment 243661 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243661&action= =3Dedit divert-to test code Hi, "divert-to" rule creates packet loops on all FreeBSD 11.0 to 14.0 CURR= ENT versions, bug 260867 and forum topic talking about the same problem=20 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260867 https://forums.freebsd.org/threads/pf-divert-to-loop-problem.81508 i have reproduced the scenario on FreeBSD 11.0 to 14.0 CURRENT versions w= ith PF Divert rules given below and my code shown in the attachment 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 that 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. There is same problem with all versions.It seems to me no work has been do= ne to fix pf divert. Because of that 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 DIVERT is not working on either FreeBSD 14.0-CURRENT pf. So i couldn't give up IPFW's DIVERT. I have atteched a code above the attachment and i have tried all available codes on the internet. I am looking forward to your helps Thanks. --=20 You are receiving this mail because: You are the assignee for the bug.=