Skip to content

Commit 7b0caa3

Browse files
dvdksnclaude
andcommitted
sandboxes: fix policy allowlist command for host services
The proxy rewrites host.docker.internal to localhost before policy checks run, so the allowlist rule must target localhost:<port>. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 92a4a9d commit 7b0caa3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/manuals/ai/sandboxes/usage.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,12 @@ hostname `host.docker.internal`.
305305
Use this instead of `127.0.0.1` or your machine's local network IP address,
306306
which are not routable from inside the sandbox.
307307

308-
You must also add `host.docker.internal` to your network policy allowlist:
308+
The sandbox proxy translates `host.docker.internal` to `localhost` before
309+
forwarding the request, so you must add the `localhost` address with the
310+
specific port to your network policy allowlist:
309311

310312
```console
311-
$ sbx policy allow network host.docker.internal
313+
$ sbx policy allow network localhost:11434
312314
```
313315

314316
Then use `host.docker.internal` in any configuration or request that points at

0 commit comments

Comments
 (0)