Fix connection for podman with pasta networking - #956
Merged
Conversation
Member
|
Hi, thanks for the PR. Please fix the errors reported by CI and sign off on your commits. |
Signed-off-by: Benoît Legat <benoit.legat@gmail.com>
Signed-off-by: Benoît Legat <benoit.legat@gmail.com>
Signed-off-by: Benoît Legat <benoit.legat@gmail.com>
blegat
force-pushed
the
fix-podman-pasta-netns
branch
from
August 9, 2026 16:46
5576f95 to
594a0d0
Compare
Contributor
Author
|
All green now :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On ArchLinux with podman version 6.0.1. The Word app wasn't launching. It seems to be because of the new pasta networking with modern podman version.
To be clearn, consider the three places:
podman unshare --rootless-netnssteps into.For an old podman (slirp4netns era), the port forwarder was reachable at
127.0.0.1:3389inside the sandbox.For a modern podman (pasta/netavark era), the forwarder (rootlessport) binds
127.0.0.1:3389in the host.So I first tried using
127.0.0.1:3389directly from the host. The sandbox then redirects to the container's 127.0.0.1. However, it seems that and Windows VM's port forwarder inside the container (passt/dnsmasq from dockur/windows) only accepts traffic arriving through the container's network card (eth0), not its loopback. Worse, it always accepts and only fails afterward (so a simple "is the port open?" test says yes even when it's broken).What works for me is to step inside the sandbox and dial the container's real IP address instead of 127.0.0.1. That traffic enters the container through eth0 and it works.
With this PR, we first try connecting through the container ip. If it fails, we fallback to what was done before this PR.