Share feedback
Answers are generated based on the documentation.

sbx policy deny network

DescriptionDeny network access to specified hosts
Usagesbx policy deny network [-g | SANDBOX] RESOURCES [flags]

Description

Block sandbox network access to the specified hosts.

RESOURCES is a comma-separated list of hostnames, domains, or IP addresses. Deny rules always take precedence over allow rules.

Use -g/--global to apply the rule globally to all sandboxes, or provide SANDBOX before RESOURCES to add the rule to policy "local" scoped to that sandbox.

Options

OptionDefaultDescription
-g, --globalApply the rule globally to all sandboxes

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# Block access to a host globally
sbx policy deny network -g ads.example.com

# Block a host only for a specific sandbox
sbx policy deny network my-sandbox ads.example.com

# Block all outbound traffic globally
sbx policy deny network -g "**"