5395c7196f
Agent VMs must reach the shared gateway that now runs in the infra VM (egress:9099 / supervise:9100 / git-http:9420 at the orchestrator link's guest IP). Add a PREROUTING DNAT: agents keep addressing their own host-side TAP IP on the gateway ports, and the rule redirects that to the infra VM. The isolation table's existing `ct status dnat accept` forward rule lets the DNAT'd traffic through; every other agent egress stays dropped, so a bottle still reaches only the gateway and nothing else. Source IP is deliberately NOT masqueraded: the gateway attributes each request to the originating bottle by its guest IP, which the /31 TAP + the bot_bottle_fc nft table make unspoofable. Keeping the agent addressed at its own host TAP IP means no per-bottle config change vs the docker-DNAT path it replaces. - scripts/firecracker-netpool.sh: `_install_gateway_route` adds `table ip <table>_gw` (prerouting dstnat -> orch_guest on the gateway ports); wired into up/down/status. The nix module needs no change — it runs this script, and the ports are baked in. Verified on a KVM host: an agent VM's `curl -x http://<its-host-tap>:9099` reaches mitmproxy in the infra VM and gets a 403 (correct policy denial for an unregistered bottle) — i.e. the route lands end-to-end. Persist with a nixos-rebuild; the imperative rule holds until then. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WBMWTEtQdJ4W5UrWuLHCck