From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202602 header.b=FqA8vkeU; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id BC98F5A0274 for ; Thu, 09 Apr 2026 02:48:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202602; t=1775695681; bh=Qd/WaxpgXklWrUUFu7X9PPTFFp09qruUE/cScPZ+kaU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FqA8vkeUwakZFyFMoO8ylU9Fu3GWmzCJ6e31rVsikPY+RZMHO7rI/GKFvaOno7IRa fL6PKJkryQ3kghArXiuz7F7q/YGvieTc02vQhekBm4jUzIKCCy0iLhxYS/kXQb0LzN Ogo6D095lVOVN+y6Dvg2c6wFR72kg9LiTO0i5CfpmgyHe0Vsy3iIMDxAf2yrQ0iE+k IRxbJNLh56o7UWG+gDpVY/PdT2+7oZXbMp1eDYwPsHmbU39U/0wmUu4xoSmUhIdGWz 6HY+4SPtvx9YLvShVUOTcmf7sBnzXbsSBDigHffRRUKvyNLXehanvrTAxcvR3tPvhf 8VYZFPm+OHvWw== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4frh9s2HcQz4wTc; Thu, 09 Apr 2026 10:48:01 +1000 (AEST) Date: Thu, 9 Apr 2026 10:12:07 +1000 From: David Gibson To: Stefano Brivio Subject: Re: [PATCH 12/18] conf: Don't be strict about exclusivity of forwarding mode Message-ID: References: <20260407031630.2457081-1-david@gibson.dropbear.id.au> <20260407031630.2457081-13-david@gibson.dropbear.id.au> <20260408234015.242166e9@elisabeth> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PbL0dDXW+OFIUKJb" Content-Disposition: inline In-Reply-To: <20260408234015.242166e9@elisabeth> Message-ID-Hash: QMBS2T2MVUHY2E6YHU35GBNE24HNJP5O X-Message-ID-Hash: QMBS2T2MVUHY2E6YHU35GBNE24HNJP5O X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: passt-dev@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --PbL0dDXW+OFIUKJb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 08, 2026 at 11:40:16PM +0200, Stefano Brivio wrote: > On Tue, 7 Apr 2026 13:16:24 +1000 > David Gibson wrote: >=20 > > Currently as well as building the forwarding tables, conf() maintains a > > "forwarding mode" value for each protocol and direction. This prevents, > > for example "-t all" and "-t 40000" being given on the same command lin= e. > >=20 > > This restriction predates the forwarding table and is no longer really > > necessary. Remove the restriction, instead doing our best to apply all= the > > given options simultaneously. > >=20 > > * Many combinations previously disallowed will still be disallowed bec= ause > > of conflicts between the specific generated rules, e.g. > > -t all -t 8888 > > (because -t all already listens on port 8888) > > * Some new combinations are now allowed and will work, e.g. > > -t all -t 40000 > > because 'all' excludes ephemeral ports (which includes 40000 on defa= ult > > Linux configurations). >=20 > This is slightly confusing though: >=20 > $ ./pasta -t auto -t 31337 > Forwarding configuration conflict: TCP [*]:31337 =3D> 31337 versus TCP= [*]:1-32767 =3D> 1-32767 (best effort) (auto-scan) You mean because the single port rule is redundant, but doesn't do something different, so not strictly speaking conflicting? > but I don't see a practical way to "fix" it for the moment being, and > overall I'd say the new behaviour is better than the original one, so I > don't really care. Ok. --=20 David Gibson (he or they) | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you, not the other way | around. http://www.ozlabs.org/~dgibson --PbL0dDXW+OFIUKJb Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmnW7tYACgkQzQJF27ox 2GePtA/9E/fqygM5gPdWSKQppHh3b6LVPKCbhVF+D+Ny92GKvpozx3F+me+oeep8 lcyJ7exDFn5UOUmfDvBRbSX+NKB8zW/t3CtqZROaw2lqRaTYQ/S7m6Z6jXJLBcxl m2aMFWohgh12Z7v/odJ8aMosZomXpSHjPKlaWO93qJxdmvV57nusV8jd/BqlprFa TxCETIdQIrwoQdQxw1W0iudaCAnZcHxyyn0/Fbkx4p1mk2X01dcYpB9qbh1DooHe mdbVBlKzTnJKBI8ngaVC3nRgtzlF9llwJjmRtAElDSP6rieFogcmQeodMiFHPsJl fI+ZOjEdzWZiBhVu3VL/vLGeOq2sWKT4iwaDDCdLxSPPjA/6giYOhiH5xFco320N xLOzgITEQ0FUpiWgUoM0ZMrWsFoI40o7KpitG3kDCC58p30WLmg0PRB+blK+4lZD wfS7nsgDabbmGdGBxVt8I9d8aw1u3u0Na9TMMVqH4BY6t7DK/Cr+BIxsTobk/jWW jAKpJN4qPZs+lYH0x0I+MPEvJYwVUh+tbRlbHCqv1LkE/HoJY9srP6RNu5Br0rO3 nrTznfphOlX5t+FwaF6++380oLY4mv8OdZQ3tnB7qme/V4WDceSmTab+YV1AwFoi V8hW0skiTnUBTmE3EH5hlwO7+PT5FH0ETHrLU3WqIhuxhZdhS2Q= =V2gf -----END PGP SIGNATURE----- --PbL0dDXW+OFIUKJb--