From nobody Fri Jul 14 11:34:41 2023 X-Original-To: net@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 4R2TsZ0Bwlz2tnnx 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 4R2TsY5mVsz3QRC 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=cW3oM8EoQUmBVlNkjcXG7qzridKpnqKYxivPCTTDetgh3A/uD/nNBBLFDXSYXHnRqxQeLv ydt8PoqBmWjMAiZbC7PrV2FUjIz57AKNCGSVGNVnBjItE0NBnPvK2ibQ7pXvf7ipanLR+U vPN47S0MJGXzRMFnu+W3zKMUzaIjaiy8xZUMt76zuV59hq63EB3Ir1r29fvK31CkEnrjNM OrzG2v33M9sMcYFV7s1COYFylXkksnxAh3IWwM348KVBtKZjRJA2Ew6fWltuP25tcBgGXR wbCE2HdaQz5BptN2oK/tNmp5mNgHULfHJdYmyLeJE+quO/dQMaTqSDmob+kJgw== 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=KnSXcxEryBKgi2k7BR5xudhqVC0IT/53OhEfKR+9Zioc7pRRSYUyrxrCF/1RLg6VbyLkmX 8gHEyPaQaxzHAOOPqNd7CahxkmkF17w1xKDzpSlJpxR9qVUElH+Ba7OtLoxudUUoekMp3s 5oJ/elyE+zdlEZP2p1p8HtwODnHvo3rW0Dncm/FtiwjTyxk3bquC95hKVO/YVgkQL0pZyF AuzOQWVfQRnEaWrlB/76oN2HmOQl1WEf0ucYp4x/o2WwjFq9KvKLxJdV/QuWqx4UVe2tj7 iUtRwCTWTsCC9U8+qhe5FZf+FZ+ieBSvnhGsibyiS2/FfSys/4AdJQMUJKgFtQ== 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 4R2TsY4XsVzH3N 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 36EBYfe1001370 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 36EBYf35001369 for net@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: net@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: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@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.=