public inbox for passt-user@passt.top
 help / color / mirror / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Felix Rubio <felix@kngnt.org>
Cc: passt-user@passt.top
Subject: Re: Connecting back to the host through a dummy veth interface
Date: Mon, 22 Dec 2025 23:51:13 +0100	[thread overview]
Message-ID: <20251222235113.7c592e54@elisabeth> (raw)
In-Reply-To: <2724792.Lt9SDvczpP@altair>

On Sun, 21 Dec 2025 16:32:23 +0100
Felix Rubio <felix@kngnt.org> wrote:

> Something more: I see that pasta is binding to 0.0.0.0. This means that, while 
> allows other pods to connect to the published port of a container through 
> 169.254.1.2, it also enables that port to be reachable from the network.
> 
> Is there any way to prevent that?

Yes, you can specify specific addresses or interfaces to bind to,
relevant examples from pasta(1):

                     -t 192.0.2.1/22
                            Forward local port 22, bound to 192.0.2.1, to port
                            22 on the guest

                     -t 192.0.2.1%eth0/22
                            Forward  local port 22, bound to 192.0.2.1 and in‐
                            terface eth0, to port 22

                     -t %eth0/22
                            Forward local port 22, bound to any address on in‐
                            terface eth0, to port 22

Podman supports part of that as well, see podman-run(1) (--publish) or:

  https://github.com/containers/podman/blob/2fbecb48e166ed79662ea5e45f2d56081ad08d3b/test/system/505-networking-pasta.bats#L186

for a summary.

-- 
Stefano


  reply	other threads:[~2025-12-22 22:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <176606116131.2775.3279769610610037541@maja>
2025-12-20 14:12 ` Stefano Brivio
2025-12-20 14:28   ` Felix Rubio
2025-12-21 10:47     ` Stefano Brivio
2025-12-21 15:32       ` Felix Rubio
2025-12-22 22:51         ` Stefano Brivio [this message]
2025-12-22 12:48       ` Felix Rubio
2025-12-22 22:51         ` Stefano Brivio
2025-12-23  7:34           ` Felix Rubio
     [not found]       ` <3627291.QJadu78ljV@altair>
2025-12-22 22:51         ` Stefano Brivio
2025-12-18 12:32 Felix Rubio

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=20251222235113.7c592e54@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=felix@kngnt.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).