Features / Outbound network control

Give untrusted code exactly the reach it needs.

Every sandbox has an outbound network policy: the public internet, only the addresses you list, or no network at all. You choose it when you create or fork the sandbox, and it stays fixed for that sandbox.

€10 of usage for 30 days · No credit card

curl -fsSL https://pols.so/install.sh | sh
Policies: default, allowlist and none
3
IPv4 and IPv6 prefixes on an allowlist
64
The SMTP port, blocked in every mode
25

A sluice with two gates

Everything a sandbox sends runs down one channel. The selector on the cabinet sets the policy. Forallowlist a plate drops in with one seat for each prefix you listed; for none a solid gate shuts the channel. Five spigots on the wall stay capped whatever the selector says.

  1. Allowlist gateA plate with a seat for each prefix you list, up to 64 IPv4 or IPv6 CIDR prefixes. It filters by IP address, not by host name.
  2. Shut-off gatenone: nothing gets out. In allowlist and none there is no DNS resolver either.
  3. Policy selectordefault, allowlist or none, chosen when you create or fork the sandbox and fixed after that. A fork keeps its source's policy unless you set one.
  4. Blocked in every modeOther sandboxes, the pols infrastructure, private, CGNAT and link-local addresses (169.254.169.254 too), multicast and broadcast, and SMTP on port 25.
  5. The sandboxEvery new connection it opens leaves through this one channel. Nothing on the internet can open one to it.
  6. The internetWhere default lets connections go: the whole public internet.
  7. The channelA policy applies to new connections. It is set per sandbox, so two sandboxes side by side can have different ones.
  8. The benchOne sandbox, one channel: the policy belongs to the sandbox, not to your account.

One flag at create or fork

The policy filters by IP address, not by host name, so list the addresses or prefixes a service uses. A single address needs /32 (IPv4) or /128 (IPv6). A fork keeps its source's policy unless you set one, so you can fork a prepared sandbox into an offline copy.

In allowlist and none the sandbox has no DNS resolver. For DNS with an allowlist, allow a public resolver's address and point the sandbox at it.

pols CLI
# default: the public internet
$ pols new --name web
# only these prefixes
$ pols new --name locked --egress allowlist --allow 203.0.113.10/32 --allow 2001:db8::/32
# no network at all
$ pols new --name offline --egress none
# a fork may choose its own policy
$ pols fork web --name web-offline --egress none

Blocked in every mode

Some destinations are blocked whatever the policy says, and an allowlist entry that overlaps them is refused:

  • other sandboxes, your own included;
  • the sandbox host and the pols infrastructure, including api.pols.so, ssh.pols.so and *.on.pols.so, so the CLI, published ports and sites cannot be used from inside a sandbox;
  • private (RFC 1918), CGNAT and link-local addresses, including the cloud metadata address 169.254.169.254, and IPv6 unique-local and link-local addresses;
  • multicast and broadcast;
  • outgoing SMTP on TCP port 25: send mail through your provider's submission port or HTTP API.

Nothing on the internet can open a connection to a sandbox. The ways in are the ones pols provides, and they work in every mode: published ports and SSH through the edge, and the desktop, commands, file transfers and computer use through the control plane.

€10 of usage for 30 days · No credit card

Questions

Can I add an address to an allowlist later?

Not to the same sandbox: its policy is fixed. Fork it with --egress allowlist and the full list of --allow prefixes; the fork keeps everything on the disk.

How do I install packages in a sandbox with no network?

Install them first in a sandbox with the default policy, then fork it with --egress none. Or save the prepared sandbox as a template and create sandboxes from it with --egress none.

Can two of my sandboxes talk to each other?

No. Traffic between sandboxes is blocked in every mode, and a sandbox cannot reach published ports or sites under on.pols.so either. Move data through a service outside pols, or copy files out and in with pols cp.

Is outbound traffic billed?

No. Outbound traffic is included in the price in every mode; pols may limit it to protect against abuse.

Start with one machine.

Install the CLI, sign up, and give your agent somewhere to work.

curl -fsSL https://pols.so/install.sh | sh

€10 of usage for 30 days · No credit card

Start my free trial

€10 of usage for 30 days · No credit card