From nobody Tue Jun 20 14:18:54 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 4Qlpf72BkVz4fj0w for ; Tue, 20 Jun 2023 14:18:55 +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 4Qlpf700dnz3xw6 for ; Tue, 20 Jun 2023 14:18:54 +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=1687270735; 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=C1ReXSC7s9/xdoQX25L2MEpK/ifEQ+vXf85nhUju2Wo=; b=TZj8R9Uzfu/yEhCpSnav8pcHlpwxazmGccm6WH2RW67X6ZlASxRHlUpxlUZ4fl88wwDl6l OAsplW4ulkmodTa0ivxWUgkhJVxG1QjcPnESAaEubq//IlvUyLCws780i4vg/H0zuVizxv U4i84waUTkqOaRKMFQZOYXhxa7vYpxvveBIIbqkUJsHYBdi9eYImruxuCyqCpDcfPK/IkP ot5vm4X/cXeJrSaaqfEB6jf394X2thxqG9cu9DYnp9sA1yRUGZkpAPWJAdUDsKdakCUUIx W3uYGFR4B2hYFMgkoMEiNUUcSYKYEbULyo0mIJToOOHcoHrJVwB3pCy1z3M+Ag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687270735; a=rsa-sha256; cv=none; b=jVmDpuu6xNhMOnvvrzDOFQWNtV1G38W1Am5aM8gjFi720XoyRUjVDsEVGDuSA8AC50eOG9 Reez+4f6UetflMEUqa6DGSTLhpKZ6p/UBSjjlOAI48x0SzQ00y7j1kWZcDykTRBRvZz5qO 2FxgWaP+IZcWuxAyUkVKc1bM/wbdlHh29AGgWQKy6zh+pgH86jxxBvClsQyW+eEz3Mo9fz cVZGQxQQUN+VcnCYtDU3a9CpKIsQ9+SYdxg2hgvBXwDIM/dFAqo5gJBGvaEPBXHlqE7+05 Kj1ykple2uJ6K1gvHfIl91ytOa/PwaI07thDkC4DG3EbI55TU10aVH9AnHiY4A== 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 4Qlpf663rJz12hC for ; Tue, 20 Jun 2023 14:18:54 +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 35KEIs8s022015 for ; Tue, 20 Jun 2023 14:18:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 35KEIsiR022014 for bugs@FreeBSD.org; Tue, 20 Jun 2023 14:18:54 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 272094] pfilctl IPFW hook order not works with PF route-to Date: Tue, 20 Jun 2023 14:18:54 +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: 13.2-RELEASE 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 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: 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272094 Bug ID: 272094 Summary: pfilctl IPFW hook order not works with PF route-to Product: Base System Version: 13.2-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: burak.sn@outlook.com CC: glebius@FreeBSD.org, ipfw@FreeBSD.org, kp@freebsd.org, pf@FreeBSD.org Hi i have created a simple captive portal using IPFW on my FreeBSD 13.2 REL= EASE machine I am currently using both IPFW and PF at the same time. But some will say t= his is a bad idea. I used IPFW for captive portal, bandwidth mgmt and any other Layer 2 filtering purposes and PF for general firewalling proccess like blo= ck, NAT, route-to. #212331 this bug references same error but based on FreeBSD 10.3 My problem: when i applied both captive portal and PBR rule on igb1. IPFW fwd cannot redirect unauthenticated users to portal page. I think the packets that fir= st hit PF route-to are sent directly to the output interface. So that traffic = not hit to IPFW. So i tried to use newly implemented "pfilctl" tool to change PF,IPFW hook order and I tried every combination but with no luck. I am awaiting your kind responses // FreeBSD's Default PF first in hook order # pfilctl heads Intercept point Type inet6 IPv6 In pf default-in6 In ipfw default6 Out ipfw default6 Out pf default-out6 inet IPv4 In pf default-in In ipfw default Out ipfw default Out pf default-out ethernet Ethernet In ipfw default-link Out ipfw default-link // My IPFW first in settings pfilctl unlink -ia ipfw:default inet pfilctl unlink -oa ipfw:default inet pfilctl unlink -ia pf:default-in inet pfilctl unlink -oa pf:default-out inet // i tried every combination on linking pfilctl link -ia ipfw:default inet pfilctl link -ia pf:default-in inet pfilctl link -oa pf:default-out inet pfilctl link -oa ipfw:default inet Intercept point Type inet6 IPv6 In pf default-in6 In ipfw default6 Out ipfw default6 Out pf default-out6 inet IPv4 In ipfw default In pf default-in Out ipfw default Out pf default-out ethernet Ethernet In ipfw default-link Out ipfw default-link // ROUTE-TO RULE=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20 pass in log quick on { igb1 } route-to { ( igb0 192.168.30.1 ) } inet = from { any } to { any } --=20 You are receiving this mail because: You are the assignee for the bug.=