From nobody Tue Jun 20 14:18:54 2023 X-Original-To: ipfw@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 4Qlpf72BlGz4fhvq 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 4Qlpf66S1dz3y9n 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=1687270734; 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=HhwxGGLAOAiZeR/2WG0NT+iYuXnnsNBki7Z4jo+ksfw=; b=Bk7juyvuyoTcoKdWw5rFIHnawweuRYXItS7sS/ERkf0uNaLpjDabxEdCkaNjukxLvTMlR7 YnHChtPxLNIo+NhUnRM8bA6GOhyIDiUVD41U0hbMLPrST3KgfEVYa9w8WUArXS7mp2QBW4 WrbxCpkXg/O+ozjWbf6OjUy8sgZr9IrwOYp9tS29bOaOub53vUCkzCQCsHg/N4cipyuJe0 zulXQy1ulcYCl1GEVoRvvqR1gyCCMRvrdXrk8CArobANV9VJKm65jkxZ1pu7uALSlw0Eob tilwDulkPp6JZzC7uJOVt64b5oEMaNnIwKHplMXaI9koRfRies7TQG59730qQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687270734; a=rsa-sha256; cv=none; b=ejXA33ZDlG6d0XtvBb8b3jiIbd2YA9nSwu1wMBablOuN8gv1LbEkeLtvL5V9VGegf4guk7 zv7CakZ/gybd8vPjT135LPWDDX8joVfqpWQgZkQbk6aqKt7GYNrCecHcrPtbRjHz6QBlce ZAynqiYImht5tWiu268HNePTvYSLt2P9DayqazEcIuRVcW5ZYIO0iT3b/AEmggcskgfn+R rvijlLVvNiPtnMLtLmCQGQAI6oiqEns8b6TKomQBhBw4A9nATpbelTw0D756+LgpK6s3lN 1aouNVhP9yix/6c26b3BBkN5q1lX5yfrK+VtQS88C+KoVL3kTZb7ZRX/gH8J7g== 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 4Qlpf65RLwz12hB 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 35KEIseL022010 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 35KEIsMX022009 for ipfw@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: ipfw@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: CC 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: IPFW Technical Discussions List-Archive: https://lists.freebsd.org/archives/freebsd-ipfw List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ipfw@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 on the CC list for the bug.=