From nobody Sat Jul 31 14:10:56 2021 X-Original-To: freebsd-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 8817212D5956 for ; Sat, 31 Jul 2021 14:11:07 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound5c.ore.mailhop.org (outbound5c.ore.mailhop.org [54.244.192.240]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4GcR571vpjz4Z1K for ; Sat, 31 Jul 2021 14:11:07 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1627740660; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=L7QjVDWhb8zVuDCba2ADxRl4CGfgTX8TTtWOT6KB3t8lITCmljNpxxcgaugBnUexvnnWcI009mr2W WrwTkR4uWtpvi61FSDzm2NaSkBfNBwBVDOkFrdWmD2k97r0D0EUS2JAcCD7MBDfKddvKsxbJvT/ydJ E1O/ada+aUNojokLglN3MHtaXqypvI3oZ/8yUQLBu3lu+byg++h3btNfzVlo8xVtodcUDJ3XnD76Rd OFlVKHbyu9x/h5QRqkvsBTPewMm0XUjIv7XIRh7CkZqWryKlqIruACjvm0vYjA0faIq4ezoJck1Aid XCpzM26+xweL7gIT2BhvX1az3+4F8lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=pQKnbUAMzuS7j/mlUGvowN+Y5YzqYyrnWlmSHMZYQS0=; b=OXQZfKYLT4mFFNkEZwaGlFrNakT//8NrkrffawvpIbYx41l9ZYYcKyyv9De+Z+Tixgjf16eFTIEbO wCrOPRhBPmjvtj0hnrKXvcv9xNBLVEZKxTGZ9tSQCZrQN8jjMTUprFgJj+l9Hz1VXXURpKnsrsBOiP gZQZbASwfyXlJRA+B/Xs3vjrRY6BbjQAwTqckg3PcRwbp6RRpuWXnDuzsw7BpBo3jGPv6f39R+DUFN iugFs8vmgiJqof4BJTimUswimUwSV3PM1CTReT/P1MMMXSUNrDz8w4sL70OTLDEjIat5DXM+730mUe +BGD/tLddqqzWLItd5fxUo4q6qCfrhw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=pQKnbUAMzuS7j/mlUGvowN+Y5YzqYyrnWlmSHMZYQS0=; b=pKbuimp3D+fvud9vagblS9f/7ZENvetM0UXax4NhUWS5csLxWfs0bRWjnoLDHIPqd4ZDS/wkYqfhd 3JrA3UPGPHp/RK5i2VPBf7KxpRPXFUwgRSsH+aYeWILSIUFBJk6LtoOBMdQt1B8QExvTuVraz1kyxf XFc9IasCg+9GN14Tz4oE88Vp6crhtFWlIiVL23jPILLJrFaCAsXCXHKbVYDqz8ZVNCZ33JAjFRhsS6 1f2kisGr+vO1DrgWof9K3TKHxIDVhXohKbEkPZvoCfF7Qum2pxIhM0BhInv6AwlTlYJ8eyB2x7A0D3 LJvML33b5nMqo8wchLRLl6EJWK8zn8A== X-Originating-IP: 67.177.211.60 X-MHO-RoutePath: aGlwcGll X-MHO-User: 1f8f7e43-f209-11eb-9343-bf9d68d023b6 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 1f8f7e43-f209-11eb-9343-bf9d68d023b6; Sat, 31 Jul 2021 14:10:59 +0000 (UTC) Received: from [172.22.42.84] (rev2.hippie.lan [172.22.42.84]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 16VEAui8064151; Sat, 31 Jul 2021 08:10:56 -0600 (MDT) (envelope-from ian@freebsd.org) X-Authentication-Warning: paranoia.hippie.lan: Host rev2.hippie.lan [172.22.42.84] claimed to be [172.22.42.84] Message-ID: Subject: Re: How to Force Packet Traversal Order (IPFW2 => PF) From: Ian Lepore To: Juraj Lutter , Eugene Grosbein Cc: alfadev , "freebsd-ipfw@FreeBSD.org" , "freebsd-hackers@FreeBSD.org" , "freebsd-pf@FreeBSD.org" Date: Sat, 31 Jul 2021 08:10:56 -0600 In-Reply-To: <741DA620-C7E0-4B9B-BC0A-FE1020D80D4C@FreeBSD.org> References: <21339cbe-59c6-5b07-bf8b-8e8612ba64da@grosbein.net> <741DA620-C7E0-4B9B-BC0A-FE1020D80D4C@FreeBSD.org> Content-Type: text/plain; charset="windows-1251" User-Agent: Evolution 3.40.3 FreeBSD GNOME Team 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 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4GcR571vpjz4Z1K X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Sat, 2021-07-31 at 15:10 +0200, Juraj Lutter wrote: > > > > On 31 Jul 2021, at 10:17, Eugene Grosbein > > wrote: > > > > > > IPFW and PF startup order definitions are in this files > > > > > > Code: > > > > > > /usr/src/sys/netpfil/ipfw/ip_fw2.c > > > /usr/src/sys/netpfil/pf/pf_ioctl.c > > > > > > I have not sufficient skills to editing kernel level files > > > and tried instructions below but i couldn't changed that order. > > > > > > I am stuck on this for weeks my mind gonna blow > > > Any help would be appreciated at this point.. > > > > You need not to edit kernel sources. AFAIK it is possible to > > achieve what you need > > building custom kernel with ipfw included but pf not included to > > the kernel and loaded as module. > > > > > I wonder if some tweaking using pfilctl(8) would do the trick. I > don’t have any pf+ipfw boxes. > > otis > > — > Juraj Lutter > otis@FreeBSD.org > > > I wonder if netgraph+ipfw might be a better combo than pf+ipfw to get round-robin load balancing. Or if not that directly, then maybe netgraph could help force the ordering the way you want. -- Ian