froogdocs
Dashboard

DocsIntegrations

Network and outbound traffic

Outbound traffic is open. Inbound reaches a sandbox only through SSH, public URLs and ports you open.

OutboundAny port, TCP and UDP, no egress charges. Port 25 (SMTP) is dropped: send email via an API or port 587/465.
BlockedOther sandboxes, the host, 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.0.0/16, 100.64.0.0/10; IPv6 fc00::/7, fe80::/10, multicast and the host's range.
Outbound addressIPv4: the host's shared public address (no static outbound IPs). IPv6: the sandbox's own.
IPv6 addressOne public address per sandbox (froog info, ipv6 in the API). Kept across a warm resume; a cold start or fork gets a new one.
InboundSSH (keys only), ports you open, ping (IPv6) and replies. Everything else is refused, so a server on 0.0.0.0 stays private until you open its port. For HTTPS with a hostname, use froog host NAME PORT.
DNS1.1.1.1 and 8.8.8.8.
Your computerNo route back. froog forward NAME PORT --reverse tunnels one port over SSH.

Open ports

$ froog port open my-box 27015/udp    # TCP if no protocol given
$ froog port list my-box             # 27015/udp at 203.0.113.7:40002
$ froog port close my-box 27015/udp

Rules live in froog's firewall, outside the VM, and survive stops, starts and restores; forks inherit them. Max 64 per sandbox, public URL ports included. Inside a sandbox use "$(hostname)" as the name. API: GET/PUT/POST /v1/sandboxes/{name}/ports, DELETE /v1/sandboxes/{name}/ports/{port}/{protocol} (key scope sandbox.update).

  • IPv6: same port number on the sandbox's address, e.g. [2a01:4f8:…::1:2]:27015. A --public URL also opens its port here.
  • IPv4: a forwarded public port (40000-49999) on the host's address, shown by froog port list, froog info and ipv4.address. It can change when the sandbox starts on another host, so look it up after each start. Max 16 per sandbox and 64 per account across running sandboxes; ports past that stay IPv6-only (ipv4_note says why). Public URL ports get none. Up to 4,096 tracked inbound IPv4 connections per sandbox.

Restricting outbound traffic

froog doesn't filter egress further. user has passwordless sudo and could undo your rules, so run untrusted code as a second user without sudo or docker, and limit that user. This allows only DNS and HTTPS:

$ froog ssh my-box
user@my-box:~$ command -v nft || sudo apt-get install -y nftables   # sudo pacman -S nftables on Omarchy
user@my-box:~$ sudo useradd -m -s /bin/bash agent
user@my-box:~$ sudo nft -f - <<EOF
table inet egress {
  chain out {
    type filter hook output priority 0; policy accept;
    meta skuid $(id -u agent) oifname "lo" accept
    meta skuid $(id -u agent) udp dport 53 accept
    meta skuid $(id -u agent) tcp dport 443 accept
    meta skuid $(id -u agent) drop
  }
}
EOF
user@my-box:~$ sudo -u agent -H bash -lc 'cd ~ && ./run-task.sh'

Rules reset at every start; put them in your setup script to reapply. The second user can't read ~/.froog or froog's mode-600 files (secret files, the in-sandbox key). To allow hosts rather than ports, route that user through a filtering HTTP proxy.