From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id F2F5B5A0269; Thu, 23 Jul 2026 17:16:03 +0200 (CEST) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH v2 0/2] Allow users to give source address with --gateway also for IPv6 Date: Thu, 23 Jul 2026 17:16:01 +0200 Message-ID: <20260723151603.2967615-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: SMDWDJV7WJ4FV232TAIBPT2V527XKRNU X-Message-ID-Hash: SMDWDJV7WJ4FV232TAIBPT2V527XKRNU X-MailFrom: sbrivio@passt.top 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: =?UTF-8?q?Jan=20Rod=C3=A1k?= , Paul Holzinger , 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: ...just like it happens with IPv4. This offers a solution for https://bugs.passt.top/show_bug.cgi?id=217, as Podman can specify --address and --gateway for IPv6, and provide a unique local address, without the need to introduce other options. Further options might be more appropriate, strictly speaking, but as the future perspective is to eventually generalise NAT tables, it would be nice to avoid them right now. v2: In 2/2, use the address passed as --gateway as source for inbound NAT from the host also when we're not in local mode Stefano Brivio (2): conf: Honour --address, --gateway, --netmask in local mode as well conf, fwd: Prefer same-scope address as inbound source address from host conf.c | 25 +++++++++++++++++++++---- fwd.c | 6 +++++- passt.h | 2 ++ 3 files changed, 28 insertions(+), 5 deletions(-) -- 2.43.0