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=202606 header.b=XfD9Ls2Q; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id 64B065A0269 for ; Thu, 02 Jul 2026 09:32:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202606; t=1782977541; bh=Sye4ui7V1IoG6fjo4WIw+lnp1wIbL+GZVmyQCeXJbKs=; h=From:To:Cc:Subject:Date:From; b=XfD9Ls2QL4IZ1fj2PHSQ68/OpWpPjsz7KqEjCBeN/fLu7pNr6Ez/wS780qUa46KtO CWinLITsCfK/qfg5nr6k+/C1cdD1LE7oosMotGhEmAuOaEGqWW0HDh0xKT8MpHGyPS v+6XT6THfDNPIsXbTPz9WDuy3lGKgbFH/UVwFHY8K3cq4jwp5G0Ro8Gnb3oglc58+d k82B3YAWWzfoZZAB8jQojzF35EGvjudrhOXWxxIYdkGbnejaFsLNMdCuwO0LvK6q0q cc12jFoOa4RoAxcgNsBSmAUOKzSzkqOWoovDN9js1gRcS2wq9ahvnwsoaY6sQFzz9k RzskK9NI/9J+g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4grT9d6ZnNz58lv; Thu, 02 Jul 2026 17:32:21 +1000 (AEST) From: David Gibson To: passt-dev@passt.top, Stefano Brivio Subject: [PATCH v2 0/2] Target address mapping Date: Thu, 2 Jul 2026 17:32:13 +1000 Message-ID: <20260702073215.751291-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.55.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 5BJIO2C55BZX5DRGDE3XKEFTP3HSEPH6 X-Message-ID-Hash: 5BJIO2C55BZX5DRGDE3XKEFTP3HSEPH6 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: David Gibson 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: Here's another draft for target address remapping. I've now given this some basic, though not extensive testing. Based on v4 of my parsing rework series. v2: * Remove the patch altering --host-lo-to-ns-lo; it's not relevant to the change at hand. * Allow either just target address, just target port or both to be specified * Allow target address to be specified with all * Prohibit (for now) forwarding between IPv4 and IPv6 (including from to a specific address of either family). * Add the target address when formatting rules for debug display. * Updated man page for new syntax David Gibson (1): fwd_rule: Parse target addresses for forwarding rules Stefano Brivio (1): fwd, fwd_rule: Implement configurable target address mapping fwd.c | 8 +++-- fwd_rule.c | 101 +++++++++++++++++++++++++++++++++++++++++++---------- fwd_rule.h | 7 ++-- passt.1 | 31 +++++++++++----- pesto.h | 6 +++- 5 files changed, 121 insertions(+), 32 deletions(-) -- 2.55.0