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=202510 header.b=hllnjRO0; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id D223D5A026F for ; Sat, 25 Oct 2025 10:14:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202510; t=1761380059; bh=XmX2RAMR0NskDOIM17srK7givEvpZo5VhCSkoVJ05tc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hllnjRO0wNCgK/oypgmna7CyReJupGJRaJ6qSAe5EgDeOZxGoy78DsHUmTgSEYkPa jE0gvj6wd9w3QfnuPbC0kNO1n9yXv126JoXdV6I898UPJpoEK4EtMNfd7GphEiQCDl 7L8A+ePsiOeQGExMnlXOnRRRu8C1eMwevkU0Vwdh20KeygY9la+xuoe/YXjBXVWjT1 KepvcUZqRylGtpyjOiKphSq7Tlm/TCcFdZmpNFdJA4HsI1JNHUjeUSlearkDnv+pO4 HO4cdj5Xxjd35WnNZIsAFwsNmOXTRx+JS29+o4LRF52XflS0NWN7b/9d147vREIT6+ D6igkABHEXO7A== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ctsxR1KRMz4w9m; Sat, 25 Oct 2025 19:14:19 +1100 (AEDT) Date: Sat, 25 Oct 2025 19:14:12 +1100 From: David Gibson To: baleti Subject: Re: port forward from guest to host- inquiry Message-ID: References: <69c1a8e2-2f28-4905-8bc5-682f3cfa1eb8@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="lxm+MFb9CrPCojGH" Content-Disposition: inline In-Reply-To: <69c1a8e2-2f28-4905-8bc5-682f3cfa1eb8@gmail.com> X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Hits: emergency X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved Message-ID-Hash: PQJDX5MTUQMXLINCP77FI6KJKR7355FH X-Message-ID-Hash: PQJDX5MTUQMXLINCP77FI6KJKR7355FH X-Mailman-Approved-At: Sat, 25 Oct 2025 10:41:57 +0200 CC: passt-user@passt.top X-Mailman-Version: 3.3.8 Precedence: list List-Id: "For passt users: support, questions and answers" Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --lxm+MFb9CrPCojGH Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 25, 2025 at 01:02:36AM +0100, baleti wrote: > does anyone know if passt can port forward from guest to host? I'm trying= to > make a diod server available on the guest? I'm assuming you're using passt (guest is a VM) not pasta (guest is a container). >=20 > on host I run a service listening on 9564: > =A0~ $ diod --foreground --listen 0.0.0.0:9564 --export > /home/user/autocad-ballet --no-auth >=20 > is there a way for passt to make it available on the guest? Yes, but you don't need an explicit forward for this - passt's default behaviour is to let the guest access things outside, including the host. The complication is that, by default, the guest gets the same address as the host, so the guest can't access the host using it's normal address. However, also by default, we remap the default gateway address to the host. That is, if on the guest you connect to the address of the default gateway, port 9564, that will actually connect to diod on the host. The details of this can be adjusted with the --map-host-loopback, --map-guest-addr and -no-map-gw options. --=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 --lxm+MFb9CrPCojGH Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmj8hsEACgkQzQJF27ox 2Gd8wg//d4/xjAHYq4RzuF5qO2s5jSwWaVu/cLjMRwfPCOlYx88l+BN1zWfwsNHZ qZxeP6f9InAccWDd0sI0JQ8NwKRZzgfU3/HeunKkmexcRQi9l9E05wVdRR9+IDCh WbyruWCHBi0v4tQxIHZrnV1tYkvUBX2qorO4KoEfmyVN6yCwC+6pkzgqdv37FhE7 NfnnjQs9nMNmqt1CWYCuM+mrl2ALvoLK9vdexi/RgVBeL9cFG3XUuv2fs7ncpvjF OuGHEykpicuD9LDverNkhX1SalzZrC1slT9YGmNDFyyJgjYtK6P1OVkXNyAIqsn8 jtUSZ2YdnMh6pr+QY/Ue++W59KMh/R9qWd9NkLIb9r15wrWDScKoOlKmvZCHfDbi Xx3O8W9X6xvbzaJwgrZPFU3eYcVP49JYF4vR//CKICpmXn+6XubrrE0iJrlMP+92 mm4P9uCks+8qfK/MTy75CnyrvMZOCvk7gfDHXyreciHs93RlEDdBLLgWny6JOFPT Ap4a85xrGsXaj1vt/cCBfK/S+vxpoI8oZzXlOy6H9K4Z74XPiak4pMQBcZfU7i7o 9W1+gMViOLYh8SXYemngQeOjMrE818C6Y/A/ZsJOVSlSbmaG9loJEzmS+2bvkeyL Ld/ISRSaA5kqaAnikJo8rbNDvfO8OWyU5IqEwIuig3GJSKcof98= =uw7J -----END PGP SIGNATURE----- --lxm+MFb9CrPCojGH--