# Internal tools for teams

Source: https://prontaro.com/docs/tunnels/internal-tools/

Give your team browser access to self-hosted internal tools with Google sign-in and zero VPN setup.

Self-hosted n8n Community Edition does not include free Google SSO, and tools like Grafana or Metabase normally ask you to register a Google Cloud Console OAuth app (or run `oauth2-proxy` in front of apps without built-in OAuth). With Prontaro, you create the HTTPS tunnel, lock it to your `@company.com` domain in the dashboard, and connect your server once.

## Step 1. Create the tunnel and restrict access to your team

Set up the tunnel and its sign-in rule before connecting the server so your internal dashboard is never exposed publicly:

1. Open **Tunnels** in [my.prontaro.com](https://my.prontaro.com/tunnels) and create a named HTTPS tunnel—for example, `ops` (on paid plans you can pick a readable subdomain such as `ops-team`, or attach a [custom domain](https://prontaro.com/docs/tunnels/domains.md) like `ops.company.com` and disable the default `*.prontaro.run` URL).
2. Open the tunnel’s **Access** tab, turn on **Visitor sign-in**, and pick **Google** (or add **GitHub** for engineering teams).
3. Choose how to authorize teammates:
  - **Whole company domain (Pro and Custom):** add `company.com` (or `*@company.com`) so everyone with a verified corporate mailbox can sign in with zero per-seat fees.
  - **Specific email addresses (all plans):** list individual teammate addresses on Free, Tunnels, or Dedicated.
4. Save the rule.

Tunnels Access [Open in dashboard](https://my.prontaro.com/tunnels)

## Step 2. Connect your internal tool and run it as a service

On the host running your tool (for example, port `5678` for n8n, or `3000` for Grafana and Metabase), connect the protected `ops` tunnel with `prontaro http` (or `prontaro run ops` if you already saved the local port in the dashboard):

```bash
# Example for n8n (replace 5678 with 3000 for Grafana or Metabase)
prontaro http 5678 --name ops
```

Open the HTTPS URL in a browser and confirm Google sign-in works cleanly. Then press `Ctrl+C` and install it as a [background service](https://prontaro.com/docs/cli/service.md) so the tunnel starts automatically after server reboots:

```bash
prontaro service install -- http 5678 --name ops
```

Whenever you update the allowlist later in the dashboard, changes take effect within seconds without restarting the background service.

## Step 3. Separate external webhooks from the n8n editor

If your self-hosted n8n instance receives automated webhooks from Stripe, GitHub, or Telegram, do not enable visitor sign-in on the webhook URL—interactive browser login blocks unattended `POST` requests. Always keep n8n’s own user authentication enabled, and do not point a second open tunnel straight at n8n’s main port (`5678`), or the editor paths remain reachable through that webhook tunnel. Instead, place a local reverse proxy (such as nginx or Caddy) in front of the public webhook tunnel so it forwards only `/webhook/` (or run n8n’s dedicated webhook processor in queue mode), and keep the editor tunnel gated behind Google sign-in (see [Static IP and webhooks for n8n](https://prontaro.com/docs/integrations/n8n.md) and [Webhooks: Stripe, GitHub, and Telegram](https://prontaro.com/docs/integrations/webhooks.md)).

## Optional: read the signed-in user in your app

Every allowed request forwarded through Prontaro includes a single `Prontaro-Auth-Email` header containing the teammate’s verified email. Custom internal apps—or tools that support trusted auth-proxy headers—can identify the active user straight from that header:

```js
app.use((req, res, next) => {
  req.userEmail = req.headers['prontaro-auth-email'] ?? null;
  next();
});
```

Keep the service bound to `127.0.0.1` so nobody on the LAN can send requests directly and spoof the header. For exact domain matching, session lifetimes, and layering IP allowlists, see [Google & GitHub sign-in](https://prontaro.com/docs/tunnels/oauth.md).

## Next steps

- [Google & GitHub sign-in](https://prontaro.com/docs/tunnels/oauth.md) — full reference for email limits, domain rules, and plan changes.
- [Static IP and webhooks for n8n](https://prontaro.com/docs/integrations/n8n.md) — configure outbound static IPs and separate inbound webhook tunnels for n8n.
- [Background services (Linux & macOS)](https://prontaro.com/docs/cli/service.md) — manage `systemd` and `launchd` units for always-on internal tunnels.
- [Custom domains](https://prontaro.com/docs/tunnels/domains.md) — publish internal dashboards under `grafana.company.com` or `n8n.company.com`.
