- An exit: a small agent you run on a machine you own, such as a home lab, an office box or a cheap VPS. Sites see that machine’s address. It dials out to Zode, so you open no port, and it works behind CGNAT and home routers.
- A proxy: your own HTTP, HTTPS or SOCKS5 proxy on a public address.
Run an exit on your own machine
1
Create the exit
2
Run the agent on your machine
Install the CLI on the machine your sandboxes should leave from, then run the command It reconnects on its own if the network drops, and on a Mac it keeps the Mac from idle-sleeping while it runs. To keep it running after you close the terminal and start it at login, install it as a service instead:
create printed:3
Route an environment through it
default environment now leaves from your machine.zode exit ls shows each exit, whether it is online and the address sites see.
In the console, open Environments, choose an environment, then Outbound proxies → Add proxy. Pick Zode exit, your own machine as the protocol. You can create the exit there and copy its command.
What your machine does
- It connects to each site itself, so DNS is answered on your machine and sites see your address.
- It refuses private, loopback and link-local addresses, and names that resolve to them, so a sandbox cannot reach your home network or your router. Start it with
--allow-privateif you want sandboxes to reach your private network. - TLS stays end to end between Zode and the site. Your machine sees host names and how many bytes go each way, not the content.
Traffic through an exit is limited by your machine’s upload speed and adds a hop through Zode. Git hosts and package registries stay on the fast direct path unless a host rule names them.
When your machine is offline
A machine that sleeps or loses its network takes the exit offline, so a machine that stays on works best. By default, if your exit has been offline for 3 minutes, its sandboxes go back to reaching the internet directly from Zode, and return to your machine within about a minute of it reconnecting. If traffic must never leave from a Zode address, make the exit block instead:CI runners
CI runners are created in the default environment unless you choose another, so routingdefault through an exit also routes CI. To keep CI direct, give it its own environment:
Use your own proxy
http, https (TLS to the proxy) and socks5. The proxy must be on a public address. Passwords are never shown again; the console and API show them as ****.
Send only some hosts through a route
- The first host rule that names the host.
- Otherwise the default route, except for hosts that stay direct unless a rule names them: git hosts, package registries,
*.zode.dev, and every host one of your secrets is sent to. - Otherwise direct.
shop.example.com or *.example.com, which also matches example.com. An environment has up to 20 routes and 200 rules.
zode env egress default shows the routes. zode env egress default off sends everything direct again.
When a route fails
A route that cannot be reached is an error, never a silent direct connection. Plain HTTP requests get a502 naming the route; HTTPS connections are closed. An exit that is offline fails the same way, until its agent reconnects.