---
title: "Egress control"
url: https://www.daytona.com/definitions/e/egress-control
---

# Egress control

Egress control is the restriction of the outbound network traffic that a machine may send.

Egress control is the restriction of the traffic that leaves a machine, enforced by rules on the destinations it may reach. Most firewalls guard what comes in, while egress control guards what goes out. A rule names what a machine may reach, and traffic to anything else is dropped or refused. Policies usually start with nothing allowed and open only what a workload needs.

It matters most when the code inside a machine cannot be trusted. A program that can reach any address can download more tools or send away whatever data it can read. Outbound access also lets a compromised machine attack others, or call back to a server that sends it orders. Inbound protection does nothing here, because the machine itself starts each connection.

For untrusted code, including code an AI agent writes and runs, egress control is part of the isolation boundary of a sandbox. Its rules sit outside the sandbox, on its virtual network interface or beyond, where the code inside cannot change them. A firewall inside the guest would not count, since code with root access could turn it off. Many sandboxes on one host can each get their own policy, tied to the interface that carries their traffic.

## Related terms

- [DNS (Domain Name System)](https://www.daytona.com/definitions/d/dns-domain-name-system.md)
- [Firewall](https://www.daytona.com/definitions/f/firewall.md)
- [Ingress](https://www.daytona.com/definitions/i/ingress.md)
- [Prompt injection](https://www.daytona.com/definitions/p/prompt-injection.md)
- [Virtual network interface](https://www.daytona.com/definitions/v/virtual-network-interface.md)
