Behind a VPN, yes. Through a bastion or an SSH tunnel, only with the SSH connector in GateRook 2.0.0.
GateRook connects from your computer, so it reaches what your computer reaches: your VPN, hosts file and routes apply. Connect the VPN, then enter the database's private host name or address in the connection.
- Bastion: the SSH connector can sign in through an optional jump host, which needs
AllowTcpForwarding. Database and other connectors have no built-in jump host or SSH tunnel in 2.0.0. - A tunnel or proxy you run on this computer: point the connection at its local address, as the Cloud SQL guide does with the Cloud SQL Auth Proxy, and keep it running while GateRook uses the connection.
- Private addresses: HTTP APIs, remote MCP servers and some other connectors reach a private address only after you allow its range in Policies, under HTTP egress › Allowed private ranges for the environment. Test connection names the range to allow.
Use a database account with only the access the AI needs: GateRook narrows what the AI may ask for, but the account's own permissions still apply.