public inbox for passt-user@passt.top
 help / color / mirror / Atom feed
From: Jan Wrobel <jan@mixedbit.org>
To: passt-user@passt.top
Subject: Auto forwarding ports, but only to localhost
Date: Thu, 27 Nov 2025 13:48:54 +0100	[thread overview]
Message-ID: <CACm05o8+8FRr9KGVq+wF7BcnwRR9XXi5QyuDvArv9GiT=xXnrw@mail.gmail.com> (raw)

Hi,

For pasta, would you consider an option to enable automatic forwarding
of ports bound in a namespace, but make the forwarded ports available
only via localhost, not all addresses?

I'm working on a sandboxing program which uses pasta. The option -t
"auto" is super convenient, but requires extra care, without proper
firewall setup bound ports become automatically available to outside
world. For a sandboxing program like mine, it is not a safe default to
run with, because the program shouldn't assume the user will have a
firewall configured.

If something like "localhost/auto" was supported, it would match the
convenience of "auto", no manual port mapping config would be needed,
but would be safer for uses cases where exposing ports to outside
world is problematic.

Cheers,
Jan

             reply	other threads:[~2025-11-27 12:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-11-27 12:48 Jan Wrobel [this message]
2025-11-28  1:10 ` David Gibson
2025-11-28 11:03   ` Jan Wrobel
2025-11-30  7:24     ` David Gibson
2025-11-30 10:42     ` Stefano Brivio
     [not found]       ` <CACm05o-ZJq9AE1bzc7hZ4YGi2Jy346ZxJ4ra9Pwsx3_AkX-SNA@mail.gmail.com>
2025-12-01 10:32         ` Stefano Brivio
2025-12-01 11:49           ` Jan Wrobel

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='CACm05o8+8FRr9KGVq+wF7BcnwRR9XXi5QyuDvArv9GiT=xXnrw@mail.gmail.com' \
    --to=jan@mixedbit.org \
    --cc=passt-user@passt.top \
    /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.
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).