# Private networks Gary can work with systems that aren't on the public internet: a file share, an intranet site, a build server, or a database. How you connect them depends on where Gary runs. A Gary on your own hardware is already inside your network. A Gary in QUANTIS's cloud reaches your network through a route you set up. ## What Gary's computer reaches by default In QUANTIS's cloud, every connection from Gary's computer goes through a proxy. The proxy is the computer's only way out. | Destination | By default | | --- | --- | | Public websites, on ports 80 and 443 | Allowed | | Private addresses, such as `10.x.x.x`, `172.16.x.x`, and `192.168.x.x` | Refused | | Loopback, link-local, and cloud metadata addresses | Refused, always | | Other people's computers and QUANTIS's internal systems | Refused, always | | Any other port, such as 22 or 5432 | Refused, unless you add a route or an SSH host | The proxy looks up each name once, checks every address in the answer, and connects only to the address it checked. A public name that points to a private address is refused. ## Choose how to connect | Method | For | What it reaches | | --- | --- | --- | | Run Gary on your own hardware | A person or a company that hosts Gary | Whatever your hardware reaches | | Route through your own machine | One person, with the `gary` tool or Gary for Mac | The hosts you name, while your machine is connected | | A site connector | A company on QUANTIS's cloud | The address ranges you list, for every computer in the company | | Allowlist QUANTIS's addresses | A system that's on the internet behind a firewall | That one system | | An SSH host | A server Gary manages over SSH | That server. See [SSH and RDP access](/ssh-and-rdp). | ## On your own hardware On your own hardware, Gary's computer is inside your network and uses your DNS. It reaches internal names the way any machine there does. - **On a single machine,** Gary's computer reaches what your machine reaches, including your VPN while it's connected. - **On a company cluster,** the install isolates each person's computer from the others. Admins list the internal address ranges computers can reach in the console's **Internet**, under **Private addresses**. See [Run Gary on your own hardware](/own-hardware). ## Route through your own machine Your laptop or desktop is often already on the network Gary needs. The `gary` tool and Gary for Mac hold one outbound connection to QUANTIS, and Gary's computer reaches the hosts you name through it. Nothing connects in to your machine. 1. Install the tool and sign in. See [Gary on the command line](/command-line). ``` npm install -g @quantis-ai/gary gary install ``` 2. Name each host Gary can reach. ``` gary net add intranet.example.com gary net add 10.20.0.0/24 --port 443 ``` 3. Check the route with `gary status`. It lists the hosts you added and whether the machine is connected. In Gary for Mac, open **Settings**, choose **Network**, then choose **Add a host**. Then ask Gary for the work. Gary's browser and its terminal reach those hosts as if they were public. :::: window teal **Gary** ยท 10:05 AM > Open the inventory system at intranet.example.com and export this month's open orders to a sheet. Don't change any order. There are 47 open orders this month. Six are past their promised date, and I marked those in the first column. `open-orders-november.xlsx` :::: A route through your machine has these rules. - **It works while your machine is on and connected.** When it sleeps, Gary tells you the host can't be reached, and routines that need it wait. - **It carries only the hosts you named.** Everything else still goes through QUANTIS's proxy. - **Names resolve on your machine.** Gary uses your machine's DNS for the hosts you added, so internal names work. - **It's yours alone.** Only your Garys use your route. - **Your machine keeps a record.** Each connection is written to `~/.local/state/gary/activity.jsonl` with the host, the port, and the amount of data. To remove a host, run `gary net remove intranet.example.com`. To end the route, run `gary logout`, or forget the machine under **Computers** in the chat sidebar. ## Connect a company with a site connector A site connector gives every computer in your company a route to your network that doesn't depend on anyone's laptop. It's a small program you run inside your network. It opens an outbound connection to QUANTIS on port 443, and you don't open an inbound port. 1. In the console, choose **Internet**, then **Site connectors**, then **Add a connector**. 2. Copy the install command and run it on a Linux machine or in your cluster. The command includes a one-time code. 3. When the console shows the connector as **Connected**, list the address ranges and ports it carries. 4. To use your internal names, enter your DNS servers under **DNS** and the domains they answer for, such as `corp.example.com`. Run two connectors for the same ranges, on separate machines. If one stops, the other carries the traffic. A connector carries traffic from your company's computers only. The ranges you list are the most any Gary can reach, and each Gary's own site list still applies. Give the connector's machine access to the systems Gary needs and nothing else, since your firewall sees all of it as coming from that machine. ## Allowlist QUANTIS's addresses Some systems are on the internet and accept connections only from known addresses. Computers in QUANTIS's cloud leave from a fixed set of addresses. The console's **Internet** page lists them under **Outbound addresses**. On a personal account, they're in **Settings**, under **Security**. Add them to your firewall or to the service's IP allowlist. QUANTIS emails admins before the list changes. The addresses are shared by QUANTIS's customers, so use them with a login, never in place of one. ## Allowlists and block lists Two lists decide where a Gary's computer can go. They apply to public sites and to routed hosts alike. - **Your company's limit.** Admins choose **Any public site**, **Defaults and this list**, or **Only this list** in the console's **Internet**. See [Manage computers](/computers). - **A Gary's own list.** Its owner can narrow it further. On a personal account, open **Settings**, then **Security**, and choose all sites, all sites except the ones you block, or only the sites you list. Write a domain as `api.github.com`, or `*.github.com` for every name under it. A block always wins over an allow. QUANTIS also blocks a short list of sites for everyone, and no setting opens those. With **Only this list**, add each internal name Gary needs, as well as the route that reaches it. ## DNS | Where the name is looked up | Which names resolve | | --- | --- | | QUANTIS's proxy | Public names | | Your machine, for hosts on your route | Whatever your machine resolves, internal names included | | Your DNS servers, through a site connector | The domains you listed for the connector | | Your own hardware | Whatever your network resolves | A name that exists both publicly and inside your network resolves to the internal address only on a route or a connector that lists it. ## Logging Every connection from Gary's computer is logged with the site, the port, the amount of data, and the Gary that made it. The content is never logged, and HTTPS traffic isn't decrypted. - **In the chat,** each connection is part of that task's activity. - **In the console,** **Internet** shows **Refused in the last 7 days**, with the Gary and the number of attempts. - **On a route through your machine,** the record is on your machine too. ## If Gary can't reach a system | What Gary says | What to do | | --- | --- | | That address is private, and Gary's computer can't reach it. | Add a route, or run Gary on your own hardware. | | That site isn't on this Gary's list. | Add the domain to the Gary's list, or ask an admin to allow it. | | Your computer isn't connected, so Gary can't reach that host. | Wake your machine, and check `gary status`. | | The site connector is offline. | Start the connector, and check that it can reach QUANTIS on port 443. | | Gary couldn't find that name. | Add your DNS servers to the connector, or use the host's address. | ## Related - [Security](/security) for how each computer is isolated. - [TLS-inspecting proxies](/proxies) if your network inspects outbound traffic. - [SSH and RDP access](/ssh-and-rdp) to give Gary a server to manage.