Skip to main content

Internet Access Control

Controlling internet access is crucial for AI agents and secure code execution. VoidRun provides granular network control at the MicroVM level, allowing you to restrict outbound connections to prevent data exfiltration and protect against malicious sites.

Why Network Control Matters

🔒 Data Protection

Prevent AI agents from leaking sensitive data to external servers.

🛡️ Security

Block access to malicious domains and unauthorized endpoints.

📋 Compliance

Meet regulatory requirements for isolated code execution.

Use Cases

Enabling/Disabling Internet Access

Disable Internet Access

Completely disable outbound internet access for maximum security:

Enable Internet Access

Enable full internet access (default behavior):

Allowlists

Configure allowlists to permit access only to specific domains or IPs:

Domain Allowlist

IP Allowlist

Blocklists

Configure blocklists to deny access to specific domains or IPs:

Security Best Practices

Network rules are enforced at the MicroVM level using iptables. This provides kernel-level isolation and prevents bypass attempts by AI agents or malicious code.

🔒 Maximum Security

Block all internet access. Only allow internal communication.

🎯 Selective Access

Allow only required APIs. Block everything else.

Security Checklist

1

Identify Required Endpoints

List all external APIs and services your sandbox needs to access.
2

Create Allowlist

Configure iptables to allow only those specific endpoints.
3

Block Everything Else

Set default DROP policy for all other outbound traffic.
4

Test Configuration

Verify allowed endpoints work and blocked endpoints fail.
5

Monitor Traffic

Log any blocked connection attempts for auditing.
Network rules are reset when a sandbox is terminated. For persistent security policies, configure network rules at the start of each session or use a custom image with pre-configured iptables rules.

Next Steps

Tailscale VPN

Connect sandboxes to your private network via Tailscale.

Custom Images

Create images with pre-configured network rules.