Outbound restrictions
An egress policy limits where a workstation connects, and Ringleader enforces it outside the workstation.
An egress policy limits where a workstation connects, and Ringleader enforces it outside the
workstation. Nothing running on the workstation can undo it, including its own root user. By
default a workstation reaches anything your network routes, including the computers on your local
network and anything your VPN routes to. An egress block narrows the workstation to an allowlist
of destinations, or lets it reach everything except a deny list.
The enforcement setting
enforcement is required and has no default, so you always choose how strictly the policy is
held. Choose strict to find out when you apply the workstation
whether its provider can hold the policy. Choose bestEffort to have the workstation set up
either way, with any shortfall reported on its EgressEnforced condition. audit records what
a workstation reaches, as Workstation reach audit
describes, and open allows everything except a deny list.
Outbound connection restrictions
defines the four values.
Ringleader enforces the policy in your cloud’s firewall, in an edge instance, or in a network process on your computer, depending on the provider. Enforcement points says which.
Destinations Ringleader adds
You never list the infrastructure a workstation needs to come up and stay managed. Ringleader adds those destinations to every policy, so a policy cannot cut the workstation off from Ringleader itself.
Ringleader also adds an attached Integration’s endpoint, a host that receives an injected
credential, and an MCP server’s host. It adds each one only on the ports it needs. An
inspect: true rule is different: it checks a host that the policy already allows, and does not
add that host to the allowlist. rl workstation describe names the Integration beside each
destination it added.
Layers and the Policy limit
A Policy limit is a restriction that an administrator writes in a Policy, which a member cannot
widen. Configuration layers can make a policy stricter and never weaker. A higher-priority layer that
says bestEffort or open does not undo a team layer’s strict. A layer cannot take away a
destination or deny entry that another layer adds.
Layer combination lists the two rules.
Layers cannot set a limit. Configuration layers merge by adding destinations together, which
only widens. A member can always write a higher-priority layer over their own workstation and add
whatever they like, so a restriction written as a layer is not a restriction. A limit has to live
where a member cannot write, and that is a Policy. An administrator writes an
egressDestinations rule, and a member cannot widen it.
Egress destination entries says how
entries are matched.
Allow only some destinations
To restrict a workstation to the destinations it needs, declare a strict policy that lists them.
This example allows GitHub, the npm registry and one database:
spec:
egress:
enforcement: strict
destinations:
- host: github.com
- host: registry.npmjs.org
- cidr: 203.0.113.7
ports: [5432]Add the
egressblock to the workstation’s file, or to a WorkstationConfig the workstation uses. A local workstation does not have to name its provider, as Checks when you apply a policy describes.Apply the file:
rl apply -f my-box.yamlRingleader refuses the workstation here if its provider cannot hold the policy.
Check what is enforced:
rl workstation describe my-boxThe
EgressEnforcedcondition readsTruewith reasonEnforced. If it readsFalse, Enforcement points says how to fix it. Ahostdestination on a cloud needs an Edge, so on a cloud a namespace administrator must declare one first. See Edge management.
If you don’t know which destinations the workstation needs, record them first, as
Workstation reach audit shows.
A host destination defaults to port 443. Add ports: [80, 443] for plain HTTP. No other port
is possible for a name, as Filtering behavior
explains.
Keep a workstation off your local network
A local workstation with no egress block reaches the computers on your local network. That
includes your router, a NAS, the office network over your VPN and your Tailscale peers.
Ringleader leaves that open because developers often reach internal services over their VPN. To
close it and still reach the internet, add a deny list that refuses the private ranges:
spec:
egress:
enforcement: open
deny:
- privateNetworks: trueAdd the
egressblock to the workstation’s file.Apply the file:
rl apply -f my-box.yamlOn AWS, a namespace administrator must also declare an Edge, and
rl applyrefuses the workstation until one exists. See Edge management.Check what is enforced:
rl workstation describe my-boxThe
EgressEnforcedcondition readsTruewith reasonDenyHeld.
The workstation now reaches public addresses. It cannot reach your router, a NAS, the office network over your VPN, or your Tailscale peers. The destinations Ringleader needs to manage the workstation stay reachable. If that is all you need, you are done.
Enforcement points says what enforces the list on each provider, and Filtering behavior lists what a deny list does not stop.
Block specific destinations
To refuse only some destinations, write a deny list with cidr and host entries. Each entry is
one of the three kinds in the
deny entry table.
This example refuses one network on every port, and one name on port 443 only:
spec:
egress:
enforcement: open
deny:
- cidr: 10.20.0.0/16
- host: "*.example.com"
ports: [443]- Add the
denyentries to theegressblock in the workstation’s file. - Apply the file with
rl apply -f my-box.yaml. - Check what is enforced with
rl workstation describe my-box. TheEgressEnforcedcondition readsTruewith reasonDenyHeld. On AWS, and for ahostentry on any cloud, an Edge must serve the workstation first. See Edge management.
You can add a deny list to a strict, bestEffort or audit policy too. There it removes
destinations from what the policy allows. When an allow entry and a deny entry both cover a
destination, the workstation cannot reach it.
Change a deny list on a running workstation
You can change the list while the workstation runs. The new list applies without restarting the workstation, and it ends any open connection to an address it now refuses.
Edit the
denyentries in the workstation’s file, then apply it withrl apply -f my-box.yaml.Read the workstation’s conditions:
rl workstation describe my-boxWith an
openpolicy,EgressEnforcedreadsTruewith reasonDenyHeldonce whatever enforces the list reports holding it. Beside another policy, the reason stays the policy’s and the message adds a sentence about the list.status.egress.denythen lists what the workstation refuses. Until then the reason isDenyNotServing, and the workstation still reaches what the new list names. For a list that nothing can hold, the reason isDenyNotHeld.
Next steps
- Workstation reach audit records
a workstation’s connections and turns them into a
strictpolicy. - Enforcement points says what holds a policy on each provider, and what happens while an Edge is missing.
- Filtering behavior covers names, DNS and denied connections.
- Lock down Claude Code for unattended runs combines an allowlist, keys kept off the workstation and a deadline for Claude Code that runs with nobody watching.
- Outbound connection restrictions
has the
egressfields, values and destination tables.