From: Stefano Brivio <sbrivio@redhat.com>
To: Peter Foley <pefoley@google.com>
Cc: passt-dev@passt.top, Felix Wu <flwu@google.com>
Subject: Re: Support for equivalent to slirp guestfwd
Date: Fri, 27 Feb 2026 14:36:58 +0100 (CET) [thread overview]
Message-ID: <20260227143657.75194550@elisabeth> (raw)
In-Reply-To: <CAAAKUPOKFbB2yJr2oyJg2hm2a86wA_NKCHh2yhRL-i1wB=khkg@mail.gmail.com>
On Thu, 26 Feb 2026 11:31:15 -0500
Peter Foley <pefoley@google.com> wrote:
> On Thu, Feb 26, 2026 at 7:47 AM Stefano Brivio <sbrivio@redhat.com> wrote:
>
> > ...there's ongoing effort to make this more flexible, by adding support
> > for generic NAT rules (https://bugs.passt.top/show_bug.cgi?id=140) so
> > that you can specifically map different ports and addresses to
> > specific ports and addresses. And do so dynamically, at runtime, too.
> >
> > We now have a rather generic "forwarding rules" table implementation,
> > even if not entirely complete:
> >
> > https://archives.passt.top/passt-dev/20260116005926.616085-1-david@gibson.dropbear.id.au/
> >
> > and a very rudimentary draft of pesto(1), the client that would enable
> > configuring all that at runtime (I'm working on it these days):
> >
> > https://archives.passt.top/passt-dev/20260204234209.455262-1-sbrivio@redhat.com/
> >
> > ...there's quite a bit left to do, and patches are warmly welcome.
>
> Alright, that's about what I expected.
>
> We currently heavily rely on stuff
> like guestfwd=udp:[::]:1000-udp:[::1]:14418,
> where we want to redirect all outbound traffic from the guest to port 1000
> to a different dynamically allocated port where a server binary is
> listening on the host.
Hah, I see.
Somewhat curiously, that's the first time I see this kind of usage being
reported. I knew libslirp could do it but I wasn't aware of any
concrete usage.
> We don't need runtime configuration, just the ability to specify everything
> statically when starting qemu.
That will come pretty much for free once we have generic code for the
runtime updates, I think.
> I can't promise anything, but I'll see if this is something other people on
> my team would have cycles to help out with.
Thanks!
--
Stefano
prev parent reply other threads:[~2026-02-27 13:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-25 22:35 Peter Foley
2026-02-26 12:47 ` Stefano Brivio
2026-02-26 16:31 ` Peter Foley
2026-02-27 13:36 ` Stefano Brivio [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260227143657.75194550@elisabeth \
--to=sbrivio@redhat.com \
--cc=flwu@google.com \
--cc=passt-dev@passt.top \
--cc=pefoley@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).