Skip to content

forwarder: propagate source IP#634

Open
AkihiroSuda wants to merge 1 commit into
containers:mainfrom
AkihiroSuda:propagate-src-ip
Open

forwarder: propagate source IP#634
AkihiroSuda wants to merge 1 commit into
containers:mainfrom
AkihiroSuda:propagate-src-ip

Conversation

@AkihiroSuda

@AkihiroSuda AkihiroSuda commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

Fix:

CONTAINERD_ROOTLESS_ROOTLESSKIT_NET=gvisor-tap-vsock \
CONTAINERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=gvisor-tap-vsock \
containerd-rootless.sh 
nerdctl run -d -p 8080:80 nginx:alpine
curl HOST_IP:8080
nerdctl logs nginx

When the port driver is set to gvisor-tap-vsock, the source IP is always set to 10.0.2.1.
The correct IP is propagated when the port driver is set to builtin or slirp4netns (w/ NET=slirp4netns too).

Note: used Claude Code

@openshift-ci

openshift-ci Bot commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AkihiroSuda
Once this PR has been reviewed and has the lgtm label, please assign cfergeau for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Comment thread vendor/github.com/inetaf/tcpproxy/tcpproxy.go
@gbraad

gbraad commented May 17, 2026

Copy link
Copy Markdown
Member

@cfergeau WDYT? We need this for containerd rootless use

@cfergeau

Copy link
Copy Markdown
Collaborator

@cfergeau WDYT? We need this for containerd rootless use

This was marked as "work in progress" until recently so I did not look closely, but no objection to the general idea.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants