8000 vivarium: add a forward to a running guest through the egress · Issue #1414 · nixidae/nixidae · GitHub
[go: up one dir, main page]

Skip to content

vivarium: add a forward to a running guest through the egress #1414

Open

Description

@Lillecarl

ports = "all" is gone (User, 2026-11-17): it let a guest driven by hand reach the host on any port without listing it, only because passt cannot add a forward once it runs. On macOS a wide TCP and UDP rule was also about 94000 listeners, past kern.maxfilesperproc (92160).

The egress is vivarium's own program, so it can take a new forward at run time. Proposed: Machine.forward(guest_port, host_port=None, protocol="tcp") asks the guest's egress (or the router's) to bind one more port and returns addr:port; vivarium ctl exec and the MCP server reach it the same way. It updates access.json and what Machine.reachable answers.

Scope: vsock and router uplinks only. passt keeps its fixed forwards until it is removed (#1404).

Refs #1404, #1163


Assisted-By: Claude Opus 5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    source: vivarium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0