Connector software in your network
The connector software is the second way to connect your company network to 9brains. Instead of configuring the connection on your firewall, a small piece of software runs on a device in your network and builds the connection to 9brains on its own. This means it does not matter whether your firewall supports WireGuard, and you do not have to open any port.
For firewalls with WireGuard support, the firewall connection is usually the simpler choice. Both routes lead to the same result: internal services become reachable for the AI through an encrypted, outbound-only connection.
When this route fits
Section titled “When this route fits”- Your firewall does not support WireGuard (e.g. older Sophos UTM devices). The firewall stays completely untouched.
- You only want to make a single machine reachable, for example a Mac or PC running a line-of-business application.
- You want to get started quickly, without coordinating changes on the firewall.
Requirements
Section titled “Requirements”- You are an administrator in the workspace
- Your workspace has a Business or Max license
- A device in the network that stays switched on (computer, server, NAS or a VM) and can reach the internet
- No open port required, the connection only goes outbound
What the firewall must allow outbound
Section titled “What the firewall must allow outbound”Outbound, the connector needs exactly three destinations, all over the normal HTTPS port 443:
| Destination | Purpose |
|---|---|
connect.9brains.de |
Signing the connector in |
relay1.9brains.de |
Data connection when no direct path is available |
relay2.9brains.de |
Fallback if the first one cannot be reached |
UDP port 3478 to the same two relay addresses helps as well. Everything still works without it, but transfers get slower because they always take the detour via 9brains instead of running directly.
In many corporate networks outbound HTTPS is open anyway, in which case there is nothing to do. If your firewall restricts outbound connections, allow these three addresses.
You do not need to allow
tailscale.com. Many security teams block those addresses on purpose because they are abused for unapproved VPN tunnels. You can keep that block, the 9brains connector works without it. Only when setting up a Synology NAS does the update step download a package frompkgs.tailscale.comonce. If that address is blocked, download the package file on another computer and install it in the Package Center via “Manual Install”.
How it works
Section titled “How it works”Your company network 9brains Cloud┌──────────────────────┐ ┌──────────────────────┐│ ┌────────────────┐ │ encrypted │ ││ │ Connector │ │ connection │── Integration/Skill ││ │ software │──│═══════════════════►│── Code execution ││ └───────┬────────┘ │ (outbound only) │── Data indexing ││ Database, ERP, │ │ ││ line-of-business... │ │ │└──────────────────────┘ └──────────────────────┘The connector software registers with 9brains on its own. Through it, 9brains reaches exactly the services you release, and nothing else. Your network, in turn, cannot establish a connection to us.
Two variants
Section titled “Two variants”When creating the connection you choose under “What should be reachable?” between:
- “Only this machine”: The software runs directly on the target machine, that is, on the computer where the desired service lives. This is the most common case and works regardless of whether the machine has a fixed or a changing (DHCP) IP.
- “Routing into the network”: The software runs on one device and makes several systems behind it reachable (an entire subnet). Suitable when you want to connect, for example, a database, ERP and file server through a single device.
Create a connector
Section titled “Create a connector”- Go to Settings → On-Premises Connector
- Click “Create tunnel”
- Under Connection type, choose “Connector software in your network”
- Give it a name (e.g. “CAD machine engineering”)
- Under “What should be reachable?” choose the appropriate variant
Variant “Only this machine”
Section titled “Variant “Only this machine””After saving, 9brains walks you through the setup. Pick the operating system of the target machine at the top, and the steps you need appear one after another, each with its own copy button. Work through them on the target machine in order. You can choose between macOS, Windows, Linux and Synology NAS. On a Synology NAS, Tailscale comes from the DSM Package Center, and you run the connection command via SSH with an administrator account.
The last step contains your personal access key, so do not pass it on. If you would rather take everything at once, “Save as file” gives you the steps as a script.
As soon as the last command has finished, the connector signs in to 9brains. It appears as connected in the overview once you have added a service and checked it once via “Test connection”. After that, 9brains checks the connection regularly on its own.
Is Tailscale already running on the machine? Then append
--force-reauthto the command. This switches the machine into the 9brains network.
Variant “Routing into the network”
Section titled “Variant “Routing into the network””- Enter the network range (subnet) the connector should make reachable, e.g.
192.168.1.0/24. For a single machine, enter its IP as/32, e.g.192.168.1.50/32. - Save the
docker-compose.ymlshown to you on a device in the network that runs Docker (VM, server or NAS). You can copy the contents or use “Save as file”. The file contains your access key, so do not pass it on. - Run
docker compose up -din the same folder.
As soon as the connector is running, the connection appears in the overview.
Add services
Section titled “Add services”A service describes a specific system (a port) that should be reachable through the connector.
- Open the connection in the detail view
- Click “Add service”
- Enter the data:
- “Only this machine”: The port of the service is enough (e.g.
5432for PostgreSQL). The target is the machine itself on which the connector runs. - “Routing into the network”: Additionally the remote host, that is the internal IP within the specified subnet (e.g.
192.168.1.50).
- “Only this machine”: The port of the service is enough (e.g.
- After saving, an assigned address is displayed (e.g.
wg-gateway.production:50798). You enter this address in the integration or the skill. For the Microsoft SQL Server integration this is not needed, there you pick the service directly (see below).
Using the service in an integration
Section titled “Using the service in an integration”For the Microsoft SQL Server integration, 9brains first asks how the target is reachable:
- Publicly reachable: For servers that can be reached directly from the internet. You enter address and port yourself, as before.
- Through the on-premises connector: You pick one of the services created here. The address and port fields disappear, because both come from the service. Next to every service you can see whether the connector currently reaches it.
If there is no matching service yet, a note with a link back to this page appears instead. Create the service first, then return to the integration.
Two things that help:
- The list only shows services with the matching protocol. For the SQL server the service must be set to
MSSQL, otherwise it never appears even though it exists. - The selection is reserved for administrators, because the services belong to the connector.
Every other integration and every skill still takes the assigned address by hand, see step 4 above. That applies in particular to PostgreSQL, Oracle and FileMaker.
For how to turn a service into a usable AI feature (PostgreSQL integration, ERP skill and more), see the Set up an integration or skill section of the overview.
Security
Section titled “Security”- Encryption: The connection is fully encrypted using modern cryptography
- Outbound only: The software builds the connection outward, your network is not reachable from the outside and no port needs to be opened
- Tenant isolation: Every workspace has its own connection. Other workspaces cannot access your systems
- Minimal permissions: 9brains only reaches the services you release, no access to other devices in your network
Common problems
Section titled “Common problems”The setup command “hangs”
Section titled “The setup command “hangs””Tailscale is probably already running on the target machine (e.g. from a previous use). Append --force-reauth to the command, then the machine switches into the 9brains network.
Service not reachable although the connection is “connected”
Section titled “Service not reachable although the connection is “connected””- Service only listens locally: Some programs are reachable only via
localhost(127.0.0.1) out of the box. For the connector to reach them, the service must listen on all network addresses (often0.0.0.0in the program’s configuration). - Local firewall: A firewall on the target machine itself (e.g. the Windows firewall) can block the port. Release the port there. A Synology NAS running DSM 7 needs no rule, because the connection arrives there from the NAS’s own address. On DSM 6 you add it under Control Panel → Security → Firewall: the service’s port, source IP
100.64.0.0, subnet mask255.192.0.0. - Access list in front of it: If a server sits in front of the service (e.g. an nginx), or a firewall only admits certain source addresses, the right address has to be allowed there. Which one that is appears on the connector under Source address for firewall rules, and it depends on the variant: with “Only this machine” it is our address, with “Routing into the network” it is the local network address of the machine the connector runs on. The rule belongs on the target machine itself or in the service’s access list, not on your firewall at the network edge: our traffic never arrives there as a connection of its own.
- Wrong port or host: Check the port and, for “Routing into the network”, the internal IP.
The connector does not connect although the machine is online
Section titled “The connector does not connect although the machine is online”Check whether your firewall restricts outbound connections. The connector needs the three addresses from What the firewall must allow outbound. The quickest place to see this is your firewall log: blocked connections to connect.9brains.de or relay1.9brains.de show up there.
The connection does not appear in the overview
Section titled “The connection does not appear in the overview”- The machine or device running the connector must be switched on and have internet access.
- For the Docker variant: check with
docker compose logswhether the connector has started.
Changing IP address (DHCP)
Section titled “Changing IP address (DHCP)”With “Only this machine” you do not need to worry about this: the connector keeps a stable address even if the machine receives a new local IP via DHCP. With “Routing into the network” you reach the target systems via their internal IP, so it is best to assign fixed IPs or DHCP reservations there.
Feature not visible
Section titled “Feature not visible”- The On-Premises Connector is available from a Business license upwards.
- Only administrators can configure connections and services.