Skip to content

Network

Two different things reach out from a Silo installation, and each has its own guard:

  • A Bot’s machine and its STDIO connectors go out through the network filter.
  • The control plane itself connects to addresses people and Bots name: a connector’s server, a channel’s server, a page to read. That is outbound connections.

Every Bot’s machine, and every STDIO connector’s sidecar, sits on a network of its own with a small gateway as its only way out. So one Bot cannot reach another, and no Bot can reach your LAN. The gateway sees every name looked up and every connection made, decrypts HTTPS with a certificate the machines trust, and blocks, flags or passes. What it does lands on the Bot’s Audit tab and at Admin → Audit. Its settings are under Admin → Settings → Network, which also shows the gateway, its certificate, the resolvers in use and the state of each threat list.

egress:
# enabled: true
# block: [bad.example.com, "*.tracker.example.com", 203.0.113.0/24]
# trust: [registry.npmjs.org]
# pass: [chat.example.com]
# dns: 1.1.1.1, 9.9.9.9
# feeds: []
  • block refuses the connection, and the Bot gets a plain 403 saying the filter blocked it. It is a floor: an owner may add to it on the Bot’s Rules page, never take from it.
  • trust reaches the host without inspection even where an owner’s rule would check it. An internal package registry is the case.
  • pass forwards the connection untouched, for a service the gateway would otherwise break (unusual TLS).
  • Patterns are hosts, *. prefixes, IPs and CIDRs, matched in any case. All three lists are shown locked on the Bot’s Rules page, as from the operator. An owner may add up to 200 patterns of their own.
  • Threat lists (feeds) are downloaded and refreshed by the gateway. Three are built in and need no key: Spamhaus DROP, Emerging Threats’ compromised IPs, and Hagezi’s threat-intelligence domains. A host on one is blocked and recorded. Naming any feed replaces the built-in set; each is an id, a url and a format (hosts, domains, ips or cidr_json).
  • Flags are silent: secret-shaped strings going somewhere unexpected, random-looking domains, large uploads, beaconing, executables. The connection goes through and the line is on the Audit tab.
  • Other protocols than HTTP and HTTPS go through a SOCKS door, off per Bot until an owner turns it on.

egress.dns names the resolvers the gateway looks every outside name up with: comma-separated IPs, each optionally with a port (10.0.0.53:5353). Empty uses the control plane’s own: systemd-resolved’s upstreams where it runs, else the nameservers in the control plane’s /etc/resolv.conf (never a loopback one). A change reaches the gateway within 30 seconds. With the control plane in a container on a network of its own, set it, or bind the host’s /run/systemd/resolve into the container: see Containers.

enabled: false puts machines on the engine’s ordinary network, unfiltered, and Admin warns that nothing is being watched. The lists are kept for when it is back on. The filter needs Podman: on Docker it is off.

Key Default What it does
egress.enabled true The filter.
egress.block none Never reached by any Bot.
egress.trust none Reached without inspection.
egress.pass none Forwarded untouched.
egress.feeds the three above Threat lists, YAML only.
egress.dns the system’s The gateway’s resolvers.
egress.subnet_pool 10.213.0.0/16 Where each client’s /24 is carved from (256 at once). Change it only if it collides with a network you use.
egress.image this release’s The gateway’s image. See Containers.

The drive sidecars, the control plane’s own connections, TLS inside the SOCKS door, and, on a rootful engine, services on the host that listen on every address.

Some connections are made by the control plane itself, to an address someone typed: an HTTP connector’s server and the sign-in addresses it names, an Email or Calendar connector’s servers, the address a skill is installed from, a channel’s own server (a Matrix homeserver, a Mattermost server, an Email channel’s mail servers), and a drive provider’s sign-in. The control plane sits on your network, so by default a person could point one at 127.0.0.1, the database beside Silo, a cloud’s metadata address (169.254.169.254) or any machine on the LAN, and read what answers.

outbound:
block_private: true
allow: 127.0.0.1:9223, 10.0.5.0/24 # what stays reachable anyway

block_private refuses loopback, private (10/8, 172.16/12, 192.168/16, fc00::/7), link-local, carrier-grade NAT (100.64/10, which is also Tailscale), multicast and reserved addresses. The check is made on the address about to be connected to, after DNS, so a name that resolves inside is refused like the address itself, and so is a redirect that leads inside. allow takes IPs and CIDRs, each optionally with one port; names are not taken.

What it leaves alone:

  • A library connector you pointed inside. A Bot’s copy connects unrestricted while it still points where the library’s preset does, so the Lightpanda preset on localhost:9223 keeps working. Once someone changes the address, it is their word again.
  • What you configured yourself: model providers (a local one is on your network by design), search, single sign-on.
  • What the Bots’ machines and sidecars can reach. That is the network filter’s job.
  • Requests through HTTP_PROXY. With a proxy in the control plane’s environment, the proxy does the connecting: filter there.

When a Bot reads a web page, the control plane fetches it. That address comes from a model, which may be repeating what a page told it, so the page reader blocks internal addresses by default, unlike outbound. It also honours egress.block, for the address and every redirect.

Key Default What it does
outbound.block_private false Refuse internal addresses for connections made on a person’s word.
outbound.allow none Internal addresses that stay reachable: IPs or CIDRs, each with an optional port.
reader.block_private true Refuse internal addresses for pages a Bot reads.
reader.allow none Internal addresses the reader may still reach, in the same form.