• Customers
  • Pricing
  • Docs
Sign Up

Compute Glossary

How computers for agents work, from the hardware to the sandbox.

  1. Compute Glossary
  2. /
  3. Networking

Egress control

Also called Egress filtering, Outbound firewall

Host networkSandboxEgress rulesAllowed hostsAny other host, blocked

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, which is easier to reason about than a list of bans.

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. Its rules sit outside the machine, 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.

Address rules

Address rules are egress rules that allow or block traffic by destination address and port. The host or the cloud network enforces them outside the machine, so they are fast and hard to get around. Each packet is checked against a short list of allowed ranges, a test the kernel can do at full speed. Port rules narrow things further, for example allowing a database port but nothing else on that server.

They fit the modern internet poorly, though. A single service may sit behind a content delivery network with many changing addresses, and one address may serve many unrelated sites. Cloud providers also reuse addresses, so an address that belonged to an approved service last month may belong to someone else today. Ranges wide enough to cover a large provider's services cover its other customers too.

An address allowlist for such a service either breaks when its addresses change or lets in far more than intended. Address rules work best as the final layer beneath rules by name. In that role they block private ranges and cloud metadata endpoints that no name rule should ever open. They also stay useful for fixed destinations inside a private network, whose addresses rarely change.

Domain rules

Domain rules are egress rules that allow traffic by name, such as a package registry or a single API host. They match how people think about destinations, but they need a way to tie each name to the connections that follow. Packets carry addresses, not names, so the name has to be learned somewhere along the way. Wildcards that allow a domain and all its subdomains are common, but they widen the rule to every host the owner runs.

DNS-based filtering answers only for allowed names and adds the addresses it returns to the address allowlist for a short time. Code that already knows an address, or brings its own resolver, never asks the filter, so the address rules behind it do the real blocking. The approach needs no change to the traffic itself, so it works for any protocol. Shared addresses weaken it, since once an allowed name resolves to one, every other site on that address opens too.

A proxy instead ends each outbound connection and checks the requested name before connecting onward. It sees the intended destination even when an address is shared, but it has to be the only route out of the machine. Deeper inspection means decrypting TLS with a certificate the machine trusts, which shows the proxy full requests and every secret in them. A proxy also adds a hop to each connection and must stay up for anything to get out.

MethodWhat it checksWeakness
Address rulesThe destination address and port of each packet.Shared and changing addresses make the rules too broad or out of date.
DNS filteringThe names a machine looks up.Code that skips the lookup is stopped only by the address rules behind it.
ProxyThe name in the HTTP Host header or the TLS server name indication.All traffic has to pass through it, so it must be the only way out.

Data exfiltration

Data exfiltration is the sending of data out of a machine without permission. Allowlists reduce the risk but do not remove it, because a permitted destination that accepts uploads can still carry data out. The data can be anything the machine can read, from source code to the credentials it was given for its task. For an agent, the trigger is often a prompt injection, text that tells the model to send data somewhere.

A code host or a storage bucket is a common example of such a destination. DNS queries can leak data too, by encoding it in the names they look up. An attacker only needs an account on the same service to receive the data in a bucket or repository of their own. DNS leaks work even when other traffic is blocked, as long as some resolver forwards the queries outward.

Tighter policies limit methods and paths through a proxy that inspects traffic, or log every connection for review. A machine with no outbound network at all cannot leak what it reads. Cutting the network entirely is rarely practical, since most work needs to fetch packages or call an API. Credentials scoped to the task then limit what a leak can expose.

Related terms

  • Virtual network interface
  • Isolation
  • Untrusted code
  • AI agent
  • Sandbox
PreviousVirtual network interfaceNextSSH

On this page

Compute Glossary
  1. Foundations
    • Sandbox
    • Virtual machine
    • vCPU
    • Block storage
    • Virtual network interface
    • Kernel
    • Hardware virtualization
    • Hypervisor
    • GPU
    • CPU core
    • Memory
    • CPU
    • Local disk
    • Network interface card
    • Compute
    • Workload
    • Latency
  2. Sandboxes
    • Isolation
    • Lifecycle
    • Snapshot
    • Persistence
  3. Virtualization
    • KVM
    • MicroVM
    • Container
  4. Hardware
    • Server
    • CPU architecture
    • CPU type
    • GPU memory
    • GPU model
    • Mac model
  5. Kernel
    • System call
    • Process
    • Memory page
    • Namespace
    • Control group
    • Seccomp
  6. Storage
    • Object storage
    • File system
  7. Networking
    • Egress control
    • SSH
  8. Infrastructure
    • Control plane
    • Scheduler
    • Overcommit
    • Preemption
    • Region
    • Capacity
    • Scale
  9. Agents
    • AI agent
    • Tool call
    • Untrusted code
  10. Reinforcement learning
    • Reinforcement learning
    • Environment
    • Rollout
    • Verifier
    • Reward hacking
    • Actor–learner architecture

Computersfor Agents

Isolated sandboxes for agent code,
ready in under 100 ms.

Start for Free

Subscribe to DotFiles Insider, our monthly digest of AI infrastructure news, deep dives, and Daytona product releases.

Company

  • About
  • Careers
  • Brand
  • Partners
  • Startup Program
  • Research Grants
  • Events
  • Contact

Product

  • Pricing
  • Docs
  • Changelog

Resources

  • Guides
  • Blog

Legal

  • DPA
  • SLA
  • Terms of Service
  • Privacy Policy
Trust Center
All Systems Operational