InternetSettings controls outbound network access for supported private sandbox networks. Open access remains the default.
Import
Fields
"open" | "off" | "restricted" | None
default:"None"
Outbound access mode.
open allows internet access, off blocks outbound access, and restricted allows only allowed_cidrs. Leave unset when using allowed_domains.tuple[str, ...]
default:"()"
IPv4 addresses and network ranges allowed in
restricted mode. A bare address is stored as a /32 range. Overlapping ranges are combined.tuple[str, ...]
default:"(\"*\",)"
Domains resolved to IPv4 addresses during sandbox setup. URL entries are reduced to their hostname. Do not combine this field with
mode.tuple[str, ...]
default:"(\"*\",)"
Reserved field. HTTP-method filtering is not supported, so only the default wildcard is accepted.
Turn outbound access off
Allow IPv4 destinations
vsock command channel. See Network controls for the support matrix and higher-level examples.
Validation
restrictedrequires at least one entry inallowed_cidrs.allowed_cidrscan only be used withrestricted.- IPv6 ranges, sandbox ranges, and link-local ranges are rejected.
allowed_domainscannot be combined withmode.- HTTP-method restrictions are rejected.
- Unknown fields are rejected.
InternetSettings and VMConfig construction raises Pydantic’s ValidationError. Public Celesto creation methods raise celesto.ValidationError for invalid or unsupported combinations.
